-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.HTAN_versioned.imaging_level2_metadata_r2`
(
  Component STRING,
  Filename STRING,
  File_Format STRING,
  HTAN_Participant_ID STRING,
  HTAN_Parent_Biospecimen_ID STRING,
  HTAN_Data_File_ID STRING,
  Channel_Metadata_Filename STRING,
  Imaging_Assay_Type STRING,
  Protocol_Link STRING,
  Software_and_Version STRING,
  Microscope STRING,
  Objective STRING,
  NominalMagnification STRING,
  LensNA STRING,
  WorkingDistance STRING,
  WorkingDistanceUnit STRING,
  Immersion STRING,
  Pyramid STRING,
  Zstack STRING,
  Tseries STRING,
  Passed_QC STRING,
  Comment STRING,
  FOV_number STRING,
  FOVX STRING,
  FOVXUnit STRING,
  FOVY STRING,
  FOVYUnit STRING,
  Frame_Averaging STRING,
  Image_ID STRING,
  DimensionOrder STRING,
  PhysicalSizeX STRING,
  PhysicalSizeXUnit STRING,
  PhysicalSizeY STRING,
  PhysicalSizeYUnit STRING,
  PhysicalSizeZ STRING,
  PhysicalSizeZUnit STRING,
  Pixels_BigEndian STRING,
  PlaneCount STRING,
  SizeC STRING,
  SizeT STRING,
  SizeX STRING,
  SizeY STRING,
  SizeZ STRING,
  PixelType STRING,
  Imaging_Level_2_Channels STRING,
  Image_Acquisition_Date STRING,
  entityId STRING,
  HTAN_Center STRING,
  Data_Release STRING,
  File_Size INT64,
  Base_Filename STRING,
  md5 STRING
)
OPTIONS(
  friendly_name="HTAN IMAGING LEVEL 2 METADATA R2 VERSIONED",
  description="Data was extracted from HTAN Synapse projects in April 2022. More details: see https://data.humantumoratlas.org/standard/imaging",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("program", "htan"), ("source", "htan"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc-bq.HTAN_versioned.imaging_level2_metadata_r2` (Component, Filename, File_Format, HTAN_Participant_ID, HTAN_Parent_Biospecimen_ID, HTAN_Data_File_ID, Channel_Metadata_Filename, Imaging_Assay_Type, Protocol_Link, Software_and_Version, Microscope, Objective, NominalMagnification, LensNA, WorkingDistance, WorkingDistanceUnit, Immersion, Pyramid, Zstack, Tseries, Passed_QC, Comment, FOV_number, FOVX, FOVXUnit, FOVY, FOVYUnit, Frame_Averaging, Image_ID, DimensionOrder, PhysicalSizeX, PhysicalSizeXUnit, PhysicalSizeY, PhysicalSizeYUnit, PhysicalSizeZ, PhysicalSizeZUnit, Pixels_BigEndian, PlaneCount, SizeC, SizeT, SizeX, SizeY, SizeZ, PixelType, Imaging_Level_2_Channels, Image_Acquisition_Date, entityId, HTAN_Center, Data_Release, File_Size, Base_Filename, md5) VALUES ('ImagingLevel2', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_01.ome.tiff', 'OME-TIFF', 'HT060P1', 'HTA12_2_102', 'HTA12_2_1112', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_01.csv', 'IMC', 'https://www.protocols.io/view/tissue-staining-for-imaging-mass-cytometry-bspyndpw', 'custom scripts', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'None', 'µm', 'None', 'No', 'No', 'No', 'Yes', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Image:0', 'XYCZT', '429', 'µm', '208', 'µm', 'Not Applicable', 'µm', 'False', '1', '28', '1', '429', '208', '1', 'float', 'None', 'None', 'syn28564621', 'HTAN WUSTL', 'Release 2.0', 5007222, 'HT060P1_REMAIN_ROI_01.ome.tiff', '224b2ccffeaf0c3e60314fe39768ab03'), ('ImagingLevel2', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_02.ome.tiff', 'OME-TIFF', 'HT060P1', 'HTA12_2_102', 'HTA12_2_1113', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_02.csv', 'IMC', 'https://www.protocols.io/view/tissue-staining-for-imaging-mass-cytometry-bspyndpw', 'custom scripts', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'None', 'µm', 'None', 'No', 'No', 'No', 'Yes', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Image:0', 'XYCZT', '1025', 'µm', '550', 'µm', 'Not Applicable', 'µm', 'False', '1', '28', '1', '1025', '550', '1', 'float', 'None', 'None', 'syn28564677', 'HTAN WUSTL', 'Release 2.0', 31580340, 'HT060P1_REMAIN_ROI_02.ome.tiff', 'c59b9ad0e154c3a48f0d9de592354d87'), ('ImagingLevel2', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_03.ome.tiff', 'OME-TIFF', 'HT060P1', 'HTA12_2_102', 'HTA12_2_1114', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_03.csv', 'IMC', 'https://www.protocols.io/view/tissue-staining-for-imaging-mass-cytometry-bspyndpw', 'custom scripts', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'None', 'µm', 'None', 'No', 'No', 'No', 'Yes', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Image:0', 'XYCZT', '729', 'µm', '768', 'µm', 'Not Applicable', 'µm', 'False', '1', '28', '1', '729', '768', '1', 'float', 'None', 'None', 'syn28564611', 'HTAN WUSTL', 'Release 2.0', 31363062, 'HT060P1_REMAIN_ROI_03.ome.tiff', 'e6324dafe64b4da94870b9c856747532'), ('ImagingLevel2', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_04.ome.tiff', 'OME-TIFF', 'HT060P1', 'HTA12_2_102', 'HTA12_2_1115', 'imc_level_2/batch_1_03302022_v2/HT060P1_REMAIN_ROI_04.csv', 'IMC', 'https://www.protocols.io/view/tissue-staining-for-imaging-mass-cytometry-bspyndpw', 'custom scripts', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'None', 'µm', 'None', 'No', 'No', 'No', 'Yes', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Image:0', 'XYCZT', '502', 'µm', '384', 'µm', 'Not Applicable', 'µm', 'False', '1', '28', '1', '502', '384', '1', 'float', 'None', 'None', 'syn28564616', 'HTAN WUSTL', 'Release 2.0', 10805238, 'HT060P1_REMAIN_ROI_04.ome.tiff', '8368399ba997b2adda30484898993704'), ('ImagingLevel2', 'imc_level_2/batch_1_03302022_v2/HT056P1_PA_A1_A4_ROI_01.ome.tiff', 'OME-TIFF', 'HT056P1', 'HTA12_1_102', 'HTA12_1_1102', 'imc_level_2/batch_1_03302022_v2/HT056P1_PA_A1_A4_ROI_01.csv', 'IMC', 'https://www.protocols.io/view/tissue-staining-for-imaging-mass-cytometry-bspyndpw', 'custom scripts', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'Not Applicable', 'None', 'µm', 'None', 'No', 'No', 'No', 'Yes', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Image:0', 'XYCZT', '538', 'µm', '587', 'µm', 'Not Applicable', 'µm', 'False', '1', '28', '1', '538', '587', '1', 'float', 'None', 'None', 'syn28564284', 'HTAN WUSTL', 'Release 2.0', 17695476, 'HT056P1_PA_A1_A4_ROI_01.ome.tiff', '91ad24661794caf9a3322054efa503d1');