Draw an ideogram of either HG38 or CHM13 contigs in a matplotlib axes object.
Project description
pyryotype
Table of Contents
Installation
pip install ideogram
Example usage
from pyryotype import GENOME, plot_ideogram
from matplotlib import pyplot as plt
fig, axes = plt.subplots(
ncols=1,
nrows=22,
figsize=(11, 11),
facecolor="white",
)
genome = GENOME.CHM13
for ax, contig_name in zip(axes, range(1, 23)):
chromosome = f"chr{contig_name}"
plot_ideogram(ax, target=chromosome, genome=genome)
fig.savefig("ideogram.png", dpi=300)
Will output:
License
pyryotype
is distributed under the terms of the MIT license.
Cytoband data
- HG38 - Nushell, will have to be adapted for bash
curl -L "https://hgdownload.cse.ucsc.edu/goldenpath/hg38/database/cytoBand.txt.gz" | gzip -d - | rg -Ne "^chr\\d+\t" | save cytoBand_HG38.tsv
- CHM13 - bash yay
curl -L http://t2t.gi.ucsc.edu/chm13/hub/t2t-chm13-v2.0/download/chm13v2.0_cytobands_allchrs.bed.gz | gzip -d - > cytobands_chm13.bed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyryotype-0.0.2.tar.gz
(384.8 kB
view hashes)
Built Distribution
pyryotype-0.0.2-py3-none-any.whl
(23.6 kB
view hashes)
Close
Hashes for pyryotype-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8672efa1f8391225882bbfd95a8a8de31cadbcde393e0c0779e88fed990b2b1d |
|
MD5 | 9bcd40ac6d84db6bbbb94bd25c864379 |
|
BLAKE2b-256 | f65eed1042b95282ee556dbe7e0763080e70ec38868d638e3f2c71a8d0f0a7c3 |