labels_transfer/knn

Description

This component performs label transfer from reference to query using a K-Neirest Neighbors classifier.

Type

python_script

License

MIT

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
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"  
weights: [ "uniform" ]  
n_neighbors: [ 15 ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision v4.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
--reference_obs_targets
string
multiple

Outputs

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

Input dataset (query) arguments

Name
Type & Properties
--input_obsm_distances
string

Reference dataset arguments

Name
Type & Properties
--reference_obsm_distances
string

KNN label transfer arguments

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

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.