hubmapconsortium / mibi-pipeline

Forked from celldive to create new pipeline for mibi
GNU General Public License v3.0
0 stars 2 forks source link

Read pixel physical size from HuBMAP metadata #1

Closed mruffalo closed 1 year ago

mruffalo commented 1 year ago

The HuBMAP MIBI metadata spec contains the physical size for pixels, in the fields

Read these physical sizes from HuBMAP *metadata.tsv files, and embed this information in the appropriate OME-XML attributes when writing OME-TIFF output files.

mruffalo commented 1 year ago

The Salmon RNA-seq pipeline has functionality for (optionally) reading HuBMAP metadata files, as in https://github.com/hubmapconsortium/salmon-rnaseq/blob/main/bin/salmon/salmon_wrapper.py#L43 and https://github.com/hubmapconsortium/salmon-rnaseq/blob/main/bin/salmon/salmon_wrapper.py#L66. The regex at https://github.com/hubmapconsortium/salmon-rnaseq/blob/main/bin/salmon/salmon_wrapper.py#L38 probably needs to be loosened a bit, likely to match something like (.*)metadata.tsv$.

seschultz commented 1 year ago

Updated collect_dataset_info.py, collect_output.py, and utils_ome.py to do this