Dear Sarah,
First, thank you for your great tools, especially the removeNestedHaplotigs script.
I created a similar tool by using blasr in order to find the overlapping haplotigs. Sometimes, one haplotig is fully included in one other haplotig, and sometimes the overlap is small.
So, by looking on some examples, I see that when two haplotigs overlap, the true information is on the two. I explain : in the overlap, when haplotig A carries the SNP (different from the primary contig), haplotig B equals to the primary contig and vice-versa. So, by merging this overlap and by keeping only the SNPs different of the primary contig, I think I can keep one haplotig instead of two.
Here is a PNG representing what I explain :
https://www.dropbox.com/s/x0ksi6bg3mbdy4a/chevauchement_001043F_002_001043F_003.PNG?dl=0
At the top is haplotig A, then haplotig B and then illumina reads, all aligned on the primary contigs.
According to you, is it possible to create a script in order to merge the overlap, by keeping the SNPs different from the primary contigs, in order to obtain an unique haplotig ? I don't want to remove them otherwise I think I will lose a lot of informations. And if I keep the two, I will have some difficulties at the end when I will want to align some data on my genome assembly (because my reads will multi-map in this area). Have you ever worked on this problem?
Thank you very much for your help.
Best,
Amandine
Dear Sarah,
First, thank you for your great tools, especially the removeNestedHaplotigs script.
I created a similar tool by using blasr in order to find the overlapping haplotigs. Sometimes, one haplotig is fully included in one other haplotig, and sometimes the overlap is small.
So, by looking on some examples, I see that when two haplotigs overlap, the true information is on the two. I explain : in the overlap, when haplotig A carries the SNP (different from the primary contig), haplotig B equals to the primary contig and vice-versa. So, by merging this overlap and by keeping only the SNPs different of the primary contig, I think I can keep one haplotig instead of two.
Here is a PNG representing what I explain :
https://www.dropbox.com/s/x0ksi6bg3mbdy4a/chevauchement_001043F_002_001043F_003.PNG?dl=0
At the top is haplotig A, then haplotig B and then illumina reads, all aligned on the primary contigs.
According to you, is it possible to create a script in order to merge the overlap, by keeping the SNPs different from the primary contigs, in order to obtain an unique haplotig ? I don't want to remove them otherwise I think I will lose a lot of informations. And if I keep the two, I will have some difficulties at the end when I will want to align some data on my genome assembly (because my reads will multi-map in this area). Have you ever worked on this problem?
Thank you very much for your help.
Best,
Amandine