From 361c05443d7749e1af5fc6e53d4ea12960252ad3 Mon Sep 17 00:00:00 2001
From: jpuerto-psc <68066250+jpuerto-psc@users.noreply.github.com>
Date: Fri, 12 Jul 2024 14:39:47 -0400
Subject: [PATCH] Jpuerto/merfish release (#1345)
* General: Release MERFISH
* Update merfish-v2.0.yaml
Add MERFISH directory schema
* Update CHANGELOG.md
* General: Update MERFISH docs.
* General: Fix doc issues
---------
Co-authored-by: Juan Puerto <=>
Co-authored-by: j-uranic <117292295+j-uranic@users.noreply.github.com>
---
CHANGELOG.md | 1 +
docs/merfish/current/index.md | 50 +++++++++++++++++++
.../directory-schemas/merfish-v2.0.yaml | 2 +-
3 files changed, 52 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57468ec7a..3c113a84b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
## v0.0.24 (in progress)
- Release MERFISH
- Add MERFISH directory schema
+- Fix documentation issue for MERFISH
## v0.0.23
- Add token to validation_utils.get_assaytype_data, replace URL string concatenation with urllib
diff --git a/docs/merfish/current/index.md b/docs/merfish/current/index.md
index e69de29bb..8e7035272 100644
--- a/docs/merfish/current/index.md
+++ b/docs/merfish/current/index.md
@@ -0,0 +1,50 @@
+---
+title: MERFISH
+schema_name: merfish
+category: Fluorescence In Situ Hybridization (FISH)
+all_versions_deprecated: False
+exclude_from_index: False
+layout: default
+
+---
+
+Related files:
+
+Excel and TSV templates for this schema will be available when the draft next-generation schema, to be used in all future submissions, is finalized (no later than Sept. 30).
+
+[This link](https://docs.google.com/spreadsheets/d/1YnmdTAA0Z9MKN3OjR3Sca8pz-LNQll91wdQoRPSP6Q4/edit#gid=0) lists the set of fields that are required in the OME TIFF file XML header.
+
+## Metadata schema
+
+
+Version 2 (use this one) (draft - submission of data prepared using this schema will be supported by Sept. 30) (TBD)
+
+
+
+
+
+## Directory schemas
+Version 2.0 (use this one)
+
+| pattern | required? | description |
+| --- | --- | --- |
+| extras\/.*
| ✓ | Folder for general lab-specific files related to the dataset. |
+| extras\/microscope_hardware\.json
| ✓ | **[QA/QC]** A file generated by the micro-meta app that contains a description of the hardware components of the microscope. Email HuBMAP Consortium Help Desk if help is required in generating this document. |
+| extras\/microscope_settings\.json
| | **[QA/QC]** A file generated by the micro-meta app that contains a description of the settings that were used to acquire the image data. Email HuBMAP Consortium Help Desk if help is required in generating this document. |
+| raw\/.*
| ✓ | All raw data files for the experiment. |
+| raw\/additional_panels_used\.csv
| | If multiple commercial probe panels were used, then the primary probe panel should be selected in the "oligo_probe_panel" metadata field. The additional panels must be included in this file. Each panel record should include:manufacturer, model/name, product code. |
+| raw\/gene_panel\.csv
| ✓ | The list of target genes. |
+| raw\/custom_probe_set\.csv
| | This file should contain any custom probes used and must be included if the metadata field "is_custom_probes_used" is "Yes". The file should minimally include:target gene id, probe seq, probe id. The contents of this file are modeled after the 10x Genomics probe set file (see ). |
+| raw\/micron_to_mosaic_pixel_transform\.csv
| | Matrix used to transform from pixels to physical distance. |
+| raw\/manifest\.json
| ✓ | This file contains stain by channel details and pixel details. |
+| raw\/codebook\.csv
| ✓ | CSV containing codebook information for the experiment. Rows are barcodes and columns are imaging rounds. The first column is the barcode target, and the following column IDs are expected to be sequential, and round identifiers are expected to be integers (not roman numerals). |
+| raw\/positions\.csv
| ✓ | File that includes the top left coordinate of each tiled image. This is required to stitch the images. |
+| raw\/dataorganization\.csv
| ✓ | Necessary image definitions |
+| raw\/[^\/]+\.DAX
| ✓ | The raw image stack. |
+| raw\/images\/.*
| ✓ | Directory containing raw image files. This directory should include at least one raw file. |
+| raw\/images\/[^\/]+\.tif
| ✓ | Raw microscope file for the experiment. |
+| lab_processed\/.*
| ✓ | Experiment files that were processed by the lab generating the data. |
+| lab_processed\/detected_transcripts\.csv
| ✓ | A file containing the locations of each RNA target. |
+| lab_processed\/images\/.*
| ✓ | Processed image files |
+| lab_processed\/images\/[^\/]+\.ome\.tiff
(example: lab_processed/images/HBM892.MDXS.293.ome.tiff
) | ✓ | OME-TIFF files (multichannel, multi-layered) produced by the microscopy experiment. If compressed, must use loss-less compression algorithm. For Visium this stitched file should only include the single capture area relevant to the current dataset. For GeoMx there will be one OME TIFF file per slide, with each slide including multiple AOIs. See the following link for the set of fields that are required in the OME TIFF file XML header. |
+| lab_processed\/images\/[^\/]*ome-tiff\.channels\.csv
| ✓ | This file provides essential documentation pertaining to each channel of the accommpanying OME TIFF. The file should contain one row per OME TIFF channel. The required fields are detailed |
diff --git a/src/ingest_validation_tools/directory-schemas/merfish-v2.0.yaml b/src/ingest_validation_tools/directory-schemas/merfish-v2.0.yaml
index 3a1057e99..037829b4f 100644
--- a/src/ingest_validation_tools/directory-schemas/merfish-v2.0.yaml
+++ b/src/ingest_validation_tools/directory-schemas/merfish-v2.0.yaml
@@ -78,7 +78,7 @@ files:
required: True
description: OME-TIFF files (multichannel, multi-layered) produced by the microscopy experiment. If compressed, must use loss-less compression algorithm. For Visium this stitched file should only include the single capture area relevant to the current dataset. For GeoMx there will be one OME TIFF file per slide, with each slide including multiple AOIs. See the following link for the set of fields that are required in the OME TIFF file XML header.
is_qa_qc: False
- example: HBM892.MDXS.293.ome.tiff
+ example: lab_processed/images/HBM892.MDXS.293.ome.tiff
-
pattern: lab_processed\/images\/[^\/]*ome-tiff\.channels\.csv
required: True