cpu_gpu_wrappers/preprocessing/log1p
Description
Logarithmize the data matrix, running either the GPU (rapids-singlecell) or
the CPU (scanpy) variant of log1p, selected with --device_type.
Computes X = log(X + 1), where log denotes the natural logarithm unless
a different base is given.
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input | file required | Input h5mu file. |
--modality | string | Which modality from the input MuData file to process. |
--input_layer | string | Input layer to use. If not set, .X is used. |
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. |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--output | file required output | Output h5mu file. |
--output_layer | string | Output layer to write the transformed matrix to. If not set: when --input_layer is unset, .X is modified in-place; when --input_layer is set, that input layer is modified in-place. |
--output_compression | string | Compression format to use for the output AnnData and/or Mudata H5 files. By default no compression is applied. |
Options
Name | Type & Properties | Description |
|---|---|---|
--base | double | Base of the logarithm. If unset, the natural logarithm is used. |
rapids-singlecell options
Name | Type & Properties | Description |
|---|---|---|
--input_obsm | string | Entry in .obsm to log-transform. Mutually exclusive with --input_layer. |
--output_obsm | string | Output entry in .obsm to write the transformed matrix to. Only valid when --input_obsm is set. If not set, the input .obsm entry is modified in-place. Mutually exclusive with --output_layer. |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
device_type: [ "cpu" ]
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/cpu_gpu_wrappers/preprocessing/log1p/main.nf \
-params-file params.yaml Relationships
Used by
1 relationships
Current component
cpu_gpu_wrappers/preprocessing/log1popenpipeline v5.0.0