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

ENH: Updates to cluster_features_de_novo #11

Merged
merged 6 commits into from
Sep 21, 2017

Conversation

gregcaporaso
Copy link
Member

@gregcaporaso gregcaporaso commented Sep 20, 2017

Addressing #12 will improve the test coverage, but we can do that in another PR since the .uc parser will likely change a little bit. We should be able to use one .uc parser for all of the methods we're currently planning on implementing.

@qiime2 qiime2 deleted a comment from coveralls Sep 20, 2017
@qiime2 qiime2 deleted a comment from coveralls Sep 20, 2017
@qiime2 qiime2 deleted a comment from coveralls Sep 20, 2017
@qiime2 qiime2 deleted a comment from coveralls Sep 20, 2017
@thermokarst
Copy link
Contributor

@gregcaporaso - your commit messages look like this PR should be rebased, not squashed, when approved. Can you confirm when you get a chance? Thanks!

Copy link
Contributor

@thermokarst thermokarst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gregcaporaso! This looks pretty sweet - I had a few super minor questions and comments. Thanks!

constructor=skbio.DNA, format='fasta'))
exp_seqs = list(skbio.io.read(str(input_sequences),
constructor=skbio.DNA, format='fasta'))
print(obs_seqs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you drop this please?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print(gerg)

exp_seqs = list(skbio.io.read(str(input_sequences),
constructor=skbio.DNA, format='fasta'))
print(obs_seqs)
print(exp_seqs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you drop this please?

skbio.io.read(sequences_fp, constructor=skbio.DNA,
format='fasta')}
feature_ids_table = set(table.ids(axis='observation'))
non_overlapping_ids = feature_ids_seqs ^ feature_ids_table
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

'sequences': 'The sequences corresponding to the features in table.',
},
parameter_descriptions={
'id': 'The percent identity at which clustering should be performed.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the VSEARCH flag is --id, but how would you feel about identity here? I keep seeing this and thinking of "identifier" instead of "identity." It isn't a showstopper for me, just thought I would ask.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went back and forth on that... I ended up going with id to match the vsearch parameter name. In this case it's probably fine to not match vsearch, but in general I was thinking matching vsearch's parameter names might be a useful strategy, so users can easily refer to the vsearch documentation. It's really likely that we're going to expose other vsearch parameters as well, so it will help to easily be able to find info in their docs.

I'm fine either way for this one - you call it @thermokarst.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just chatted IRL with @jairideout about this - maybe it makes sense to match the perc-identity parameter in classify-consensus-vsearch and classify-consensus-blast, and just including a note in the description saying something like "This parameter maps to the --id flag in vsearch"

@gregcaporaso
Copy link
Member Author

@thermokarst, this addresses your comments minus the name change to the id parameter (see my comment above - let me know if you feel strongly about changing its name). All commits can be squashed.

@gregcaporaso
Copy link
Member Author

@thermokarst, this one should be good to go.

@thermokarst thermokarst changed the title updates to cluster_features_de_novo ENH: Updates to cluster_features_de_novo Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants