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