Description
Eliminating technical artifacts from high-throughput single-cell RNA sequencing data.
This module removes counts due to ambient RNA molecules and random barcode swapping from (raw) UMI-based scRNA-seq count matrices.
At the moment, only the count matrices produced by the CellRanger count pipeline is supported. Support for additional tools and protocols
will be added in the future. A quick start tutorial can be found here.
Fleming et al. 2022, bioRxiv.
Type
python_script
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
output: "$id.$key.output.h5mu"
layer_output: [ "cellbender_corrected" ]
obs_background_fraction: [ "cellbender_background_fraction" ]
obs_cell_probability: [ "cellbender_cell_probability" ]
obs_cell_size: [ "cellbender_cell_size" ]
obs_droplet_efficiency: [ "cellbender_droplet_efficiency" ]
obs_latent_scale: [ "cellbender_latent_scale" ]
var_ambient_expression: [ "cellbender_ambient_expression" ]
obsm_gene_expression_encoding: [ "cellbender_gene_expression_encoding" ]
expected_cells_from_qc: [ false ]
model: [ "full" ]
epochs: [ 150 ]
low_count_threshold: [ 5 ]
z_dim: [ 64 ]
z_layers: [ 512 ]
training_fraction: [ 0.9 ]
empty_drop_training_fraction: [ 0.2 ]
fpr: [ 0.01 ]
projected_ambient_count_threshold: [ 0.1 ]
learning_rate: [ 0.0001 ]
num_training_tries: [ 1 ]
learning_rate_retry_mult: [ 0.2 ]
posterior_batch_size: [ 128 ]
estimator: [ "mckp" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision 1.0.0 \
-main-script target/nextflow/correction/cellbender_remove_background/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input -i | file required |
--modality | string |
Name | Type & Properties |
|---|---|
--output -o | file required output |
--output_compression | string |
--layer_output | string |
--obs_background_fraction | string |
--obs_cell_probability | string |
--obs_cell_size | string |
--obs_droplet_efficiency | string |
--obs_latent_scale | string |
--var_ambient_expression | string |
--obsm_gene_expression_encoding | string |
Name | Type & Properties |
|---|---|
--expected_cells_from_qc | boolean |
--expected_cells | integer |
--total_droplets_included | integer |
--force_cell_umi_prior | integer |
--force_empty_umi_prior | integer |
--model | string |
--epochs | integer |
--low_count_threshold | integer |
--z_dim | integer |
--z_layers | integer multiple |
--training_fraction | double |
--empty_drop_training_fraction | double |
--ignore_features | integer multiple |
--fpr | double multiple |
--exclude_feature_types | string multiple |
--projected_ambient_count_threshold | double |
--learning_rate | double |
--final_elbo_fail_fraction | double |
--epoch_elbo_fail_fraction | double |
--num_training_tries | integer |
--learning_rate_retry_mult | double |
--posterior_batch_size | integer |
--posterior_regulation | string |
--alpha | double |
--q | double |
--estimator | string |
--estimator_multiple_cpu | boolean_true |
--constant_learning_rate | boolean |
--debug | boolean_true |
--cuda | boolean_true |