filter/create_cell_masks
Description
Create boolean cell masks using a set of provided filters. These masks are
stored so that they can be used to select cells in later stages.
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input | file required | A MuData file containing the data to filter |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--output | file output | The output MuData file with the created cell masks. Individual cell masks are stored as a `DataFrame` in `.obsm` and summary masks for each filter group are stored as boolean columns in `.obs`. |
--output_compression | string | Compression format to use for the output AnnData and/or Mudata H5 files. By default no compression is applied. |
Parameters
Name | Type & Properties | Description |
|---|---|---|
--modality | string required | The name of the modality to use from the MuData object. This specifies which AnnData object within the MuData file should be filtered. |
--filters | string required multiple | A set of filters to create cell masks. Each filter should be specified in the format `<column>:<operator>:<value>:<group>`, where: - `<column>` is the name of a column in `.obs` (e.g., `total_counts`, `n_genes`) - `<operator>` is the name of a comparison operator, one of `lt` (less than), `gt` (greater than), `le` (less or equal), `ge` (greater or equal), `eq` (equal) or `ne` (not equal) - `<value>` is the threshold value for the filter - `<group>` (optional) a group label used to name the created mask For example, the filter `total_counts:gt:100:rna` creates a mask selecting cells with `total_counts` greater than 100. The created mask will be named `rna_total_counts`. |
--prefix | string | An optional prefix to use for naming the cell masks `DataFrame` and `.obs` columns. When set, the `DataFrame` containing individual cell masks in `.obsm` will be named `<prefix>_masks` (e.g., `cell_masks`) and the summary columns in `.obs` will be named `<prefix>_mask_<group>` (e.g., `cell_mask_rna`). When omitted, the names are `masks` and `mask_<group>` (the overall summary column is simply `mask`). |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
output: "$id.$key.output.h5mu"
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v5.0.0 \
-main-script target/nextflow/filter/create_cell_masks/main.nf \
-params-file params.yaml Relationships
Used by
0 relationships
No components use this component.
Current component
filter/create_cell_masksopenpipeline v5.0.0
Uses
0 relationships
No component dependencies found.