shell
pip install biopython
python
from Bio.Graphics import BasicChromosome
from reportlab.lib import colors
chr = BasicChromosome.Chromosome("Example")
chr.addFeature(BasicChromosome.Feature(
color=colors.blue,
label="Region 1"
))
chr.addFeature(BasicChromosome.Feature(
color=colors.red,
label="Region 2"
))
chr.draw(format="linear", pagesize=(15, 4), fragments=1,
start=0, end=3000000)
chr.write("linear_chromosome.pdf", "PDF")