-
Notifications
You must be signed in to change notification settings - Fork 14
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
Long reads support for Sniffles files #294
Comments
So it looks like the cause of the start > end error is the 0 position in the BND alt syntax. See example test to reproduce below def test_convert_record():
variant = VcfRecordType(
9000,
12000,
'chr14_KI270722v1_random',
alts=['N[chr17_GL000205v2_random:0['],
ref='N',
info=VcfInfoType(
IMPRECISE=True,
SVMETHOD="Snifflesv1.0.11",
SVTYPE="BND",
SUPTYPE="SR",
SVLEN="0",
STRANDS="+-",
RE="5",
REF_strand="0,0",
AF="1",
),
)
records = convert_record(variant)
records = [_convert_tool_row(r, SUPPORTED_TOOL.VCF, False) for r in records] Based on the vcf 4.2 spec (https://samtools.github.io/hts-specs/VCFv4.2.pdf) these indicate connections to telomeres. I am not totally sure how to deal with these, but one solution might be to just make the 0 a 1 since we cannot start before the start of a sequence and coordinates are 1-based. |
Ensure that future versions use Sniffles2.0 |
Hi, I'm trying to use a vcf produced by Sniffles2 with the convert feature, but am getting the following error:
Is this error because something in Sniffles2 output does not work with stats.py around line 77? |
I've been looking into the code more. Seems the problem is actually in generating the bam stats. Has there been any more thought to issue #210, which is related to long-read bams causing problems? |
Overview
Currently, Sniffles (long read SV caller) outputs INVDUP SVTYPES which MAVIS does not handle. A temporary workaround of treating INVDUP as a combination of inversion, duplication, and insertion has been done.
A series of changes must be made to accommodate Sniffles:
The text was updated successfully, but these errors were encountered: