-- DBMS: snowflake
create or replace TABLE SRRS_IMAGING_LEVEL2_METADATA_CURRENT (
	CHANNEL_METADATA_FILENAME VARCHAR(16777216),
	FRAME_AVERAGING VARCHAR(16777216),
	PLANECOUNT VARCHAR(16777216),
	PHYSICALSIZEXUNIT VARCHAR(16777216),
	OBJECTIVE VARCHAR(16777216),
	DIMENSIONORDER VARCHAR(16777216),
	IMAGE_ID VARCHAR(16777216),
	HTAN_DATA_FILE_ID VARCHAR(16777216),
	COMPONENT VARCHAR(16777216),
	FILE_FORMAT VARCHAR(16777216),
	IMAGING_ASSAY_TYPE VARCHAR(16777216),
	COMMENT VARCHAR(16777216),
	ZSTACK VARCHAR(16777216),
	SIZEC VARCHAR(16777216),
	PHYSICALSIZEY VARCHAR(16777216),
	SIZEX 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),
	PROTOCOL_LINK VARCHAR(16777216),
	SIZEY VARCHAR(16777216),
	PIXELS_BIGENDIAN VARCHAR(16777216),
	HTAN_PARTICIPANT_ID VARCHAR(16777216),
	PHYSICALSIZEYUNIT VARCHAR(16777216),
	SIZEZ VARCHAR(16777216),
	NOMINALMAGNIFICATION VARCHAR(16777216),
	ID VARCHAR(16777216),
	TSERIES VARCHAR(16777216),
	SOFTWARE_AND_VERSION VARCHAR(16777216),
	PYRAMID 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"."SRRS_IMAGING_LEVEL2_METADATA_CURRENT" (FILE_FORMAT, PHYSICALSIZEYUNIT, FILE_SIZE, IMAGING_ASSAY_TYPE, COMMENT, PYRAMID, IMAGE_ID, DIMENSIONORDER, CHANNEL_METADATA_FILENAME, HTAN_PARENT_BIOSPECIMEN_ID, ZSTACK, MD5, PHYSICALSIZEX, SOFTWARE_AND_VERSION, NOMINALMAGNIFICATION, OBJECTIVE, PHYSICALSIZEY, HTAN_CENTER, PHYSICALSIZEXUNIT, TSERIES, SIZEX, FRAME_AVERAGING, PIXELTYPE, PROTOCOL_LINK, CDS_RELEASE, SIZEZ, PLANECOUNT, HTAN_PARTICIPANT_ID, HTAN_DATA_FILE_ID, MANIFEST_VERSION, ID, MANIFEST_ID, SIZET, FILENAME, COMPONENT, SIZEC, SIZEY, PASSED_QC, PIXELS_BIGENDIAN, MICROSCOPE, ENTITYID, DATA_RELEASE) VALUES ('svs', '<U+00B5>m', 1311375374, 'H&E', NULL, 'Yes', '423981', 'XYZCT', 'Not Applicable', 'HTA15_30001_7000027', 'No', '965a218078742ad5946c3632474149ce', '0.25', 'Aperio Image Library v12.0.15', '40', NULL, '0.25', 'HTAN SRRS', '<U+00B5>m', 'No', '79360', NULL, 'uint8', 'dx.doi.org/10.17504/protocols.io.bzuvp6w6', NULL, '1', '1', 'HTA15_30001', 'HTA15_30001_700002701', 2, '15cfa571-9a1d-44f7-b3aa-c2245601403e', 'syn52702413', '1', 'BU_imaging_level_2_clean/UCD0017374_HTA15-30001_FFPE_HE_K1-1_cleaned.svs', 'SRRSImagingLevel2', '3', '66346', 'Yes', 'True', 'Leica-Aperio AT2', 'syn52431244', 'Release 4.1'), ('svs', '<U+00B5>m', 314984970, 'H&E', NULL, 'Yes', '423963', 'XYZCT', 'Not Applicable', 'HTA15_30001_7100043', 'No', '1316feeb0aee5d1ee057f429f4901dbc', '0.25', 'Aperio Image Library v12.0.15', '40', NULL, '0.25', 'HTAN SRRS', '<U+00B5>m', 'No', '47616', NULL, 'uint8', 'dx.doi.org/10.17504/protocols.io.bzuvp6w6', NULL, '1', '1', 'HTA15_30001', 'HTA15_30001_710004301', 2, '97bd0222-d574-44e6-86c3-754d7f12d944', 'syn52702413', '1', 'BU_imaging_level_2_clean/UCD0017374_HTA15-30001_OCT_HE_HA1-5_cleaned.svs', 'SRRSImagingLevel2', '3', '35848', 'Yes', 'True', 'Leica-Aperio AT2', 'syn52431252', 'Release 4.1'), ('svs', '<U+00B5>m', 984366168, 'H&E', NULL, 'Yes', '423962', 'XYZCT', 'Not Applicable', 'HTA15_30001_7100042', 'No', 'bd7cf40d3fb88889f169b08fae76cc64', '0.25', 'Aperio Image Library v12.0.15', '40', NULL, '0.25', 'HTAN SRRS', '<U+00B5>m', 'No', '81344', NULL, 'uint8', 'dx.doi.org/10.17504/protocols.io.bzuvp6w6', NULL, '1', '1', 'HTA15_30001', 'HTA15_30001_710004201', 2, '2e23c0fd-ef7e-444b-92f6-6f3b52b9a26d', 'syn52702413', '1', 'BU_imaging_level_2_clean/UCD0017374_HTA15-30001_OCT_HE_N1-1_cleaned.svs', 'SRRSImagingLevel2', '3', '41568', 'Yes', 'True', 'Leica-Aperio AT2', 'syn52431257', 'Release 4.1'), ('svs', '<U+00B5>m', 27667774, 'H&E', NULL, 'Yes', '424017', 'XYZCT', 'Not Applicable', 'HTA15_30001_7000039', 'No', '42e10955433cfcfa306c579aaecf6fad', '0.25', 'Aperio Image Library v12.0.15', '40', NULL, '0.25', 'HTAN SRRS', '<U+00B5>m', 'No', '10912', NULL, 'uint8', 'dx.doi.org/10.17504/protocols.io.bzuvp6w6', NULL, '1', '1', 'HTA15_30001', 'HTA15_30001_700003901', 2, '06d08aa7-db9d-47e4-86ee-abb915308634', 'syn52702413', '1', 'BU_imaging_level_2_clean/UCD0017374_HTA15-30001_FFPE_HE_PTBx4-1_cleaned.svs', 'SRRSImagingLevel2', '3', '29639', 'Yes', 'True', 'Leica-Aperio AT2', 'syn52431251', 'Release 4.1'), ('svs', '<U+00B5>m', 32223228, 'H&E', NULL, 'Yes', '424032', 'XYZCT', 'Not Applicable', 'HTA15_30001_7000036', 'No', '37ceb0f5f5cb76bb0229dfdfcceef9b4', '0.25', 'Aperio Image Library v12.0.15', '40', NULL, '0.25', 'HTAN SRRS', '<U+00B5>m', 'No', '16864', NULL, 'uint8', 'dx.doi.org/10.17504/protocols.io.bzuvp6w6', NULL, '1', '1', 'HTA15_30001', 'HTA15_30001_700003601', 2, '7aa12b87-3275-41ed-b28b-d33d2b3bdbb8', 'syn52702413', '1', 'BU_imaging_level_2_clean/UCD0017374_HTA15-30001_FFPE_HE_PTBx1-1_cleaned.svs', 'SRRSImagingLevel2', '3', '10824', 'Yes', 'True', 'Leica-Aperio AT2', 'syn52431248', 'Release 4.1');