-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.HTAN_versioned.scRNAseq_VUMC_HTAN_VAL_EPI_V2_r2`
(
  iObs INT64 OPTIONS(description="Index to cell barcodes."),
  iVar INT64 OPTIONS(description="Index to gene IDs."),
  X_value FLOAT64 OPTIONS(description="Expression value for a given gene and cell."),
  Cell_Barcode_Number STRING OPTIONS(description="Barcodes used for each droplet that contains the cell in the sequencing process"),
  HTAN_Parent_Data_File_ID STRING OPTIONS(description="HTAN Data File Identifier indicating the file(s) from which these files were derived"),
  HTAN_Biospecimen_ID STRING OPTIONS(description="HTAN ID associated with a biosample based on HTAN ID SOP (eg HTANx_yyy_zzz)"),
  Cell_Type STRING OPTIONS(description="ABS = absorptive cells, TUF = tuft cells, EE = enteroendocrine cells, ASC = adenoma specific cells, TAC = transient amplifying cells, CT = crypt top cells, GOB = goblet cells, SSC= serrated specific cells, STM = stem cells"),
  Tissue_Subtype STRING OPTIONS(description="TA = tubular adenoma, HP = hyperplastic polyp, TVA = tubulovillus adenoma, SSL = sessile serrated lesion, UNC = unclassified, NL = normal"),
  Tissue_Type STRING OPTIONS(description="AD = conventional adenoma, SER = serrated polyp, UNC = unclassified, NL = normal"),
  Gene_Name STRING OPTIONS(description="Measured gene")
)
OPTIONS(
  friendly_name="HTAN HG38 SCRNASEQ GENE EXPRESSION VALIDATION COHORT EPITHELIAL R2 VERSIONED",
  description="Data was derived in April 2022 from an H5AD file (Synapse ID: syn27056099) submitted by the Vanderbilt HTAN Center. This data set contains raw gene expression counts from 59 patient samples. Data was generated using the InDrop V2 chemistry (see https://doi.org/10.1186/s12864-020-06843-0) and was processed using a DropEst-based pipeline (see https://doi.org/10.1016/j.xpro.2021.100450), where reads were mapped to HG38, followed by processing with scanpy and aformentioned pipeline to filter cells. Low-dimensional embeddings are derived from a regulon space, generated using SCENIC. This dataset contains the epithelial cells derived from the validation (VAL) cohort, as described in https://doi.org/10.1016/j.cell.2021.11.031.",
  labels=[("access", "open"), ("reference_genome", "hg38"), ("data_type", "gene_expression"), ("program", "htan"), ("source", "htan-vumc"), ("category", "processed_-omics_data"), ("status", "current")]
);

INSERT INTO `isb-cgc-bq.HTAN_versioned.scRNAseq_VUMC_HTAN_VAL_EPI_V2_r2` (iObs, iVar, X_value, Cell_Barcode_Number, HTAN_Parent_Data_File_ID, HTAN_Biospecimen_ID, Cell_Type, Tissue_Subtype, Tissue_Type, Gene_Name) VALUES (49352, 25903, 12.0, 'TGAAGGATTCACTACGAGC-12-5898', 'HTA11_11156_200000102113111', 'HTA11_11156_2000001021', 'ABS', 'TA', 'AD', 'RPLP2'), (50116, 7756, 21.0, 'AGCACCACAAACGCCT-14-5898', 'HTA11_11156_200000101113111', 'HTA11_11156_2000001011', 'ABS', 'TA', 'AD', 'EEF1A1'), (50183, 14514, 40.0, 'TGACTGGTGCAGAGTTTCG-14-5898', 'HTA11_11156_200000101113111', 'HTA11_11156_2000001011', 'ABS', 'TA', 'AD', 'MT-ND4'), (47332, 16431, 59.0, 'ACTTAGGTATCCAGTCC-9-5898', 'HTA11_6182_200000202113111', 'HTA11_6182_2000002021', 'ABS', 'NL', 'NL', 'PHGR1'), (50176, 25693, 97.0, 'GAGAATACGCATATACCT-14-5898', 'HTA11_11156_200000101113111', 'HTA11_11156_2000001011', 'ABS', 'TA', 'AD', 'RP5-857K21.4');