You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[QUESTION] Error in if (final_annotations[[cluster_id]] != discussion_results_map[[cluster_id]]) {: TRUE/FALSE values are required, missing values cannot be used
#3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
It appears that you're using only a single LLM model (DeepSeek) with the interactive_consensus_annotation function. This function is specifically designed for multi-model consensus and requires at least two different LLM models to work properly.
Solution
For single-model cell type annotation, please use the annotate_cell_types function instead:
results<- annotate_cell_types(
input=your_marker_genes,
tissue_name="your_tissue_name",
model="deepseek-chat", # or whichever DeepSeek model you're usingapi_keys=list(deepseek="your_api_key"),
top_gene_count=10
)
The interactive_consensus_annotation function requires multiple models to compare predictions and facilitate discussions for controversial clusters. When only one model is used, there's no basis for comparison, which leads to the error you're seeing.
Additional Information
If you do want to use the consensus approach, you'll need to specify at least two different LLM models. For example:
consensus_results<- interactive_consensus_annotation(
input=your_marker_genes,
tissue_name="your_tissue_name",
models= c("deepseek-coder", "qwen-max-2025-01-25"), # Use at least two modelsapi_keys=list(
deepseek="your_deepseek_api_key",
qwen="your_qwen_api_key"
),
top_gene_count=10
)
Please let us know if you have any further questions or issues!
cafferychen777
changed the title
[QUESTION]
[QUESTION] Error in if (final_annotations[[cluster_id]] != discussion_results_map[[cluster_id]]) {: TRUE/FALSE values are required, missing values cannot be used
Apr 28, 2025
Question
LLM跑完了报错
错误于if (final_annotations[[cluster_id]] != discussion_results_map[[cluster_id]]) {:
需要TRUE/FALSE值的地方不可以用缺少值
Environment Information
What I've Tried
Code Example
# If applicable, provide a short code example
Additional Context
The text was updated successfully, but these errors were encountered: