set chromosome width in biopython
1
0
Entering edit mode
8.6 years ago
l0o0 ▴ 220

Hi, I was trying to draw a single chromosome in biopython.

Everything goes well, except the width of the chromosome in the figure.

I found the output chromosome size is based on the output page size.

Is there any way to restrict the chromosome size except setting page size?

biopython • 1.8k views
ADD COMMENT
0
Entering edit mode

Are you talking about the Bio.Graphics.BasicChromosome module in Biopython?

ADD REPLY
0
Entering edit mode
8.6 years ago
Peter 6.0k

Assuming you are using the Bio.Graphics.BasicChromosome module, I think you want to set the .chr_percent attribute which defaults to 0.25 (meaning 25% of the available width, based on the page size and the number of chromosomes being drawn). A pull request to improve the documentation here would be welcome. Personally I don't think I ever needed to change it.

ADD COMMENT

Login before adding your answer.

Traffic: 1380 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6