Skip to main content

circDraw-py

PyPI version

This is a stand alone project which extends the power of circDraw service.

Dependency

Usage: Draw with circDraw

CircDraw provides python package to use when drawing circular RNA with the emphasis on backspliting sites visulization and epigenetic marker display. Import circDraw class via your favourite python3 interpreter or enbed it inside a script to use the drawing function.

from circDraw import circDraw

 # initiate a circDraw instance
cd = circDraw()

# set color of circ_on_chr (optional)
cd.set_palette(["#5CA0F2", "#FF881D", '#e30067', '#924900','#ab9c00','#ccd0d2', '#075800', '#5e0094',])

# set color of modifications (optional)
mod_palette = {'m6a': '#E98B2A',
               'm5c': '#E16B8C',
               'm1a': '#64363C',
               'pu': '#ffa12c',
               '2ome': '#1a6f00',
               'mre': '#6D2E5B',
               'rbp': "#2B5F75",
               'orf': '#516E41'}
cd.set_mod_palette(mod_palette)

# draw backsplicing site on chromosome region
cd.circ_on_chr('/path/to/file')

# draw modifications on circRNA
cd.mod_on_circ('/path/to/file')

Method

circ_on_chr

circDraw.circ_on_chr(file, title='circDraw', dpi=300, save='png', show=True, size=(10, 5))
  • File:

    • Only supported 'csv'

    • Start End Type Name Color (Optional)
    • Start < End

    • Type: circ, exon, intron, gene

    • Color: RGB, RGBA, hex, or supported color names.

  • Title: The title of the plot

  • Save: file format you wish to save as, PNG, PDF, JPEG, etc.

  • Show: Bool, wheather to show the plot after rendering.

  • Size: (Length, Width) the size of the plot.

mod_on_circ

circDraw.mod_on_circ(self, file, dpi=100, save='png', show=True, size=(7, 7), sep_mod=False)
  • File:

    • Only supported 'csv'

    • Start End Type Name Color (Optional)
    • Start < End

    • Type: circ, exon, intron, and modifications type

      • Modifications type: m6A, m1A, m5C, pU, 2OMe, MRE, RBP, ORF
    • Color: RGB, RGBA, hex, or supported color names.

  • Save: file format you wish to save as, PNG, PDF, JPEG, etc.

  • Show: Bool, wheather to show the plot after rendering.

  • Size: (Length, Width) the size of the plot.

  • sep_mod: Bool, prevent the modifications from overlapping if set True.

set_palette

circDraw.set_palette(palette)

A list of colors, the length of the list must bigger than 5.

set_mod_palette

circDraw.set_mod_palette(palette)

A dictionary of colors match with the modification. You can change any one of the modification colors.

More information

This a part of circDraw project. Please visit our Contact page if you have any questions.

Copyright: Qu Lab, School of Life Science, Sun Yat-sen University, Guangzhou, CHINA.

Release files for circDraw 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for circDraw 0.1.0
File Size Uploaded
circDraw-0.1.0.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for circDraw 0.1.0
File Interpreter ABI Platform
circDraw-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.3 kB

Release files / circDraw-0.1.0.tar.gz

Download URL circDraw-0.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d856f4530d3e21c8ef82c2a681da32f4bf3480578eafa9d98469d22bf475b3c0
BLAKE2b-256 checksum
How to use checksums
2679ef48237954ed722b87452e7e89757bbb1517dee3b2e8985f07f658145807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / circDraw-0.1.0-py3-none-any.whl

Download URL circDraw-0.1.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fce1aec35f56a655c90f4d885b055437137910fbe165a6bd0d7af8dec4de23e1
BLAKE2b-256 checksum
How to use checksums
e018163a769d3ec2920a25e0614bab7ddbaf906089db16ae4bd90e3844396004
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page