Skip to content

Remove empty samples / features in the table after matching but before shearing#247

Merged
ElDeveloper merged 20 commits intobiocore:masterfrom
fedarko:better-empty-removal
Jul 10, 2020
Merged

Remove empty samples / features in the table after matching but before shearing#247
ElDeveloper merged 20 commits intobiocore:masterfrom
fedarko:better-empty-removal

Conversation

@fedarko
Copy link
Copy Markdown
Collaborator

@fedarko fedarko commented Jul 10, 2020

Ensures that empty features in the table are removed from the tree if shearing is requested (could impact datasets where the user rarefied a table and this resulted in certain features having abundances of 0). Also gives a fancy error if these "empty" samples or features are present in the ordination (should probably never happen in practice, but if it does happen then the user'll know at least).

Closes #244.

fedarko added 17 commits July 9, 2020 17:02
Closes biocore#244. Just gotta add tests for this now...
quiets pandas about warning
And handle this by raising an explanatory error msg.

TODO, just gotta fix tests now???
Also fixed the filter_unobserved_features test by updating the
metadata accordingly
had to add a noqa for a particularly long url comment

also re-commented the writing-dictcode.py-out code from the core
tests (my b, shouldn't have committed that)
Now that this all is mostly done, we can close biocore#244
instead, defer this to remove_empty_...(), later on. per biocore#244.
@fedarko fedarko requested a review from ElDeveloper July 10, 2020 21:51
fedarko and others added 3 commits July 10, 2020 15:45
Co-authored-by: Yoshiki Vázquez Baeza <yoshiki@ucsd.edu>
Co-authored-by: Yoshiki Vázquez Baeza <yoshiki@ucsd.edu>
Co-authored-by: Yoshiki Vázquez Baeza <yoshiki@ucsd.edu>
@ElDeveloper ElDeveloper merged commit e63b11e into biocore:master Jul 10, 2020
@ElDeveloper
Copy link
Copy Markdown
Member

Thanks @ElDeveloper

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.

Move empty sample / feature removal from the table to before tree shearing

2 participants