-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.HTAN_versioned.massSpectrometry_level4_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 4 METADATA R5 VERSIONED",
  description="This table contains the file metadata for the fourth 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_level4_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_4/replicate01/Lumos1_FAP2_C1S1_HDR_091120_Fr_Proteins.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', 'syn23879757', 'add1f711-74dd-43ea-9bf8-290859bc1d22', 'HTA10_0000_06338', 'MassSpectrometryLevel4', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732873', 4, 2594414, 'e2429de1de3565c3f052bc3ae817805b', '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_4/replicate01/Lumos1_FAP2_C1S2_HDR_091320_Fr_Proteins.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', 'syn23879758', 'ecc406e7-2c2a-4044-bf71-5b3f5f8b582e', 'HTA10_0000_06340', 'MassSpectrometryLevel4', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732873', 4, 2655531, '805f48bf0ad85760a76994d97f3d7db1', '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_4/replicate01/Lumos1_FAP2_C1S3_HDR_091520_Fr_Proteins.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', 'syn25126670', 'e373ae85-1751-4a13-8bb7-a30df61d1e27', 'HTA10_0000_06342', 'MassSpectrometryLevel4', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732873', 4, 2472511, 'fda9f3c3cc302286b926acec2b6ecfbd', '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_4/replicate01/Lumos1_FAP2_C1S4_HDR_091820_Fr_Proteins.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', 'syn25002160', 'cc90ae6b-b44a-497d-b390-63b5dcca04a9', 'HTA10_0000_06344', 'MassSpectrometryLevel4', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732873', 4, 2468839, 'cf317f477c7cad3a03ae883bc88e63a0', '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_4/replicate01/Lumos1_FAP2_C1S5_HDR_092120_Fr_Proteins.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', 'syn25002159', 'f0216b62-84a7-482c-b3b6-7907d9230712', 'HTA10_0000_06346', 'MassSpectrometryLevel4', 'proteomics TMT', 'Proteome Discoverer 2.5', 'txt', 'HTAN Stanford', 'syn51732873', 4, 2345676, 'e0eb47f842191654e22d60a467f05c0b', 'Release 5.1', NULL);