workflows/annotation/scanvi_scarches

Description

Cell type annotation workflow using ScanVI with scArches for reference mapping.

Type

nextflow_script

License

MIT

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
id: "run"  
modality: [ "rna" ]  
sanitize_ensembl_ids: [ true ]  
unlabeled_category: [ "Unknown" ]  
early_stopping_monitor: [ "elbo_validation" ]  
early_stopping_patience: [ 45 ]  
early_stopping_min_delta: [ 0 ]  
reduce_lr_on_plateau: [ true ]  
lr_factor: [ 0.6 ]  
lr_patience: [ 30 ]  
leiden_resolution: [ 1 ]  
knn_weights: [ "uniform" ]  
knn_n_neighbors: [ 15 ]  
output: "$id.$key.output.h5mu"  
output_obs_predictions: [ "scanvi_pred" ]  
output_obs_probability: [ "scanvi_probabilities" ]  
output_obsm_integrated: [ "X_integrated_scanvi" ]  
output_model: "$id.$key.output_model"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision v4.0.1 \  
  -main-script target/nextflow/workflows/annotation/scanvi_scarches/main.nf \  
  -params-file params.yaml  

Query Input

Name
Type & Properties
--id
string
required
--input
file
required
--modality
string
--layer
string
--input_obs_batch_label
string
required
--input_obs_size_factor
string
--input_obs_categorical_covariate
string
multiple
--input_obs_continuous_covariate
string
multiple
--input_var_gene_names
string
--sanitize_ensembl_ids
boolean

Reference input

Name
Type & Properties
--reference
file
required
--reference_obs_target
string
required
--reference_obs_batch_label
string
required
--reference_obs_size_factor
string
--reference_obs_categorical_covariate
string
multiple
--reference_obs_continuous_covariate
string
multiple
--unlabeled_category
string
--reference_var_hvg
string
--reference_var_gene_names
string

scVI, scANVI and scArches training options

Name
Type & Properties
--early_stopping
boolean
--early_stopping_monitor
string
--early_stopping_patience
integer
--early_stopping_min_delta
double
--max_epochs
integer
--reduce_lr_on_plateau
boolean
--lr_factor
double
--lr_patience
double

Leiden clustering options

Name
Type & Properties
--leiden_resolution
double
multiple

Neighbor classifier arguments

Name
Type & Properties
--knn_weights
string
--knn_n_neighbors
integer

Outputs

Name
Type & Properties
--output
file
required
output
--output_obs_predictions
string
--output_obs_probability
string
--output_obsm_integrated
string
--output_compression
string
--output_model
file
output

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.