View source: R/consensus_annotation.R
| parse_text_predictions | R Documentation |
Handles multiple output formats from LLMs:
"cluster_id: cell_type" format
"1. cell_type" numeric index format
Positional fallback (line index maps to cluster index)
parse_text_predictions(model_preds, all_clusters = NULL)
model_preds |
Character vector of prediction lines from a model |
all_clusters |
Optional character vector of cluster IDs for positional fallback |
Named list mapping cluster_id -> cell_type
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.