workflows/annotation/scgpt_integration_knn

Description

Cell type annotation workflow that performs scGPT integration of reference and query dataset followed by KNN label transfer.

Type

nextflow_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
id: "run"  
modality: [ "rna" ]  
pad_token: [ "<pad>" ]  
pad_value: [ -2 ]  
n_hvg: [ 1200 ]  
dsbn: [ true ]  
batch_size: [ 64 ]  
n_input_bins: [ 51 ]  
leiden_resolution: [ 1 ]  
weights: [ "uniform" ]  
n_neighbors: [ 15 ]  
output: "$id.$key.output.h5mu"  
output_obsm_integrated: [ "X_integrated_scgpt" ]  
publish_dir: "output/"  
EOM

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

Query Input

Name
Type & Properties
--id
string
required
--input
file
required
--modality
string
--input_layer
string
--input_var_gene_names
string
--input_obs_batch_label
string
required
--overwrite_existing_key
boolean_true

Reference input

Name
Type & Properties
--reference
file
required
--reference_obs_targets
string
required
multiple
--reference_var_gene_names
string
--reference_obs_batch_label
string
required

scGPT model

Name
Type & Properties
--model
file
required
--model_vocab
file
required
--model_config
file
required
--finetuned_checkpoints_key
string

Padding arguments

Name
Type & Properties
--pad_token
string
--pad_value
integer

HVG subset arguments

Name
Type & Properties
--n_hvg
integer

Tokenization arguments

Name
Type & Properties
--max_seq_len
integer

Embedding arguments

Name
Type & Properties
--dsbn
boolean
--batch_size
integer

Binning arguments

Name
Type & Properties
--n_input_bins
integer
--seed
integer

Leiden clustering options

Name
Type & Properties
--leiden_resolution
double
multiple

Neighbor classifier arguments

Name
Type & Properties
--weights
string
--n_neighbors
integer

Outputs

Name
Type & Properties
--output
file
required
output
--output_obs_predictions
string
multiple
--output_obs_probability
string
multiple
--output_obsm_integrated
string
--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.