DistanceChordDiagram¶
Classes¶
-
class
DistanceChordDiagram.ChordDiag(data, sel1, sel2=None, frames=None, startDist=None, maxDist=10, step=2, lwStep=1.2, resList=None, labelStep=5)¶ This class provides methods to draw a chord diagram from pairwise distance matrix. Distances are binned and they form the edges that link the nodes that represent the residue in the protein.
Parameters: - data –
Datasetclass instance - sel1 – first selection of atoms for distance computation
- sel2 – second selection of atoms (optional, if None, sel1 is used)
- frames – frames to be used for averaging
- maxDist – maximum distance to use for the plot
- step – step between each distance bin, each of them will be plotted on a color and line width scale
- lwStep – line width step for plotting, each bin will be plotted with a linewidth being (maxDist / bin max edge) * lwStep
- resList – list of residue indices (optional, if None, will be guessed from file)
-
process()¶ Build the chord diagram based on class attributes.
-
show(xlim=None, ylim=(0.0, 1.05))¶ Show the builded chord diagram.
Parameters: - xlim – tuple of angular limits in radians to be given to matplotlib axes instance.
- ylim – tuple of radial limits in radians to be given to matplotlib axes instance.
- data –