Samtools Wgsim: Creating A Mutation At A Given Position.
2
0
Entering edit mode
13.0 years ago

I'll be giving a course about NGS and I'd like the students hunting for some well defined non-synonymous variations in the domain of a given protein .

My 1st idea : duplicating one chromosome , inserting a mutation and let samtools wgsim generating the (heterozygous) mutations.

2nd idea: changing the source code of wgsim . However it's not clear to me where I should put my snippet of C code to insert the mutation; Do you have any idea ? Thanks.

samtools code c simulation • 5.3k views
ADD COMMENT
0
Entering edit mode

seems simplest to either modify the reference or get the reads from some publication that found such a variant.

ADD REPLY
3
Entering edit mode
13.0 years ago
lh3 33k

If you prefer to modify the source code, see the "wgsim_print_mutref()" function. It takes two haploid sequences "hap1" and "hap2" (more exactly, haploid differences from the reference) as input and prints out all the differences from the reference. The lower two bits keep the actual sequence. Once you understand how that works, it is easy to generate these sequences.

BTW, an updated version is here, with some bug fixes.

ADD COMMENT
0
Entering edit mode
12.2 years ago
lyz10302012 ▴ 470

Hi Pierre,

I also want to do same job as your 1st idea. The step is, 1) Create two sequences of the diploid. 2) Simulate het and homo variants in these two sequences. 3) Simalate sequencing reads

Did you solve this problem? or do you konw how to solve it?

Thanks.

ADD COMMENT

Login before adding your answer.

Traffic: 1232 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6