Skip to content

socket.cpp: set missing options#435

Merged
yatisht merged 1 commit into
yatisht:masterfrom
AngieHinrichs:server_only_one_tree
May 21, 2026
Merged

socket.cpp: set missing options#435
yatisht merged 1 commit into
yatisht:masterfrom
AngieHinrichs:server_only_one_tree

Conversation

@AngieHinrichs

Copy link
Copy Markdown
Contributor

Lineage hunters noticed (#434, cov-lineages/pango-designation#3222) that annotations from clades.txt were missing from usher.bio results. It turned out that usher-sampled-server was not generating clades.txt because options.out_options.only_one_tree is required, but it was not set.

usher-sampled/driver/main.cpp has a default of 1 for options.keep_n_tree, and sets options.out_options.only_one_tree if keep_n_tree is 1. However, usher-sampled/driver/socket.cpp did not set those options.

This change adds two lines to socket.cpp to set keep_n_tree to 1 and only_one_tree to true, to match the default behavior of main.cpp. clades.txt is now generated by the modified usher-sampled-server.

main.cpp defaults options.keep_n_tree to 1 and sets only_one_tree if keep_n_tree is 1, but socket.cpp was missing that so clades.txt was not generated.
@yatisht yatisht merged commit 33801bd into yatisht:master May 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants