-
Notifications
You must be signed in to change notification settings - Fork 80
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
Track lost samples from rarefaction #351
Track lost samples from rarefaction #351
Conversation
…com/squirrelo/qiita into track-lost-samples-from-rarefaction
…ples-from-rarefaction
…ples-from-rarefaction
…od that was erased at some point in context.py
table = load_table(filepath) | ||
# remove the samples from the sets as they are found in the table | ||
for sample in table.ids(): | ||
proc_data_id = table.metadata(sample)['Proccessed_id'] |
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.
will this vary within a table?
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.
No but this was the "easiest" to have it ready.
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.
excellent, that suggests a really easy solution:
proc_data_id = table.metadata()[0]['Processed_id']
ids = set(table.ids())
all_samples[proc_data_id] = all_samples[proc_data_id] - ids
This seems good but travis isn't passing. I think there is a more efficient way to do the subsetting which is worth exploring particularly if |
Thanks @wasade for the suggestion. The change has been made and the tests |
Can someone else review? |
…tion Track lost samples from rarefaction
This should replace #329. Note that if you have an ipython cluster running you need to terminate and then reload after doing a pull.