Skip to content

Generate track diagrams for genomic alignments

License

Notifications You must be signed in to change notification settings

cfe-lab/genetracks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

Generate track diagrams for genomic alignments

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%