workflows/integration/harmony_leiden
Description
Run harmony integration followed by neighbour calculations, leiden clustering and run umap on the result.
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input | file | Path to the sample. Mutually exclusive with the 'input_uri' argument. |
--tiledb_input_uri | string | A URI containing the TileDB-SOMA objects. Mutually exclusive with the 'input' argument. |
--tiledb_s3_region | string | Region where the TileDB-SOMA database is hosted. |
--tiledb_endpoint | string | Custom endpoint to use to connect to S3 |
--tiledb_s3_no_sign_request | boolean | Do not sign S3 requests. Credentials will not be loaded if this argument is provided. |
Input slots
Name | Type & Properties | Description |
|---|---|---|
--layer | string | use specified layer for expression values instead of the .X object from the modality. |
--modality | string | Which modality to process. |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--output | file required output | Destination path to the output. |
--output_tiledb | file output | Output the TileDB database to the specified directory instead of adding it to the existing database. |
Neighbour calculation
Name | Type & Properties | Description |
|---|---|---|
--uns_neighbors | string | In which .uns slot to store various neighbor output objects. |
--obsp_neighbor_distances | string | In which .obsp slot to store the distance matrix between the resulting neighbors. |
--obsp_neighbor_connectivities | string | In which .obsp slot to store the connectivities matrix between the resulting neighbors. |
Harmony integration options
Name | Type & Properties | Description |
|---|---|---|
--embedding | string | Embedding to use as input |
--obsm_integrated | string | In which .obsm slot to store the resulting integrated embedding. |
--obs_covariates | string required multiple | The .obs field(s) that define the covariate(s) to regress out. |
--theta | double multiple | Diversity clustering penalty parameter. Can be set as a single value for all batch observations or as multiple values, one for each observation in the batches defined by --obs_covariates. theta=0 does not encourage any diversity. Larger values of theta result in more diverse clusters." |
Clustering options
Name | Type & Properties | Description |
|---|---|---|
--obs_cluster | string | Prefix for the .obs keys under which to add the cluster labels. Newly created columns in .obs will be created from the specified value for '--obs_cluster' suffixed with an underscore and one of the resolutions resolutions specified in '--leiden_resolution'. |
--leiden_resolution | double multiple | Control the coarseness of the clustering. Higher values lead to more clusters. |
Umap options
Name | Type & Properties | Description |
|---|---|---|
--obsm_umap | string | In which .obsm slot to store the resulting UMAP embedding. |
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'
tiledb_s3_no_sign_request: [ false ]
layer: [ "log_normalized" ]
modality: [ "rna" ]
output: "$id.$key.output.h5mu"
output_tiledb: "$id.$key.output_tiledb"
uns_neighbors: [ "harmonypy_integration_neighbors" ]
obsp_neighbor_distances: [ "harmonypy_integration_distances" ]
obsp_neighbor_connectivities: [ "harmonypy_integration_connectivities" ]
embedding: [ "X_pca" ]
obsm_integrated: [ "X_pca_integrated" ]
theta: [ 2 ]
obs_cluster: [ "harmony_integration_leiden" ]
leiden_resolution: [ 1 ]
obsm_umap: [ "X_leiden_harmony_umap" ]
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/integration/harmony_leiden/main.nf \
-params-file params.yaml Relationships
Used by
1 relationships
Current component
workflows/integration/harmony_leidenopenpipeline v5.0.0