workflows/rna/log_normalize
Description
Performs normalization and subsequent log-transformation of raw count data.
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input | file required | MuData file to transform. |
--modality | string | Modality to process. |
--layer | string | Input layer containing raw counts. If not specified, .X is used. |
Transormation options
Name | Type & Properties | Description |
|---|---|---|
--target_sum | integer | Normalize total counts to the specified amount. If not set, after normalization each observation (cell) will have a total count equal to the median of total counts for observations (cells) before normalization. |
Output slots
Name | Type & Properties | Description |
|---|---|---|
--output_layer | string required | Layer to write the log-transformed counts to. |
Output
Name | Type & Properties | Description |
|---|---|---|
--output | file required output | Destination path to the output. |
Compute
Name | Type & Properties | Description |
|---|---|---|
--device_type | string | Which implementation to use for the steps that have both a CPU and a GPU variant (normalization, log1p, scaling, highly variable features, PCA, neighbors, BBKNN, Harmony, Leiden clustering and UMAP): * `cpu` (default): the scanpy implementation. * `gpu`: the rapids-singlecell implementation from the `openpipeline_rapids` package. Selecting `gpu` requires a CUDA-capable NVIDIA GPU on every executor that runs a GPU-labelled process; there is no automatic fallback to CPU. The GPU processes also need the container runtime to be given access to the devices, which is done by adding `-c src/workflows/utils/gpu.config` to the Nextflow command. |
--managed_memory | boolean_true | Only used with `--device_type gpu`. Allocate GPU memory with RMM managed memory from the start. Managed memory lets data that does not fit in VRAM spill to host RAM, at the cost of speed. By default, each GPU step runs with regular GPU memory and only switches to managed memory, retrying once, if the GPU runs out of memory. |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
output: "$id.$key.output.h5mu"
device_type: [ "cpu" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v5.0.0 \
-main-script target/nextflow/workflows/rna/log_normalize/main.nf \
-params-file params.yaml Relationships
Used by
2 relationships
Current component
workflows/rna/log_normalizeopenpipeline v5.0.0