-- DBMS: snowflake
create or replace TABLE IMAGING_LEVEL2_METADATA_CURRENT (
	PYRAMID VARCHAR(16777216),
	CHANNEL_METADATA_FILENAME VARCHAR(16777216),
	FRAME_AVERAGING VARCHAR(16777216),
	PLANECOUNT VARCHAR(16777216),
	PHYSICALSIZEXUNIT VARCHAR(16777216),
	MERFISH_CODEBOOK_FILE VARCHAR(16777216),
	OBJECTIVE VARCHAR(16777216),
	DIMENSIONORDER VARCHAR(16777216),
	WORKINGDISTANCEUNIT VARCHAR(16777216),
	IMAGE_ID VARCHAR(16777216),
	HTAN_DATA_FILE_ID VARCHAR(16777216),
	COMPONENT VARCHAR(16777216),
	FOVX VARCHAR(16777216),
	IMAGING_ASSAY_TYPE VARCHAR(16777216),
	COMMENT VARCHAR(16777216),
	FOV_NUMBER VARCHAR(16777216),
	FOVY VARCHAR(16777216),
	ZSTACK VARCHAR(16777216),
	SIZEC VARCHAR(16777216),
	PHYSICALSIZEY VARCHAR(16777216),
	SIZEX VARCHAR(16777216),
	HTAN_PARENT_DATA_FILE_ID VARCHAR(16777216),
	HTAN_PARENT_BIOSPECIMEN_ID VARCHAR(16777216),
	PASSED_QC VARCHAR(16777216),
	FILENAME VARCHAR(16777216),
	PHYSICALSIZEX VARCHAR(16777216),
	MICROSCOPE VARCHAR(16777216),
	ENTITYID VARCHAR(16777216),
	SIZET VARCHAR(16777216),
	PIXELTYPE VARCHAR(16777216),
	PHYSICALSIZEZ VARCHAR(16777216),
	PROTOCOL_LINK VARCHAR(16777216),
	SIZEY VARCHAR(16777216),
	PIXELS_BIGENDIAN VARCHAR(16777216),
	HTAN_PARTICIPANT_ID VARCHAR(16777216),
	PHYSICALSIZEYUNIT VARCHAR(16777216),
	FOVYUNIT VARCHAR(16777216),
	LENSNA VARCHAR(16777216),
	NOMINALMAGNIFICATION VARCHAR(16777216),
	SIZEZ VARCHAR(16777216),
	ID VARCHAR(16777216),
	IMMERSION VARCHAR(16777216),
	FOVXUNIT VARCHAR(16777216),
	PHYSICALSIZEZUNIT VARCHAR(16777216),
	MERFISH_POSITIONS_FILE VARCHAR(16777216),
	WORKINGDISTANCE VARCHAR(16777216),
	TSERIES VARCHAR(16777216),
	SOFTWARE_AND_VERSION VARCHAR(16777216),
	FILE_FORMAT VARCHAR(16777216),
	HTAN_CENTER VARCHAR(16777216),
	MANIFEST_ID VARCHAR(16777216),
	MANIFEST_VERSION NUMBER(38,0),
	FILE_SIZE NUMBER(38,0),
	MD5 VARCHAR(16777216),
	DATA_RELEASE VARCHAR(16777216),
	CDS_RELEASE VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."IMAGING_LEVEL2_METADATA_CURRENT" (MERFISH_POSITIONS_FILE, FILE_SIZE, FOVY, DIMENSIONORDER, FILENAME, WORKINGDISTANCEUNIT, MD5, FRAME_AVERAGING, CDS_RELEASE, FILE_FORMAT, HTAN_DATA_FILE_ID, SIZEY, ZSTACK, CHANNEL_METADATA_FILENAME, HTAN_PARENT_BIOSPECIMEN_ID, IMAGING_ASSAY_TYPE, MICROSCOPE, PASSED_QC, HTAN_PARTICIPANT_ID, COMPONENT, COMMENT, PLANECOUNT, TSERIES, FOV_NUMBER, NOMINALMAGNIFICATION, HTAN_CENTER, FOVXUNIT, PHYSICALSIZEZUNIT, FOVX, PIXELTYPE, OBJECTIVE, SIZET, LENSNA, SOFTWARE_AND_VERSION, PROTOCOL_LINK, PHYSICALSIZEXUNIT, PYRAMID, DATA_RELEASE, PHYSICALSIZEZ, IMAGE_ID, PIXELS_BIGENDIAN, SIZEX, PHYSICALSIZEX, SIZEC, MANIFEST_ID, MERFISH_CODEBOOK_FILE, ENTITYID, PHYSICALSIZEYUNIT, FOVYUNIT, MANIFEST_VERSION, HTAN_PARENT_DATA_FILE_ID, PHYSICALSIZEY, SIZEZ, IMMERSION, WORKINGDISTANCE, ID) VALUES (NULL, 76226847546, NULL, 'XYZCT', 'ORION202305_imaging_level_2/P37_S57_Full_A24_C59nX_E15_20220224_011032_774034-zlib.ome.tiff', NULL, '55346ee68da0c481dd28fbcadcd5fe79', NULL, NULL, 'OME-TIFF', 'HTA7_920_1013', '66125', 'No', 'ORION202307_channel_metadata/73-10-channel-metadata.csv', 'HTA7_920_9', 'RareCyte Orion', 'Orion4', 'Yes', 'HTA7_920', 'ImagingLevel2', NULL, '19', 'No', NULL, '20', 'HTAN HMS', NULL, NULL, NULL, 'uint16', NULL, '1', NULL, 'OME Bio-Formats 6.3.1', 'http://dx.doi.org/10.17504/protocols.io.j8nlko4xxv5r/v1', 'µm', 'Yes', 'Release 4.0', 'Not Applicable', 'Image:0', 'False', '45089', '0.325', '19', 'syn52132739', NULL, 'syn51617884', 'µm', NULL, 2, NULL, '0.325', '1', NULL, NULL, 'c4cfbfd7-8c73-4589-9131-7ba8ecf9319a'), (NULL, 114304113301, NULL, 'XYZCT', 'ORION202305_imaging_level_2/P37_S67_Full_A24_C59nX_E15_20220224_011408_506939-zlib.ome.tiff', NULL, '2d482c1782258a998a0b11dd110e35c6', NULL, NULL, 'OME-TIFF', 'HTA7_983_1003', '55254', 'No', 'ORION202307_channel_metadata/73-10-channel-metadata.csv', 'HTA7_983_6', 'RareCyte Orion', 'Orion4', 'Yes', 'HTA7_983', 'ImagingLevel2', NULL, '19', 'No', NULL, '20', 'HTAN HMS', NULL, NULL, NULL, 'uint16', NULL, '1', NULL, 'OME Bio-Formats 6.3.1', 'http://dx.doi.org/10.17504/protocols.io.j8nlko4xxv5r/v1', 'µm', 'Yes', 'Release 4.0', 'Not Applicable', 'Image:0', 'False', '83421', '0.325', '19', 'syn52132739', NULL, 'syn51618009', 'µm', NULL, 2, NULL, '0.325', '1', NULL, NULL, '840d36e2-8f93-489d-ace1-908ebac08059'), (NULL, 124664602085, NULL, 'XYZCT', 'ORION202305_imaging_level_2/P37_S74_Full_A24_C59qX_E15_20220302_234837_137590-zlib.ome.tiff', NULL, '4a27806ea6eba09aa0c730ded991776a', NULL, NULL, 'OME-TIFF', 'HTA7_985_1002', '62700', 'No', 'ORION202307_channel_metadata/73-10-channel-metadata.csv', 'HTA7_985_6', 'RareCyte Orion', 'Orion4', 'Yes', 'HTA7_985', 'ImagingLevel2', NULL, '19', 'No', NULL, '20', 'HTAN HMS', NULL, NULL, NULL, 'uint16', NULL, '1', NULL, 'OME Bio-Formats 6.3.1', 'http://dx.doi.org/10.17504/protocols.io.j8nlko4xxv5r/v1', 'µm', 'Yes', 'Release 4.0', 'Not Applicable', 'Image:0', 'False', '79719', '0.325', '19', 'syn52132739', NULL, 'syn51618022', 'µm', NULL, 2, NULL, '0.325', '1', NULL, NULL, '46d966dc-a18d-4157-9933-4136ff6d8518'), (NULL, 67836048186, NULL, 'XYZCT', 'ORION202305_imaging_level_2/P37_S38_A24_C59kX_E15_20220108_012130_664519-zlib.ome.tiff', NULL, '6f3578483ca8cfee501446f1a48c5771', NULL, NULL, 'OME-TIFF', 'HTA7_931_1013', '35592', 'No', 'ORION202307_channel_metadata/73-10-channel-metadata.csv', 'HTA7_931_9', 'RareCyte Orion', 'Orion4', 'Yes', 'HTA7_931', 'ImagingLevel2', NULL, '19', 'No', NULL, '20', 'HTAN HMS', NULL, NULL, NULL, 'uint16', NULL, '1', NULL, 'OME Bio-Formats 6.3.1', 'http://dx.doi.org/10.17504/protocols.io.j8nlko4xxv5r/v1', 'µm', 'Yes', 'Release 4.0', 'Not Applicable', 'Image:0', 'False', '69367', '0.325', '19', 'syn52132739', NULL, 'syn51617847', 'µm', NULL, 2, NULL, '0.325', '1', NULL, NULL, '4fde35b6-52a1-474e-9c21-f8ee435b39d0'), (NULL, 115924955639, NULL, 'XYZCT', 'ORION202305_imaging_level_2/P37_S78_Full_A24_C59qX_E15_20220302_235239_498836-zlib.ome.tiff', NULL, 'c57b24acc96af348b82a90d3f47e1f1a', NULL, NULL, 'OME-TIFF', 'HTA7_941_1004', '52670', 'No', 'ORION202307_channel_metadata/73-10-channel-metadata.csv', 'HTA7_941_6', 'RareCyte Orion', 'Orion4', 'Yes', 'HTA7_941', 'ImagingLevel2', NULL, '19', 'No', NULL, '20', 'HTAN HMS', NULL, NULL, NULL, 'uint16', NULL, '1', NULL, 'OME Bio-Formats 6.3.1', 'http://dx.doi.org/10.17504/protocols.io.j8nlko4xxv5r/v1', 'µm', 'Yes', 'Release 4.0', 'Not Applicable', 'Image:0', 'False', '84989', '0.325', '19', 'syn52132739', NULL, 'syn51618046', 'µm', NULL, 2, NULL, '0.325', '1', NULL, NULL, '89b2086c-a8a0-4146-9f42-b31ec9deafd3');