filter/filter_with_scrublet

Description

Doublet detection using the Scrublet method (Wolock, Lopez and Klein, 2019).
The method tests for potential doublets by using the expression profiles of
cells to generate synthetic potential doubles which are tested against cells.
The method returns a "doublet score" on which it calls for potential doublets.

For the source code please visit https://github.com/AllonKleinLab/scrublet.

For 10x we expect the doublet rates to be:
Multiplet Rate (%) - # of Cells Loaded - # of Cells Recovered
~0.4% ~800 ~500
~0.8% ~1,600 ~1,000
~1.6% ~3,200 ~2,000
~2.3% ~4,800 ~3,000
~3.1% ~6,400 ~4,000
~3.9% ~8,000 ~5,000
~4.6% ~9,600 ~6,000
~5.4% ~11,200 ~7,000
~6.1% ~12,800 ~8,000
~6.9% ~14,400 ~9,000
~7.6% ~16,000 ~10,000

Type

python_script

License

MIT

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
output: "$id.$key.output.h5mu"  
obs_name_filter: [ "filter_with_scrublet" ]  
obs_name_doublet_score: [ "scrublet_doublet_score" ]  
min_counts: [ 2 ]  
min_cells: [ 3 ]  
min_gene_variablity_percent: [ 85 ]  
num_pca_components: [ 30 ]  
distance_metric: [ "euclidean" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision v4.2.0 \  
  -main-script target/nextflow/filter/filter_with_scrublet/main.nf \  
  -params-file params.yaml  

Arguments

Name
Type & Properties
--input
file
required
--modality
string
--layer
string
--output
file
output
--obs_name_filter
string
--do_subset
boolean_true
--obs_name_doublet_score
string
--expected_doublet_rate
double
--stdev_doublet_rate
double
--n_neighbors
integer
--sim_doublet_ratio
double
--min_counts
integer
--min_cells
integer
--min_gene_variablity_percent
double
--num_pca_components
integer
--distance_metric
string
--scrublet_score_threshold
double
--allow_automatic_threshold_detection_fail
boolean_true
--output_compression
string

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.