Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWhen `filter_obs` removes taxa should it remove data for those taxa from other data sets? #143
Comments
|
Solved this by using |
Currently, running
filter_obs(obj, "my_data_set", some_condition, drop_taxa = TRUE)will remove taxa that no occur in "my_data_set" from thetaxmapobject, but it does not remove data in other data sets associated with removed taxa, so those end up with invalid taxon IDs.filter_taxato remove all taxa from all data sets that don't appear in one of the data sets.Perhaps 1 could be the default behavior and 2 could be optional. Maybe
drop_other_obs = TRUE.Either way,
filter_obsshould not be allowed to return an invalid taxmap object like it can now.