Skip to main content

A python package for drawing genome-wide data on idiograms.

Project description

PyPI - Version

ChromosomeIdeogram

A python package for drawing genome-wide data on ideograms.

Install

pip install chromosome-ideogram

Usage example

import matplotlib.pyplot as plt
from chromosome_ideogram import ChromosomeIdeogram

plt.rcParams['font.size'] = 8

fig = plt.figure(figsize=(10, 7))
axes = fig.add_subplot(111)

ci = ChromosomeIdeogram(
    karyotype='example/karyotype.xls',
    radius=0.4,  # Radius of chromosome (it is not recommended to make any changes)
    space=3  # Chromosome center coordinate interval (radius x space, also not recommended for modification)
)
ci.draw_chromh(axes=axes, centromere_angle=60, color='lightgrey')
ci.annotations(axes=axes, annotations='example/satellite_DNA.bed')

plt.savefig('example/satellite_DNA.pdf', bbox_inches='tight')
plt.savefig('example/satellite_DNA.png', bbox_inches='tight')

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chromosome_ideogram-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chromosome_ideogram-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file chromosome_ideogram-0.0.2.tar.gz.

File metadata

  • Download URL: chromosome_ideogram-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for chromosome_ideogram-0.0.2.tar.gz
Algorithm Hash digest
SHA256 070c0f3226f9c10cd542280046a0ed004153b9add366d33093f951b9ee6aae70
MD5 d3725caf8f1e44f39e66069054f6c50e
BLAKE2b-256 cf50348221392d98c26c64a61fd73acb74c257bb082900a0f692c6ba5d05e9c9

See more details on using hashes here.

File details

Details for the file chromosome_ideogram-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chromosome_ideogram-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83ebf4ce7938c4097b8f4eb9590bc0b381cac73c8d5518388a58376559ea18bc
MD5 4afc83791b956773a40ec0c0d0993068
BLAKE2b-256 1ff9e18949053af62f1b83ee4559ec7404051cdc21416bbfd51fb178ceae820b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page