Closed Caro-Ca closed 4 years ago
Sorry, can you be a bit more explicit what is wrong with this? Thanks Fritz
Yes, definitely. The start positions of the bed and vcf files don't match. So basically the indexing may not be assigned correctly.
Ah but VCF file positions are starting by 0 and bed files by 1 I think. I am also always getting confused with this. Let me know Thanks Fritz
@fritzsedlazeck It's the reverse. VCF is one-indexed, whereas BED's start is zero-indexed and end is one-indexed. You might find examples presented bedops' vcf2bed helpful.
Sorry I always confuse these things. Drives me nuts....Let me fix that real quick
Ah wait these examples are only because they need to form a 1 bp interval.
Ok I just changed that to what this is suggesting and pushed the code. Can someone try and confirm? Thanks Fritz
Yes, it worked. Thank you so much!
Hi! SURVIVOR is really a good tools for me to deel with SV datasets. But recently, I'm also confused with the SURVIVOR results and 0-based as well as 1-based while I uesd the convertAssemblytics module.
I found that someone has already summaried about it, like this:
It points that sam and vcf are 1-based, while bed are 0-based. I tested the sam and bed file, like this:
So, in my opinion, it may be that:
If, possible, you may update this in vcftobed, bedtovcf, and convertAssemblytics modules in the future versions. With great thanks.
Hi fritzsedlazeck, This issue is similar to #99. I recloned the code 6 hours approximately and this what I got: This is the original bed file
and the converted vcf file:
the code used:
/home/silviav/SURVIVOR/Debug/SURVIVOR bedtovcf SRR4074383.1_paired_R1_temp_nonredundant.bed DEL SRR4074383.1_paired_R1_temp_nonredundant.vcf
Thank you for your time.