-
Notifications
You must be signed in to change notification settings - Fork 95
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
minimap2 output bam is not working with sniffles #58
Comments
Hi, |
"recompute the MD string" how can I do that? Can you please just help me to know that. |
Check out samtools. There is an option for that |
Which is |
In my test case, both CIGAR and MD seems OK, but no vcf is reported from the bam generated from minimap2 with the MD flag. the minimap2 version: lh3/minimap2#118 but it works well for the bam from ngmlr
|
Can you share the bam file from minimap2? |
It is already shared as del.sort.bam.zip in the last message.
|
Ah sorry. |
The problem is that the bam file reports only 3 reads and each of them have a different size deletion: So please increase the coverage and Sniffles wont call things if they are so diverse above each other since this is 100% an artifact if we see something like this in real data. Might be interesting to check with @IH3 to see what minimap2 is doing. Thanks |
but the same fasta reads works well when ngmlr. so there should be a diff between ngmlr and minimap2. This is the bam of ngmlr. please check the diff between them. |
the param of Sniffles
|
Ok I found the issue. Minimap2 reports the alignment score but not like BWA mem the second best score. Sniffles tries to interpret the reliability of the alignment given the two parameters. Since it could see the one but not the other plus did not get a chance to calibrate for your data set it ignored the reads. |
Thanks. It works now. Although it report only 1 record in vcf for the bam from minimap2, but it report 3 record in for the bam from ngmlr. But this is not a real data.
|
yeah its tricky with 3 reads each for a different del that overlaps. |
A same result will be perfect. And can we add a '--somatic' option to the enhancement list? |
yeah its defined in the sam/bam file format. Mappers may or may not support it. what do you have in mind with the somatic option? |
A option like '--min-alternate-fraction 0.10' of freebayes will be good for somatic support. For this test bam, if we consider it as a somatic sample with '--min-alternate-fraction 0.10 --min_support 1' param, Should we output all the 3 record to the vcf file? |
there is the "--allelefreq" parameter. That sounds like similar to what the alternate-fraction does. I dont have much experience with that parameter combination, but let me know if that works. |
What is the tag name of 'the second best score' of BWA mem? I failed to find out it from samtag.pdf.
|
XS is the tag. And Sniffles is not ment to be running on 3 reads one per deletion. That is why this test set is not performing. |
Is the file output by ngmlr a bam file? Why is my sniffles unable to operate on the output file? If the output is a sam file, how can I change it to bam? I have tried the samtools change method, but always report errors, display read errors, and close errors. |
Hello,
I am using nanopore (1D) human data, I have aligned using ngmlr and minimap2. Sniffles for SV calling, but ngmlr bam of the same sample is giving straucrtual variant vcf but minimap2 bam is not giving any variant output.
Do yo have any idea about it?
One more question, can I use Illumina bam to extract structural variants using Sniffles.
The text was updated successfully, but these errors were encountered: