Description
"Cell type annotation workflow that performs scVI integration of reference and query dataset followed by KNN label transfer.
The query and reference datasets are expected to be pre-processed in the same way, for example with the process_samples workflow of OpenPipeline.
Note that this workflow will integrate the reference dataset from scratch and integrate the query dataset in the same embedding space.
The workflow does not currently output the trained SCVI reference model."
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
id: "run"
modality: [ "rna" ]
input_reference_gene_overlap: [ 100 ]
sanitize_ensembl_ids: [ true ]
n_hvg: [ 2000 ]
scvi_early_stopping_monitor: [ "elbo_validation" ]
scvi_early_stopping_patience: [ 45 ]
scvi_early_stopping_min_delta: [ 0 ]
scvi_reduce_lr_on_plateau: [ true ]
scvi_lr_factor: [ 0.6 ]
scvi_lr_patience: [ 30 ]
leiden_resolution: [ 1 ]
knn_weights: [ "uniform" ]
knn_n_neighbors: [ 15 ]
output: "$id.$key.output.h5mu"
output_obsm_integrated: [ "X_integrated_scvi" ]
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v4.2.0 \
-main-script target/nextflow/workflows/annotation/scvi_knn/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--id | string required |
--input | file required |
--modality | string |
--input_layer | string |
--input_layer_lognormalized | string |
--input_obs_batch_label | string required |
--input_var_gene_names | string |
--input_reference_gene_overlap | integer |
--overwrite_existing_key | boolean_true |
--sanitize_ensembl_ids | boolean |
Name | Type & Properties |
|---|---|
--reference | file required |
--reference_layer | string |
--reference_layer_lognormalized | string |
--reference_obs_target | string required |
--reference_var_gene_names | string |
--reference_obs_batch_label | string required |
Name | Type & Properties |
|---|---|
--n_hvg | integer |
Name | Type & Properties |
|---|---|
--scvi_early_stopping | boolean |
--scvi_early_stopping_monitor | string |
--scvi_early_stopping_patience | integer |
--scvi_early_stopping_min_delta | double |
--scvi_max_epochs | integer |
--scvi_reduce_lr_on_plateau | boolean |
--scvi_lr_factor | double |
--scvi_lr_patience | double |
Name | Type & Properties |
|---|---|
--leiden_resolution | double multiple |
Name | Type & Properties |
|---|---|
--knn_weights | string |
--knn_n_neighbors | integer |
Name | Type & Properties |
|---|---|
--output | file required output |
--output_obs_predictions | string multiple |
--output_obs_probability | string multiple |
--output_obsm_integrated | string |