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

Add --keep-invalid Flag for LCA #35

Merged
merged 7 commits into from
Mar 8, 2024
Merged

Add --keep-invalid Flag for LCA #35

merged 7 commits into from
Mar 8, 2024

Conversation

RyanBerger98
Copy link
Collaborator

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.

Copy link
Member

@standage standage left a 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
Comment on lines 1143 to 1144
assert lca([11111111], skip_deleted=True, skip_unfound=True) == None
assert lca([22222222], skip_deleted=True, skip_unfound=True) == None
Copy link
Member

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.

Comment on lines -342 to +345
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;
Copy link
Member

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 🙃

Comment on lines 21 to 27
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"
Copy link
Member

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
Copy link
Member

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.

Comment on lines +26 to +27
# - os: macos-latest
# python-version: "3.9"
Copy link
Member

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. 🙁

@standage standage merged commit 1ed785b into master Mar 8, 2024
3 checks passed
@standage standage deleted the update/lca/k_flag branch March 8, 2024 20:21
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