What it does¶
Tissue autofluorescence adds to every marker. backsub subtracts, pixel by pixel, a channel acquired only to record that background from the markers you assign it to.
Parameters¶
use_backsub: turns the step on. Off by default.backsub_args: extra options handed to backsub.Three marker sheet columns:
exposure(every channel),background(whichautofluorescencechannel to subtract from this marker) andremove(drop this channel afterwards). They are checked when the run starts.
More in Background subtraction.
How it works¶
Each marker channel loses its background channel, scaled by the two channels’ exposure times:
marker_corrected = marker_raw − background × (exposure_marker / exposure_background)Channels marked remove, usually the background channels themselves, are then dropped. backsub
was developed for Lunaphore COMET data and works with MCMICRO.
It runs once per sample after Ashlar, or once per core after Coreograph. The image before subtraction is kept for the QC report, which compares the two.
Inputs and outputs. In: the stitched OME-TIFF and the marker sheet. Out, under
preprocessing/background_subtraction/: {sample}_backsub.ome.tif, a pyramidal OME-TIFF, and
{sample}_backsub.csv, a marker sheet that matches it. Everything downstream reads this new
sheet: removed channels are gone and channel_number is renumbered. See
Preprocessing outputs.
Similar tools¶
Subtracting after quantification: measure the autofluorescence channel per cell like any marker, and correct the table instead of the image. backsub’s authors encourage this when the corrected image is not needed for viewing or segmentation.
Background estimators such as a rolling-ball filter remove smooth background from a single channel, without a recorded autofluorescence channel.
backsub came as an optional step with the preprocessing half from nf-core/mcmicro.
Read more¶
backsub has no paper: SchapiroLabor
/Background _subtraction. MCMICRO, the pipeline it works with: Schapiro et al., 2021.
Version used:
| Module | Tool | Version | Container | Paper |
|---|---|---|---|---|
| BACKSUB | backsub | 0.5.1 | ghcr.io/schapirolabor/background_subtraction:v0.5.1 |
- Schapiro, D., Sokolov, A., Yapp, C., Chen, Y.-A., Muhlich, J. L., Hess, J., Creason, A. L., Nirmal, A. J., Baker, G. J., Nariya, M. K., Lin, J.-R., Maliga, Z., Jacobson, C. A., Hodgman, M. W., Ruokonen, J., Farhi, S. L., Abbondanza, D., McKinley, E. T., Persson, D., … Sorger, P. K. (2021). MCMICRO: a scalable, modular image-processing pipeline for multiplexed tissue imaging. Nature Methods, 19(3), 311–315. 10.1038/s41592-021-01308-y