fulcrumgenomics / fgsv

Tools to gather evidence for structural variation via breakpoint detection.
MIT License
19 stars 1 forks source link

SvPileup should handle circular contigs better #24

Closed tfenne closed 1 year ago

tfenne commented 1 year ago

When running SvPileup on a BAM file aligned carefully to a circular genome (plasmid, mito) it generates:

  1. A really well supported breakpoint using split-reads than span the origin
  2. A huge number of "abnormal pair" supported breakpoints

For intra-contig evidence, if the contig is labeled as circular (TP:circular in the relevant SQ header), sv-pileup should treat the transition around the origin as contiguous and re-calculate the "inner distance" between segments for split reads and between reads for pairs. Doing this should remove the vast majority of origin-related breakpoints being emitted.

jdidion commented 1 year ago

Do you have some example data I can use for test case(s)?