Skip to content
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.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write the gene families by ordering the cluster based on their size. #265

Merged
merged 7 commits into from
Aug 20, 2024

Conversation

jpjarnoux
Copy link
Member

@jpjarnoux jpjarnoux commented Aug 19, 2024

This PR is linked to the issue #263.

When the genes of gene families were written to the tsv, genes were randomly sorted. As reported in issue #263, clustering appeared non-deterministic, even though the number of clusters was the same. By ordering the clusters by size and the genes alphabetically, the gene_families.tsv file is the same between several ppanggolin cluster executions.

This change makes it possible to test whether there is a difference between the expected and the computed clustering in the GitHub action. We added a checksum file containing sha256sum for each gene_families.tsv, and when the file is written in action, the sha256sum is tested.

Also, as mentioned in the issue, the result2repseq mmseqs2 command was missing the --thread option. This has been fixed.

N.B., it could be a good thing to add more sha256sum check for output file.

@JeanMainguy JeanMainguy changed the base branch from master to dev August 19, 2024 13:12
@JeanMainguy JeanMainguy merged commit 3208797 into dev Aug 20, 2024
4 checks passed
@JeanMainguy JeanMainguy deleted the deterCluster branch October 29, 2024 16:44
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