-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add --keep-invalid Flag for LCA #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I'm adding another test to make sure this works in multi
mode, like the use case that motivated this.
Also, I'm confused why CI isn't working for this PR.
pytaxonkit.py
Outdated
assert lca([11111111], skip_deleted=True, skip_unfound=True) == None | ||
assert lca([22222222], skip_deleted=True, skip_unfound=True) == None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor quibble: is None
instead of == None
.
TaxID Lineage LineageTaxIDs | ||
0 1325911 Eukaryota;Arthropoda;Insecta;Hymenoptera;Eucharitidae;Pogonocharis; 2759;6656;50557;7399;216140;1325911; | ||
1 1649473 Bacteria;Bacteroidota;Cytophagia;Cytophagales;Spirosomaceae;Nibrella; 2;976;768503;768507;2896860;1649473; | ||
2 1401311 Eukaryota;Arthropoda;Insecta;Coleoptera;Staphylinidae;Styngetus; 2759;6656;50557;7041;29026;1401311; | ||
TaxID Lineage LineageTaxIDs | ||
0 1325911 Eukaryota;Arthropoda;Insecta;Hymenoptera;Eucharitidae;Pogonocharis; 2759;6656;50557;7399;216140;1325911; | ||
1 1649473 Bacteria;Bacteroidota;Cytophagia;Cytophagales;Spirosomataceae;Nibrella; 2;976;768503;768507;2896860;1649473; | ||
2 1401311 Eukaryota;Arthropoda;Insecta;Coleoptera;Staphylinidae;Styngetus; 2759;6656;50557;7041;29026;1401311; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better update your taxonomy DB 🙃
.github/workflows/cibuild.yml
Outdated
python-version: 3.7 | ||
python-version: "3.8" | ||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
python-version: "3.9" | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
python-version: "3.10" | ||
- os: macos-latest | ||
python-version: 3.8 | ||
python-version: "3.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub automatically disabled CI builds after several months of inactivity. So I re-enabled that, and bumped these version numbers.
curl -L -O ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz | ||
curl -L -O https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MacOS build kept on failing, unable to download the taxonomy DB. This was an attempt at troubleshooting.
# - os: macos-latest | ||
# python-version: "3.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ended up dropping the MacOS build. 🙁
This pull request adds the
-k
/--keep-invalid
flag for the LCA command. The-k
flag was added with the v0.16.0 release of Taxonkit.