getLabels {gmoviz} | R Documentation |
Uses a .gff file to create a GRanges of labels which can then
be plotted with the label_data
argument of many functions in this
package such as gmovizInitialise
,
insertionDiagram
or featureDiagram
.
getLabels(gff_file, colour_code = TRUE, colours = bright_colours_opaque)
gff_file |
Location of the gff file to read in. |
colour_code |
If |
colours |
A character vector of colours to be used to colour code
the labels (if |
A GRanges containing the gene label data. See
gmovizInitialise
for a detailed description of the format.
getFeatures
for a function which reads the entries
of a .gff file into 'features' rather than labels. Also
gmovizInitialise
, insertionDiagram
and
featureDiagram
for functions which can plot this data.
## example .gff path <- system.file('extdata', 'example.gff3', package='gmoviz') ## colour coded getLabels(path) ## not colour coded (all black) getLabels(path, colour_code=FALSE)