transform/bpcells_regress_out
Description
Regress out the effects of confounding variables using a linear least squares regression model with BPCells.
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input | file required | Input h5mu file |
--modality | string | The modality to run this component on. |
--obs_keys | string required multiple | The .obs keys to regress on. |
--input_layer | string | The layer of the adata object to regress on. If not provided, the X attribute of the adata object will be used. |
--var_input | string | Boolean column in .var used to select which genes to regress out (e.g. highly variable genes). The output is stored as a sparse matrix in which the non-selected genes are set to 0. If not provided, all genes are used. |
PCA arguments
Name | Type & Properties | Description |
|---|---|---|
--num_components | integer | Number of principal components to compute. |
--scale_max_value | double | Clip the scaled data to the interval [-scale_max_value, scale_max_value] before running the PCA. Does not clip by default. |
--overwrite | boolean_true | Allow overwriting the .obsm, .varm and .uns PCA slots. |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--output -o | file required output | Output h5mu file. |
--output_layer | string | The new layer of the adata object in which the regressed data is stored. Pass an empty value (or null from Nextflow) to not store the regressed data, e.g. when only the PCA is needed. At least one of --output_layer or --obsm_pca_output must be provided. |
--output_layer_compression | integer | GZIP compression level to use for the regressed output layer. By default no compression is applied. |
--obsm_pca_output | string | If provided, the regressed data is scaled and a PCA is computed with BPCells, without loading the regressed data into memory. The resulting embedding is stored in this .obsm slot. Scaling centers each gene and divides it by its standard deviation, as in transform/scale. At least one of --output_layer or --obsm_pca_output must be provided. |
--varm_pca_output | string | In which .varm slot to store the PCA loadings. Genes not selected by --var_input get zero loadings. |
--uns_pca_output | string | In which .uns slot to store the PCA variance and variance ratio. |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
num_components: [ 50 ]
output: "$id.$key.output"
output_layer: [ "regressed" ]
varm_pca_output: [ "regressed_pca_loadings" ]
uns_pca_output: [ "regressed_pca_variance" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v5.0.0 \
-main-script target/nextflow/transform/bpcells_regress_out/main.nf \
-params-file params.yaml Relationships
Used by
0 relationships
No components use this component.
Current component
transform/bpcells_regress_outopenpipeline v5.0.0
Uses
0 relationships
No component dependencies found.