/karyopype

A chromosomal visualization package for python.

Primary LanguagePythonMIT LicenseMIT

CircleCI

karyopype

Karyopype is a simple chromosome plotting package in python allowing you to quickly visualize where a set of genomic regions, or multiple sets of genomic regions fall on the chromosomes.

From an interactive python session (jupyter notebook):

pip install karyopype
import karyopype.karyopype as kp

# plot two sets of regions
kp.plot_karyopype("hg38", ["/path/to/regions.bed", "/path/to/regions2.bed"])

From a command line session

pip install karyopype
python
>>> import karyopype.karyopype as kp
# save plot to current directory
>>> kp.plot_karyopyp("hg38", "/path/to/regions.bed", savefig=True)