Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 388 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 388 Bytes

genetracks

Generate track diagrams for genomic alignments

see examples/Genetracks.ipynb for use cases

Example

from genetracks import Figure, Track
import pysam
import sys

f = Figure()

for alignment in pysam.AlignmentFile(sys.argv[1]):
  f.add(Track(alignment.query_start, alignment.query_end))

f.show(w=900).save_svg("alignment.svg")