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

question about coverage #70

Open
kkamii opened this issue Apr 27, 2020 · 1 comment
Open

question about coverage #70

kkamii opened this issue Apr 27, 2020 · 1 comment

Comments

@kkamii
Copy link

kkamii commented Apr 27, 2020

hi

I made two paired end fastq file with different seed option (-rng), and same coverage option (-c).
one fastq file have mutation (frequency 100%) and the other have reference allele.

and then, I mixed fastq file to make frequency 50%

but when I check the bam file, coverage is so different that frequency is not 50% (about 8%)

how can I fix it??

그림1

@zstephens
Copy link
Owner

Greetings,

I tested this out using the following commands:

1) generate 100x coverage, no variants
python genReads.py -R 101 -r chr1_subset.fa -p 1 -M 0 --rng 123 -o out1 --bam -c 100

2) generate 100x coverage, with 2% random variants
python genReads.py -R 101 -r chr1_subset.fa -p 1 -M 0.05 --rng 456 -o out2 --bam -c 100

3) combine datasets
python mergeJobs.py -i out1 out2 -o mix -s /path/to/samtools --no-job

And the resultant data had a 50-50 split as expected:

Screen Shot 2020-04-27 at 5 55 04 PM

(note that I just pushed some QoL updates to mergeJobs.py, including the "--no-job" option).

It's possible that you got really bad luck in the RNG and between the two runs there was a substantial difference in what position the reads were sampled from. In order to rule out gc-bias, you could try adding the option --gc-model models/gcBias_uniform.p to the simulation commands.

-Zach

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