Console script for pyseqlogo.
pyseqlogo.colorschemes.
cbb_palette
= {'black': '#000000', 'blue': '#0072B2', 'green': '#009E73', 'magenta': '#CC79A7', 'orange': '#E69F00', 'red': '#D55E00', 'skyblue': '#56B4E9', 'yellow': '#F0E442'}¶Cinema Multiple sequence alignment program (Parry-Smith, D.J., Payne, A.W.R, Michie, A.D. and Attwood, T.K. (1997) “CINEMA - A novel Colour INteractive Editor for Multiple Alignments.” Gene, 211(2), GC45-56)
blue: polar positive H, K, R red: polar negative D, E green: polar neutral S, T, N,Q white: non-polar aliphatic A, V, L, I, M purple: non-polar aromatic F, Y, W brown: P, G yellow: C
pyseqlogo.colorschemes.
cinema
= {'black': ['A', 'V', 'I', 'L', 'M'], 'blue': ['H', 'K', 'R'], 'green': ['S', 'T', 'N', 'Q'], 'purple': ['F', 'Y', 'W'], 'red': ['D', 'E'], 'yellow': ['C']}¶Lesk Lesk A.M. (2002) Introduction to Bioinformatics, Oxford University Press, page 187 yellow: small nonpolar G, A, S, T green: hydrophobic C, V, I, L, P, F, Y, M, W magenta: polar N, Q, H red: negatively charged D, E blue: positively charged K, R
pyseqlogo.colorschemes.
lesk
= {'blue': ['K', 'R'], 'green': ['C', 'V', 'U', 'L', 'P', 'F', 'Y', 'M', 'W'], 'red': ['D', 'E'], 'yellow': ['G', 'A', 'S', 'T']}¶Mod. Cinema Modified Cinema blue: polar positive H, K, R red: polar negative D, E green: hydrophobic V, L, I, M dark green: non-polar aromatic F, Y, W purple: polar neutral S, T, N,Q light blue A, P, G, C
pyseqlogo.format_utils.
approximate_error
(pfm, n_occur)[source]¶Calculate approximate error for small count motif information content
Parameters: | pfm: dict
n: int
|
---|---|
Returns: | approx_error: float
|
pyseqlogo.format_utils.
calc_info_matrix
(pfm, n_occur, correction_type='approx', seq_type='dna')[source]¶Calculate information matrix with small sample correction
pyseqlogo.format_utils.
calc_relative_information
(pfm, n_occur, correction_type='approx')[source]¶Calculate relative information matrix
pyseqlogo.format_utils.
create_motif_from_alignment
(alignment)[source]¶Create motif form an alignment object
Parameters: | alignment : Bio.AlignIO
|
---|---|
Returns: | motif : Bio.motifs object |
pyseqlogo.format_utils.
exact_error
(pfm, n)[source]¶Calculate exact error, using multinomial(na,nc,ng,nt)
pyseqlogo.format_utils.
read_alignment
(infile, data_type='fasta', seq_type='dna', pseudo_count=1)[source]¶Read alignment file as motif
Parameters: | infile: str
data_type: str
seq_type: str
pseudo_count: int
|
---|---|
Returns: | (motif, information_content) : tuple
|
Main module.
pyseqlogo.pyseqlogo.
Scale
(sx, sy=None)[source]¶Bases: matplotlib.backend_bases.RendererBase
Scale alphabets using affine transformation
pyseqlogo.pyseqlogo.
draw_logo
(data, data_type='bits', seq_type='dna', yaxis='bits', colorscheme='classic', nrow=1, ncol=1, padding=0, draw_range=None, coordinate_type='data', draw_axis=False, fontfamily='Arial', debug=False, ax=None)[source]¶Draw sequence logo
Parameters: | data : str or dict or matrix data_type : str
yaxis : str
colorscheme : str
nrow : int
ncol : int
|
---|
pyseqlogo.utils.
approximate_error
(pfm, n_occur)[source]¶Calculate approximate error for small count motif information content
Parameters: | pfm: dict
n: int
|
---|---|
Returns: | approx_error: float
|
pyseqlogo.utils.
calc_info_matrix
(pfm, n_occur, correction_type='approx')[source]¶Calculate information matrix with small sample correction
pyseqlogo.utils.
calc_relative_information
(pfm, n_occur, correction_type='approx')[source]¶Calculate relative information matrix
pyseqlogo.utils.
despine
(fig=None, ax=None, top=True, right=True, left=False, bottom=False, offset=None, trim=False)[source]¶Remove the top and right spines from plot(s). Parameters ———-
Returns: | None |
---|
Top-level package for pyseqlogo.