A python package for circDraw visualization and server command line interface
Project description
circDraw-py
This is a stand alone project which extends the power of circDraw service.
Dependency
- Matplotlib 3.1.2
- Numpy 1.18.0
- Colour 0.1.5
- Requests 2.22.0
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.
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
Built Distribution
File details
Details for the file circDraw-0.1.0.tar.gz
.
File metadata
- Download URL: circDraw-0.1.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d856f4530d3e21c8ef82c2a681da32f4bf3480578eafa9d98469d22bf475b3c0 |
|
MD5 | 331a388adeb09a5648627503d9a0926f |
|
BLAKE2b-256 | 2679ef48237954ed722b87452e7e89757bbb1517dee3b2e8985f07f658145807 |
File details
Details for the file circDraw-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: circDraw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce1aec35f56a655c90f4d885b055437137910fbe165a6bd0d7af8dec4de23e1 |
|
MD5 | fc6e16985f1dd828da7e7701d71289e5 |
|
BLAKE2b-256 | e018163a769d3ec2920a25e0614bab7ddbaf906089db16ae4bd90e3844396004 |