labels_transfer/knn

Description

Performs label transfer from reference to query using KNN classifier

Type

python_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
reference_obsm_features: [ "X_integrated_scanvi" ]  
reference_obs_targets:  
  [  
    "ann_level_1",  
    "ann_level_2",  
    "ann_level_3",  
    "ann_level_4",  
    "ann_level_5",  
    "ann_finest_level"  
  ]  
output: "$id.$key.output"  
output_uns_parameters: [ "labels_transfer" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision 1.0.3 \  
  -main-script target/nextflow/labels_transfer/knn/main.nf \  
  -params-file params.yaml  

Input dataset (query) arguments

Name
Type & Properties
--input
file
required
--modality
string
--input_obsm_features
string

Reference dataset arguments

Name
Type & Properties
--reference
file
--reference_obsm_features
string
required
--reference_obs_targets
string
multiple

Outputs

Name
Type & Properties
--output
file
required
output
--output_obs_predictions
string
multiple
--output_obs_uncertainty
string
multiple
--output_uns_parameters
string

Learning parameters

Name
Type & Properties
--n_neighbors
-k
integer
required

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.