-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.HTAN_versioned.proteomics_metadata_r2`
(
  Component STRING OPTIONS(description="Category of metadata (e.g. Diagnosis, Biospecimen, scRNA-seq Level 1, etc.); provide the same one for all items/rows."),
  Filename STRING OPTIONS(description="Name of a file "),
  File_Format STRING OPTIONS(description="Format of a file (e.g. txt, csv, fastq, bam, etc.)"),
  HTAN_Parent_Biospecimen_ID STRING OPTIONS(description="HTAN Biospecimen Identifier (eg HTANx_yyy_zzz) indicating the biospecimen(s) from which these files were derived; multiple parent biospecimen should be comma-separated"),
  HTAN_Data_File_ID STRING OPTIONS(description="Self-identifier for this data file - HTAN ID of this file HTAN ID SOP (eg HTANx_yyy_zzz)"),
  Assay_Type STRING OPTIONS(description="The type and level of assay this metadata applies to (e.g. RPPA, Nanostring DSP, etc.)"),
  entityId STRING OPTIONS(description="Synapse ID of entity"),
  HTAN_Center STRING OPTIONS(description="Name of HTAN Center e.g. HTAN HTAPP"),
  Data_Release STRING OPTIONS(description="Inclusion in HTAN Data Release e.g. Release 1.0"),
  File_Size INT64 OPTIONS(description="Size of file (bucket object) in bytes"),
  Base_Filename STRING OPTIONS(description="Base name of file"),
  md5 STRING OPTIONS(description="md5 hash of file")
)
OPTIONS(
  friendly_name="HTAN PROTEOMICS METADATA R2 VERSIONED",
  description="Data was extracted from HTAN Synapse projects in April 2022.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("program", "htan"), ("source", "htan"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc-bq.HTAN_versioned.proteomics_metadata_r2` (Component, Filename, File_Format, HTAN_Parent_Biospecimen_ID, HTAN_Data_File_ID, Assay_Type, entityId, HTAN_Center, Data_Release, File_Size, Base_Filename, md5) VALUES ('OtherAssay', 'proteomics/raw-data/replicate01/Lumos1_FAP2_C1S1_091120_Fr01.raw', 'raw', 'HTA10_01_004,HTA10_01_005,HTA10_01_007,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_019,HTA10_02_023,HTA10_02_103,HTA10_02_107,HTA10_02_122,HTA10_02_202,HTA10_02_207,HTA10_02_209,HTA10_02_213,HTA10_05_104,HTA10_05_025,HTA10_05_027,HTA10_05_040,HTA10_05_053,HTA10_05_065,HTA10_05_074,HTA10_05_088,HTA10_05_095,HTA10_06_002,HTA10_06_032,HTA10_06_045,HTA10_06_049,HTA10_06_065,HTA10_06_105,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_008,HTA10_04_002,HTA10_01_124,HTA10_02_010,HTA10_02_016,HTA10_02_021,HTA10_02_024,HTA10_02_025,HTA10_02_116,HTA10_02_121,HTA10_02_123,HTA10_02_201,HTA10_02_203,HTA10_02_204,HTA10_02_211,HTA10_02_212,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,HTA10_04_001,HTA10_04_002,HTA10_04_008,HTA10_04_010,HTA10_04_102,HTA10_04_109,HTA10_04_206,HTA10_05_002,HTA10_05_004,HTA10_05_007,HTA10_05_008,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_046,HTA10_05_061,HTA10_05_063,HTA10_05_072,HTA10_05_073,HTA10_05_076,HTA10_05_080,HTA10_05_092,HTA10_05_098,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_043,HTA10_06_044,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_105,HTA10_06_110,HTA10_04_109,HTA10_02_123,HTA10_05_007,HTA10_05_072,HTA10_05_037,HTA10_04_001', 'HTA10_xxxx_06001', 'LC-MS3', 'syn23875727', 'HTAN Stanford', 'Release 1.0', 747842628, 'Lumos1_FAP2_C1S1_091120_Fr01.raw', 'b215bc47bb82a557d7c3ae536f2ead88'), ('OtherAssay', 'proteomics/raw-data/replicate01/Lumos1_FAP2_C1S1_091120_Fr02.raw', 'raw', 'HTA10_01_004,HTA10_01_005,HTA10_01_007,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_019,HTA10_02_023,HTA10_02_103,HTA10_02_107,HTA10_02_122,HTA10_02_202,HTA10_02_207,HTA10_02_209,HTA10_02_213,HTA10_05_104,HTA10_05_025,HTA10_05_027,HTA10_05_040,HTA10_05_053,HTA10_05_065,HTA10_05_074,HTA10_05_088,HTA10_05_095,HTA10_06_002,HTA10_06_032,HTA10_06_045,HTA10_06_049,HTA10_06_065,HTA10_06_105,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_008,HTA10_04_002,HTA10_01_124,HTA10_02_010,HTA10_02_016,HTA10_02_021,HTA10_02_024,HTA10_02_025,HTA10_02_116,HTA10_02_121,HTA10_02_123,HTA10_02_201,HTA10_02_203,HTA10_02_204,HTA10_02_211,HTA10_02_212,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,HTA10_04_001,HTA10_04_002,HTA10_04_008,HTA10_04_010,HTA10_04_102,HTA10_04_109,HTA10_04_206,HTA10_05_002,HTA10_05_004,HTA10_05_007,HTA10_05_008,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_046,HTA10_05_061,HTA10_05_063,HTA10_05_072,HTA10_05_073,HTA10_05_076,HTA10_05_080,HTA10_05_092,HTA10_05_098,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_043,HTA10_06_044,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_105,HTA10_06_110,HTA10_04_109,HTA10_02_123,HTA10_05_007,HTA10_05_072,HTA10_05_037,HTA10_04_001', 'HTA10_xxxx_06002', 'LC-MS3', 'syn23875785', 'HTAN Stanford', 'Release 1.0', 584764714, 'Lumos1_FAP2_C1S1_091120_Fr02.raw', 'cd02e76c9c37ac6f8e961694c18d093c'), ('OtherAssay', 'proteomics/raw-data/replicate01/Lumos1_FAP2_C1S1_091120_Fr03.raw', 'raw', 'HTA10_01_004,HTA10_01_005,HTA10_01_007,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_019,HTA10_02_023,HTA10_02_103,HTA10_02_107,HTA10_02_122,HTA10_02_202,HTA10_02_207,HTA10_02_209,HTA10_02_213,HTA10_05_104,HTA10_05_025,HTA10_05_027,HTA10_05_040,HTA10_05_053,HTA10_05_065,HTA10_05_074,HTA10_05_088,HTA10_05_095,HTA10_06_002,HTA10_06_032,HTA10_06_045,HTA10_06_049,HTA10_06_065,HTA10_06_105,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_008,HTA10_04_002,HTA10_01_124,HTA10_02_010,HTA10_02_016,HTA10_02_021,HTA10_02_024,HTA10_02_025,HTA10_02_116,HTA10_02_121,HTA10_02_123,HTA10_02_201,HTA10_02_203,HTA10_02_204,HTA10_02_211,HTA10_02_212,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,HTA10_04_001,HTA10_04_002,HTA10_04_008,HTA10_04_010,HTA10_04_102,HTA10_04_109,HTA10_04_206,HTA10_05_002,HTA10_05_004,HTA10_05_007,HTA10_05_008,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_046,HTA10_05_061,HTA10_05_063,HTA10_05_072,HTA10_05_073,HTA10_05_076,HTA10_05_080,HTA10_05_092,HTA10_05_098,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_043,HTA10_06_044,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_105,HTA10_06_110,HTA10_04_109,HTA10_02_123,HTA10_05_007,HTA10_05_072,HTA10_05_037,HTA10_04_001', 'HTA10_xxxx_06003', 'LC-MS3', 'syn23875860', 'HTAN Stanford', 'Release 1.0', 1147991886, 'Lumos1_FAP2_C1S1_091120_Fr03.raw', 'c0d4b476433ccde41d072a30aa0128ac'), ('OtherAssay', 'proteomics/raw-data/replicate01/Lumos1_FAP2_C1S1_091120_Fr04.raw', 'raw', 'HTA10_01_004,HTA10_01_005,HTA10_01_007,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_019,HTA10_02_023,HTA10_02_103,HTA10_02_107,HTA10_02_122,HTA10_02_202,HTA10_02_207,HTA10_02_209,HTA10_02_213,HTA10_05_104,HTA10_05_025,HTA10_05_027,HTA10_05_040,HTA10_05_053,HTA10_05_065,HTA10_05_074,HTA10_05_088,HTA10_05_095,HTA10_06_002,HTA10_06_032,HTA10_06_045,HTA10_06_049,HTA10_06_065,HTA10_06_105,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_008,HTA10_04_002,HTA10_01_124,HTA10_02_010,HTA10_02_016,HTA10_02_021,HTA10_02_024,HTA10_02_025,HTA10_02_116,HTA10_02_121,HTA10_02_123,HTA10_02_201,HTA10_02_203,HTA10_02_204,HTA10_02_211,HTA10_02_212,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,HTA10_04_001,HTA10_04_002,HTA10_04_008,HTA10_04_010,HTA10_04_102,HTA10_04_109,HTA10_04_206,HTA10_05_002,HTA10_05_004,HTA10_05_007,HTA10_05_008,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_046,HTA10_05_061,HTA10_05_063,HTA10_05_072,HTA10_05_073,HTA10_05_076,HTA10_05_080,HTA10_05_092,HTA10_05_098,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_043,HTA10_06_044,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_105,HTA10_06_110,HTA10_04_109,HTA10_02_123,HTA10_05_007,HTA10_05_072,HTA10_05_037,HTA10_04_001', 'HTA10_xxxx_06004', 'LC-MS3', 'syn23874264', 'HTAN Stanford', 'Release 1.0', 1182904518, 'Lumos1_FAP2_C1S1_091120_Fr04.raw', '2cae192444357ac9ca12fb350e94b9bb'), ('OtherAssay', 'proteomics/raw-data/replicate01/Lumos1_FAP2_C1S1_091120_Fr05.raw', 'raw', 'HTA10_01_004,HTA10_01_005,HTA10_01_007,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_019,HTA10_02_023,HTA10_02_103,HTA10_02_107,HTA10_02_122,HTA10_02_202,HTA10_02_207,HTA10_02_209,HTA10_02_213,HTA10_05_104,HTA10_05_025,HTA10_05_027,HTA10_05_040,HTA10_05_053,HTA10_05_065,HTA10_05_074,HTA10_05_088,HTA10_05_095,HTA10_06_002,HTA10_06_032,HTA10_06_045,HTA10_06_049,HTA10_06_065,HTA10_06_105,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_008,HTA10_04_002,HTA10_01_124,HTA10_02_010,HTA10_02_016,HTA10_02_021,HTA10_02_024,HTA10_02_025,HTA10_02_116,HTA10_02_121,HTA10_02_123,HTA10_02_201,HTA10_02_203,HTA10_02_204,HTA10_02_211,HTA10_02_212,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,HTA10_04_001,HTA10_04_002,HTA10_04_008,HTA10_04_010,HTA10_04_102,HTA10_04_109,HTA10_04_206,HTA10_05_002,HTA10_05_004,HTA10_05_007,HTA10_05_008,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_046,HTA10_05_061,HTA10_05_063,HTA10_05_072,HTA10_05_073,HTA10_05_076,HTA10_05_080,HTA10_05_092,HTA10_05_098,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_043,HTA10_06_044,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_105,HTA10_06_110,HTA10_04_109,HTA10_02_123,HTA10_05_007,HTA10_05_072,HTA10_05_037,HTA10_04_001', 'HTA10_xxxx_06005', 'LC-MS3', 'syn23875534', 'HTAN Stanford', 'Release 1.0', 1095557538, 'Lumos1_FAP2_C1S1_091120_Fr05.raw', '578c1e3a146ef5f995bacbbde691950b');