annotate/scanvi

Description

Semi-supervised model for single-cell transcriptomics data. A scVI extension that can leverage the cell type knowledge for a subset of the cells present in the data sets to infer the states of the rest of the cells.

Type

python_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
input_reference_gene_overlap: [ 100 ]  
reference_train_size: [ 0.9 ]  
reference_max_epochs: [ 400 ]  
reference_learning_rate: [ 0.001 ]  
reference_reduce_lr_on_plateau: [ true ]  
reference_lr_patience: [ 25 ]  
reference_lr_factor: [ 0.5 ]  
reference_early_stopping: [ true ]  
reference_early_stopping_patience: [ 50 ]  
query_train_size: [ 0.9 ]  
query_max_epochs: [ 400 ]  
query_learning_rate: [ 0.001 ]  
query_reduce_lr_on_plateau: [ true ]  
query_lr_patience: [ 25 ]  
query_lr_factor: [ 0.5 ]  
query_early_stopping: [ true ]  
query_early_stopping_patience: [ 50 ]  
output: "$id.$key.output.h5mu"  
output_model: "$id.$key.output_model.model_dir"  
output_obs_predictions: [ "scanvi_pred" ]  
output_obs_probability: [ "scanvi_probability" ]  
output_obsm_scanvi_embedding: [ "scanvi_embedding" ]  
unknown_celltype: [ "Unknown" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision 2.0.0 \  
  -main-script target/nextflow/annotate/scanvi/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
-i
file
required
--modality
string
--var_input_gene_names
string
--input_reference_gene_overlap
integer

Reference model

Name
Type & Properties
--scvi_reference_model
file
--scanvi_reference_model
file

SCANVI reference model training arguments

Name
Type & Properties
--reference_train_size
double
--reference_max_epochs
integer
--reference_learning_rate
double
--reference_reduce_lr_on_plateau
boolean
--reference_lr_patience
integer
--reference_lr_factor
double
--reference_early_stopping
boolean
--reference_early_stopping_patience
integer

SCANVI query model training arguments

Name
Type & Properties
--query_train_size
double
--query_max_epochs
integer
--query_learning_rate
double
--query_reduce_lr_on_plateau
boolean
--query_lr_patience
integer
--query_lr_factor
double
--query_early_stopping
boolean
--query_early_stopping_patience
integer

Outputs

Name
Type & Properties
--output
file
required
output
--output_compression
string
--output_model
file
output
--output_obs_predictions
string
--output_obs_probability
string
--output_obsm_scanvi_embedding
string
--unknown_celltype
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.