annotate/consensus_vote

Description

Combines cell type predictions from multiple annotation methods into a single consensus prediction using a weighted majority vote.
For each cell, each method votes for its predicted cell type, optionally weighted by the probability score and/or a per-method weight.
The consensus prediction is the cell type with the highest total weighted vote.
Note that this method does not leverage pre-existing ontology or perform any reconciliation of cell type labels across methods, so the same cell type may be represented by different labels in different methods and will be treated as distinct cell types in the vote.

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" ]  
output: "$id.$key.output.h5mu"  
output_obs_predictions: [ "consensus_pred" ]  
output_obs_score: [ "consensus_score" ]  
id: "run"  
publish_dir: "output/"  
EOM

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

Inputs

Name
Type & Properties
--input
file
required
--modality
string
--input_obs_predictions
string
required
multiple
--input_obs_probabilities
string
multiple
--tie_label
string
--weights
double
multiple

Outputs

Name
Type & Properties
--output
-o
file
output
--output_obs_predictions
string
--output_obs_score
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.