Mercurial > repos > cpt > cpt_linear_genome_plot
comparison dna_features_viewer/README.md @ 1:e923c686ead9 draft
planemo upload commit 94b0cd1fff0826c6db3e7dc0c91c0c5a8be8bb0c
author | cpt |
---|---|
date | Mon, 05 Jun 2023 02:45:31 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:621754dd31f8 | 1:e923c686ead9 |
---|---|
1 # Code organization | |
2 | |
3 This document walks you trough the Geneblocks code. Please request changes if anything is unclear. | |
4 | |
5 - **GraphicFeature.py** implements a class for defining a *GraphicFeature*, which is an annotation (start, end, strand, label) with graphical properties (color, line width, font family...) | |
6 | |
7 - **GraphicRecord/** implements the *GraphicRecord* class, which can plot a set of *GraphicFeatures* using Matplotlib or Bokeh. To keep file sizes acceptable, many methods are implemented in separate files (*bokeh_plots.py*, *matplotlib_plots.py*) and added to *GraphicRecord* via class mixins. | |
8 | |
9 - **CircularGraphicRecord/** implements the *GraphicRecord* class, which inherits from *GraphicRecord* but draws features circularly using custom Matplotlib patches called "arrow-wedge" (defined in file *ArrowWedge.py*). | |
10 | |
11 - **compute_features_levels.py** implements the algorithm for deciding the levels on which the different features (and annotations) are drawn | |
12 | |
13 - **biotools.py** implements generic biology-related methods (reverse_complement, annotation of Biopython records, etc.) |