Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chiarasch authored Aug 7, 2024
1 parent f2ef547 commit 0d67272
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
# metadata_formatting
Formatting tif/ome-tif metadata for MCMICRO staging modules
# phenoimager2
Formatting PhenoImager .tif output files to be compatible with the MCMCIRO pipeline and ASHLAR.

## Description
**Raw data:**
The PhenoImager software outputs one float32 .tif file per tile and cycle containing all channels. The metadata is unstandardized.
**Goal:**
For analysing the data within MCMCIRO (initial registration with ASHLAR), one stacked ome-tif file per channel containing all tiles and cycles is required.
**Steps in this module:**
* Extraction of metadata from unstandardized tif files
* Creation of stacked and correct ome-tiff files readable for ASHLAR
* Conversion from float32 to uint16
* Normalization to max or 99th percentile (user's choice)

## Usage

### CLI
#### Input
The CLI script `scripts/phenoimager2mc.py` requires 3 inputs
* The path to the folder containing all .tif files from one cycle with `-i` or `--input`
* The number of markers that was used in this cycle with `-m` or `--num_markers`
* The normalization method that the intensities per cycle should be normalized with. Either 99th or max with `-n` or `--normalization`

#### Output
* Output .tif file containing all tiles and channels of one cycle with `-o` or `--output`

### Docker usage

If you want to run the module directly from a pre-configured container with all the required packages, you can either build the docker container yourself or pull it from the Github container registry.

To build the container run:

```
git clone https://github.com/SchapiroLabor/phenoimager2mc.git
docker build -t phenoimager2mc:latest .
docker run phenoimager2mc:latest python phenoimager2mc.py
```

To pull the container from the Github container registry (ghcr.io):

```
## Login to ghcr.io
docker login ghcr.io
## Pull container
docker pull ghcr.io/schapirolabor/phenoimager2mc:latest
```

0 comments on commit 0d67272

Please sign in to comment.