The second BND locus in VCF

59 views
Skip to first unread message

Damian Loska

unread,
Aug 21, 2024, 6:53:53 AM8/21/24
to delly-users
Hey,

The output VCF entry looks like:

3       32112229        BND00002209     A       A]2:230735780]  300     PASS    PRECISE;SVTYPE=BND;SVMETHOD=EMBL.DELLYv1.2.6;END=32112230;CHR2=2;POS2=230735780;

why there is no the second entry like:
2      230735780     BND00002209    C      C[3: 32112229[

It is actually important to put reciprocal BND entries in VCF, so the VEP can annotate both  breaking points. 
Is there an option to separte such entries? 

Tobias Rausch

unread,
Aug 21, 2024, 7:27:17 AM8/21/24
to Damian Loska, delly-users
Hi,

There is a script in the delly code repository that converts delly's BND calls to the breakend notation.


I hope this works and please let me know if you notice any errors.

Best, Tobias


--
You received this message because you are subscribed to the Google Groups "delly-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to delly-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/delly-users/912ee4b5-53da-4bf5-8eef-413f1760fa4an%40googlegroups.com.

Damian Loska

unread,
Aug 21, 2024, 7:37:37 AM8/21/24
to delly-users
Thank you for the quick answer, but it doesn't work:(

python /progs/delly/scripts/delly2bnd.py -v delly.vcf -r $ref38 -o delly_bnd.vcf


Fetching breakpoint nucleotides... 20
Fetching breakpoint nucleotides... 21
Fetching breakpoint nucleotides... 22
Fetching breakpoint nucleotides... X
Fetching breakpoint nucleotides... Y
Fetching breakpoint nucleotides... KI270442.1
Fetching breakpoint nucleotides... KI270438.1
Processing... 1
Processing... 2
Traceback (most recent call last):
  File "/mnt/data/NGS/progs/delly/scripts/delly2bnd.py", line 105, in <module>
    record.CHROM = chrom2
AttributeError: attribute 'CHROM' of 'cyvcf2.cyvcf2.Variant' objects is not writable


Best, Damian

Tobias Rausch

unread,
Aug 21, 2024, 7:43:24 AM8/21/24
to Damian Loska, delly-users
Looks like you are using an outdated cyvcf2 version. What version of cyvcf2 are you using?


Damian Loska

unread,
Aug 21, 2024, 7:53:36 AM8/21/24
to delly-users
Indeed. Now it works after:
pip install --upgrade cyvcf2

Thanks!

Damian Loska

unread,
Aug 21, 2024, 7:58:51 AM8/21/24
to delly-users
one note: it works, but it copies INFO and FORMAT tags. I believe, every locus/position shoud have it's own tags and metrices (read depths, qualities etc).

Best regards
DL

Damian Loska

unread,
Aug 28, 2024, 7:49:42 AM8/28/24
to delly-users
also such issue appears:
bcftools annotate -x ^INFO/END,INFO/SVLEN,INFO/SVTYPE,INFO/IMPRECISE -O v delly.vcf

SVTYPE=DEL[W::vcf_parse_info] INFO 'MATEID' is not defined in the header, assuming Type=String
Encountered an error, cannot proceed. Please check the error output above.
If feeling adventurous, use the --force option. (At your own risk!)

Tobias Rausch

unread,
Aug 28, 2024, 7:58:01 AM8/28/24
to Damian Loska, delly-users

Damian Loska

unread,
Aug 28, 2024, 8:33:10 AM8/28/24
to delly-users
Right, my bad, I took the header from a file before
Reply all
Reply to author
Forward
0 new messages