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

Track lost samples from rarefaction #351

Merged

Conversation

antgonza
Copy link
Member

@antgonza antgonza commented Oct 8, 2014

This should replace #329. Note that if you have an ipython cluster running you need to terminate and then reload after doing a pull.

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']
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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

@wasade
Copy link
Contributor

wasade commented Oct 8, 2014

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 proc_data_id doesn't change within a table.

@antgonza
Copy link
Member Author

antgonza commented Oct 9, 2014

Thanks @wasade for the suggestion. The change has been made and the tests
are passing.

@antgonza
Copy link
Member Author

Can someone else review?

josenavas added a commit that referenced this pull request Oct 10, 2014
…tion

Track lost samples from rarefaction
@josenavas josenavas merged commit be1970a into qiita-spots:master Oct 10, 2014
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.

4 participants