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

N in VCF for mpileup #13

Closed
alexjironkin opened this issue Jun 7, 2016 · 1 comment
Closed

N in VCF for mpileup #13

alexjironkin opened this issue Jun 7, 2016 · 1 comment

Comments

@alexjironkin
Copy link

For mpileup we have to insert bases because mpileup removes records with no coverage.

The -a option in mpileup is not working currently that allows to emit all sites (even with no coverage). Instead we insert ./. record where that is detected with 'N' as reference. However, N in reference causes problems in vcf2fasta because we make sure reference is the same for all records. And there are instances when this happens:

vcf1:
chr1 12672 . N . . mq_score:30;mq0_ratio:0.1;min_depth:10;dp4_ratio:0.9 . GT ./.

vcf2:

chr1  12672   .       T       .       59      mq0_ratio:0.1;min_depth:10      DP=1;MQ0F=0.0;AN=2;DP4=1,0,0,0;MQ=60    GT:DP:DV:SP:DP4:DPR     0/0:1:0:0:1,0,0,0:1

When the reference is checked, you get ['N', 'T'] which doesn't match up, so vcf2fasta errors thinking something went wrong.

@alexjironkin
Copy link
Author

@ulfschaefer suggested we properly fix the "./." record with appropriate reference pulled out from reference file provided.

alexjironkin pushed a commit that referenced this issue Jun 7, 2016
alexjironkin pushed a commit that referenced this issue Jun 9, 2016
mpileup doesn't output all data, so we had to add a fudge to insert ./.
record in the missing positions. Before we added N as reference base,
however, if reference is provided then appropriate reference base is
added.
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

1 participant