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

guppy classify (hybrid2) should ignore sequences not in jplace #327

Closed
nhoffman opened this issue Dec 19, 2013 · 3 comments
Closed

guppy classify (hybrid2) should ignore sequences not in jplace #327

nhoffman opened this issue Dec 19, 2013 · 3 comments

Comments

@nhoffman
Copy link
Collaborator

If we run

guppy classify --classifier hybrid2 --nbc-sequences seqs.fasta ... placements.jplace

then all sequences in seqs.fasta, even those not in placements.jplace, will also be classified. This is just a bit unexpected, and is probably not what the user wants. Some options might be some combination of: a) raise an error; b) ignore the extra sequences; c) keep the current behavior but describe it in the docs. A gold-plated solution would be an error unless an option like --ignore-extras is provided.

@matsen
Copy link
Owner

matsen commented Dec 30, 2013

Sorry for the surprise. This shouldn't be hard-- it comes down to this merge function. I'm not so fond of the gold-plated solution because I don't like options that only make sense when other options are used. Which of the others do you think would be best?

If we were going to do (b), would you suggest taking the intersection of the sequences supplied in the jplace file and those in the NBC file?

@nhoffman
Copy link
Collaborator Author

I think that taking the intersection would be a good solution. Perhaps with a warning about any sequences that are missing from one source or the other?

@matsen
Copy link
Owner

matsen commented Feb 6, 2014

Closed by 3bec8a4.

@matsen matsen closed this as completed Feb 6, 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

No branches or pull requests

2 participants