-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.HTAN_versioned.massSpectrometry_level3_metadata_r5`
(
  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"),
  Filename STRING OPTIONS(description="Name of a file"),
  Mass_Spectrometry_Auxiliary_File STRING OPTIONS(description="Auxiliary software parameter file used in mass spectrometry data processing, recorded as synapse ID (syn12345)."),
  HTAN_Parent_Data_File_ID STRING OPTIONS(description="HTAN Data File Identifier indicating the file(s) from which these files were derived"),
  entityId STRING OPTIONS(description="Synapse ID of entity"),
  Id STRING OPTIONS(description="Unique identifier of entity e.g. a96059eb-81af-4b24-ae50-9242c0d8f819"),
  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)"),
  Component STRING OPTIONS(description="Category of metadata (e.g. Diagnosis, Biospecimen, scRNA-seq Level 1, etc.); provide the same one for all items/rows."),
  MS_Assay_Category STRING OPTIONS(description="Type of Mass Spectrometry performed."),
  Software_and_Version STRING OPTIONS(description="Name of software used to generate expression values. String"),
  File_Format STRING OPTIONS(description="Format of a file (e.g. txt, csv, fastq, bam, etc.)"),
  HTAN_Center STRING OPTIONS(description="Name of HTAN Center e.g. HTAN HTAPP"),
  Manifest_Id STRING OPTIONS(description="Synapse ID of manifest containing file annotation"),
  Manifest_Version INT64 OPTIONS(description="Latest version of metadata manifest"),
  File_Size INT64 OPTIONS(description="Size of file (bucket object) in bytes"),
  md5 STRING OPTIONS(description="md5 hash of file"),
  Data_Release STRING OPTIONS(description="Inclusion in HTAN Data Release e.g. Release 1.0"),
  CDS_Release STRING OPTIONS(description="CDS transfer package in which file was included e.g. v22.6.1.seq")
)
OPTIONS(
  friendly_name="HTAN MASS SPECTROMETRY LEVEL 3 METADATA R5 VERSIONED",
  description="This table contains the file metadata for the third level of Mass Spectrometry. Data was extracted from HTAN Synapse projects in April 2024 and corresponds to HTAN Data Release 5.1. More details: see https://humantumoratlas.org/standards",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("program", "htan"), ("source", "htan"), ("category", "metadata"), ("status", "current")]
);

INSERT INTO `isb-cgc-bq.HTAN_versioned.massSpectrometry_level3_metadata_r5` (HTAN_Parent_Biospecimen_ID, Filename, Mass_Spectrometry_Auxiliary_File, HTAN_Parent_Data_File_ID, entityId, Id, HTAN_Data_File_ID, Component, MS_Assay_Category, Software_and_Version, File_Format, HTAN_Center, Manifest_Id, Manifest_Version, File_Size, md5, Data_Release, CDS_Release) VALUES ('HTA10_01_004,HTA10_01_005,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_124,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_010,HTA10_02_016,HTA10_02_019,HTA10_02_021,HTA10_02_023,HTA10_02_024,HTA10_02_025,HTA10_02_103,HTA10_02_107,HTA10_02_116,HTA10_02_121,HTA10_02_122,HTA10_02_123,HTA10_02_201,HTA10_02_202,HTA10_02_203,HTA10_02_204,HTA10_02_207,HTA10_02_209,HTA10_02_211,HTA10_02_212,HTA10_02_213,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,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_025,HTA10_05_027,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_040,HTA10_05_046,HTA10_05_053,HTA10_05_061,HTA10_05_063,HTA10_05_065,HTA10_05_072,HTA10_05_073,HTA10_05_074,HTA10_05_076,HTA10_05_105,HTA10_05_088,HTA10_05_092,HTA10_05_095,HTA10_05_098,HTA10_05_103,HTA10_05_104,HTA10_06_105,HTA10_06_002,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_032,HTA10_06_043,HTA10_06_044,HTA10_06_045,HTA10_06_049,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_065,HTA10_06_107,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_001', 'proteomics_level_3/replicate01/Lumos1_FAP2_C1S1_HDR_091120_Fr_PeptideGroups.txt', 'DatabaseSearchParameters.docx', 'HTA10_0000_06001,HTA10_0000_06002,HTA10_0000_06003,HTA10_0000_06004,HTA10_0000_06005,HTA10_0000_06006,HTA10_0000_06007,HTA10_0000_06008,HTA10_0000_06009,HTA10_0000_06010,HTA10_0000_06011,HTA10_0000_06012', 'syn23879777', '09663275-5e7c-4094-9599-74e7f1867e7f', 'HTA10_0000_06337', 'MassSpectrometryLevel3', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732852', 4, 22224778, '77989c47f18e65bc8f9998a5da8cc514', 'Release 5.1', NULL), ('HTA10_01_004,HTA10_01_005,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_124,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_010,HTA10_02_016,HTA10_02_019,HTA10_02_021,HTA10_02_023,HTA10_02_024,HTA10_02_025,HTA10_02_103,HTA10_02_107,HTA10_02_116,HTA10_02_121,HTA10_02_122,HTA10_02_123,HTA10_02_201,HTA10_02_202,HTA10_02_203,HTA10_02_204,HTA10_02_207,HTA10_02_209,HTA10_02_211,HTA10_02_212,HTA10_02_213,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,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_025,HTA10_05_027,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_040,HTA10_05_046,HTA10_05_053,HTA10_05_061,HTA10_05_063,HTA10_05_065,HTA10_05_072,HTA10_05_073,HTA10_05_074,HTA10_05_076,HTA10_05_105,HTA10_05_088,HTA10_05_092,HTA10_05_095,HTA10_05_098,HTA10_05_103,HTA10_05_104,HTA10_06_105,HTA10_06_002,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_032,HTA10_06_043,HTA10_06_044,HTA10_06_045,HTA10_06_049,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_065,HTA10_06_107,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_001', 'proteomics_level_3/replicate01/Lumos1_FAP2_C1S2_HDR_091320_Fr_PeptideGroups.txt', 'DatabaseSearchParameters.docx', 'HTA10_0000_06013,HTA10_0000_06014,HTA10_0000_06015,HTA10_0000_06016,HTA10_0000_06017,HTA10_0000_06018,HTA10_0000_06019,HTA10_0000_06020,HTA10_0000_06021,HTA10_0000_06022,HTA10_0000_06023,HTA10_0000_06024', 'syn23879787', 'd404525d-e9cb-4219-9d5f-177703595933', 'HTA10_0000_06339', 'MassSpectrometryLevel3', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732852', 4, 24220576, '764a95e78a4c09437952502d4938c194', 'Release 5.1', NULL), ('HTA10_01_004,HTA10_01_005,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_124,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_010,HTA10_02_016,HTA10_02_019,HTA10_02_021,HTA10_02_023,HTA10_02_024,HTA10_02_025,HTA10_02_103,HTA10_02_107,HTA10_02_116,HTA10_02_121,HTA10_02_122,HTA10_02_123,HTA10_02_201,HTA10_02_202,HTA10_02_203,HTA10_02_204,HTA10_02_207,HTA10_02_209,HTA10_02_211,HTA10_02_212,HTA10_02_213,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,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_025,HTA10_05_027,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_040,HTA10_05_046,HTA10_05_053,HTA10_05_061,HTA10_05_063,HTA10_05_065,HTA10_05_072,HTA10_05_073,HTA10_05_074,HTA10_05_076,HTA10_05_105,HTA10_05_088,HTA10_05_092,HTA10_05_095,HTA10_05_098,HTA10_05_103,HTA10_05_104,HTA10_06_105,HTA10_06_002,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_032,HTA10_06_043,HTA10_06_044,HTA10_06_045,HTA10_06_049,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_065,HTA10_06_107,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_001', 'proteomics_level_3/replicate01/Lumos1_FAP2_C1S3_HDR_091520_Fr_PeptideGroups.txt', 'DatabaseSearchParameters.docx', 'HTA10_0000_06025,HTA10_0000_06026,HTA10_0000_06027,HTA10_0000_06028,HTA10_0000_06029,HTA10_0000_06030,HTA10_0000_06031,HTA10_0000_06032,HTA10_0000_06033,HTA10_0000_06034,HTA10_0000_06035,HTA10_0000_06036', 'syn25002163', '968c5492-fe33-4990-8a7c-c823ba40e7eb', 'HTA10_0000_06341', 'MassSpectrometryLevel3', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732852', 4, 21743639, 'b1ad350eb6aedf21eb5d3d80f7d12c4f', 'Release 5.1', NULL), ('HTA10_01_004,HTA10_01_005,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_124,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_010,HTA10_02_016,HTA10_02_019,HTA10_02_021,HTA10_02_023,HTA10_02_024,HTA10_02_025,HTA10_02_103,HTA10_02_107,HTA10_02_116,HTA10_02_121,HTA10_02_122,HTA10_02_123,HTA10_02_201,HTA10_02_202,HTA10_02_203,HTA10_02_204,HTA10_02_207,HTA10_02_209,HTA10_02_211,HTA10_02_212,HTA10_02_213,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,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_025,HTA10_05_027,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_040,HTA10_05_046,HTA10_05_053,HTA10_05_061,HTA10_05_063,HTA10_05_065,HTA10_05_072,HTA10_05_073,HTA10_05_074,HTA10_05_076,HTA10_05_105,HTA10_05_088,HTA10_05_092,HTA10_05_095,HTA10_05_098,HTA10_05_103,HTA10_05_104,HTA10_06_105,HTA10_06_002,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_032,HTA10_06_043,HTA10_06_044,HTA10_06_045,HTA10_06_049,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_065,HTA10_06_107,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_001', 'proteomics_level_3/replicate01/Lumos1_FAP2_C1S4_HDR_091820_Fr_PeptideGroups.txt', 'DatabaseSearchParameters.docx', 'HTA10_0000_06037,HTA10_0000_06038,HTA10_0000_06039,HTA10_0000_06040,HTA10_0000_06041,HTA10_0000_06042,HTA10_0000_06043,HTA10_0000_06044,HTA10_0000_06045,HTA10_0000_06046,HTA10_0000_06047,HTA10_0000_06048', 'syn25002164', 'e658b20a-38b0-4f94-a02b-7039b8349b6e', 'HTA10_0000_06343', 'MassSpectrometryLevel3', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732852', 4, 20435958, 'efb793ff857a451ed4f18c4d284f4eff', 'Release 5.1', NULL), ('HTA10_01_004,HTA10_01_005,HTA10_01_021,HTA10_01_102,HTA10_01_107,HTA10_01_122,HTA10_01_124,HTA10_01_210,HTA10_01_214,HTA10_01_219,HTA10_01_222,HTA10_02_010,HTA10_02_016,HTA10_02_019,HTA10_02_021,HTA10_02_023,HTA10_02_024,HTA10_02_025,HTA10_02_103,HTA10_02_107,HTA10_02_116,HTA10_02_121,HTA10_02_122,HTA10_02_123,HTA10_02_201,HTA10_02_202,HTA10_02_203,HTA10_02_204,HTA10_02_207,HTA10_02_209,HTA10_02_211,HTA10_02_212,HTA10_02_213,HTA10_03_001,HTA10_03_052,HTA10_03_055,HTA10_03_114,HTA10_03_201,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_025,HTA10_05_027,HTA10_05_037,HTA10_05_038,HTA10_05_039,HTA10_05_040,HTA10_05_046,HTA10_05_053,HTA10_05_061,HTA10_05_063,HTA10_05_065,HTA10_05_072,HTA10_05_073,HTA10_05_074,HTA10_05_076,HTA10_05_105,HTA10_05_088,HTA10_05_092,HTA10_05_095,HTA10_05_098,HTA10_05_103,HTA10_05_104,HTA10_06_105,HTA10_06_002,HTA10_06_004,HTA10_06_005,HTA10_06_024,HTA10_06_025,HTA10_06_032,HTA10_06_043,HTA10_06_044,HTA10_06_045,HTA10_06_049,HTA10_06_051,HTA10_06_055,HTA10_06_061,HTA10_06_062,HTA10_06_065,HTA10_06_107,HTA10_06_110,HTA10_07_001,HTA10_07_006,HTA10_07_101,HTA10_07_201,HTA10_04_001', 'proteomics_level_3/replicate01/Lumos1_FAP2_C1S5_HDR_092120_Fr_PeptideGroups.txt', 'DatabaseSearchParameters.docx', 'HTA10_0000_06049,HTA10_0000_06050,HTA10_0000_06051,HTA10_0000_06052,HTA10_0000_06053,HTA10_0000_06054,HTA10_0000_06055,HTA10_0000_06056,HTA10_0000_06057,HTA10_0000_06058,HTA10_0000_06059,HTA10_0000_06060', 'syn25002162', '1bd4ac58-8f38-4ef4-a8e9-2d590158dde3', 'HTA10_0000_06345', 'MassSpectrometryLevel3', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732852', 4, 17204483, '385ca5ab46907643de5585aa72b636ce', 'Release 5.1', NULL);