getFeatures {gmoviz} | R Documentation |
Uses a .gff file to create a GRanges of
'features' (e.g. genes or other regions of interest within the genome)
which can then be plotted with the featureDiagram
or
drawFeatureTrack
functions.
getFeatures(gff_file, colours = nice_colours, colour_by_type = TRUE)
gff_file |
Location of the gff file to read in. |
colours |
A character vector of colours to be used to colour code the features. |
colour_by_type |
If |
A GRanges containing the 'features'. See
drawFeatureTrack
for a detailed description of the format.
getLabels
for a function which reads the entries
of a .gff file into labels rather than 'features'. Also
featureDiagram
or drawFeatureTrack
for
functions which can plot this data.
## the example .gff path <- system.file('extdata', 'example.gff3', package='gmoviz') ## coloured by type getFeatures(path) ## not coloured by type (each uniquely named feature gets its own colour) getFeatures(path, colour_by_type=FALSE)