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

Update CollectSamErrorMetrics.java #1340

Closed
wants to merge 3 commits into from
Closed

Update CollectSamErrorMetrics.java #1340

wants to merge 3 commits into from

Conversation

nh13
Copy link
Collaborator

@nh13 nh13 commented Jun 3, 2019

@yfarjoun care to take a look at this? Happy for there to be a test for it, but it ain't my bug.

@yfarjoun care to take a look at this?  Happy for there to be a test for it, but it ain't my bug.
@nh13 nh13 requested a review from yfarjoun June 3, 2019 22:34
@nh13
Copy link
Collaborator Author

nh13 commented Jun 3, 2019

A few more things I've noticed:

  • assumes that the .dict file is present (it may not be)
  • assumes base qualities are present (since the default error+stratifiers include them)

@coveralls
Copy link

coveralls commented Jun 3, 2019

Coverage Status

Coverage remained the same at 81.637% when pulling ca9d000 on nh_make_vcf_optional into 0b95405 on master.

@@ -137,7 +137,7 @@
public ReadBaseStratification.Stratifier STRATIFIER_VALUE;

@Argument(shortName = "V", doc = "VCF of known variation for sample. program will skip over polymorphic sites in this VCF and " +
"avoid collecting data on these loci.")
"avoid collecting data on these loci.", optional = true)
Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm. Collecting error metrics over variants doesn't make much sense...you could give it dbSNP or something like that if you dont' have truth for that sample....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What if my sample has no variants relative the reference? That’s my real use case! No VCF is required. Think sequencing bacteria or synthetic sequences.

@yfarjoun
Copy link
Contributor

yfarjoun commented Jun 5, 2019

OK. could you at least log a warning so that the (less-advanced) user who might be using this against human will be informed that they should be supplying dbSNP or another appropriate source of known variation for that sample?

@nh13
Copy link
Collaborator Author

nh13 commented Jun 6, 2019

@yfarjoun I have been trying to think of a way to say that you must intentionally say not to use a VCF. Perhaps we could instead make the option required, but if the value is "<EMPTY>" then it means there are no variants to consider? I'd prefer that to an empty VCF.

@yfarjoun
Copy link
Contributor

yfarjoun commented Jun 6, 2019 via email

@yfarjoun yfarjoun added the Waiting For Revisions This PR has received comments from reviewers and is waiting for the Author to respond label Jul 19, 2019
@kockan
Copy link
Contributor

kockan commented Feb 15, 2024

Superseded by #1476

@kockan kockan closed this Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting For Revisions This PR has received comments from reviewers and is waiting for the Author to respond
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants