Description Usage Arguments Value See Also Examples
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.
1 | 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.
1 2 3 4 5 6 7 8 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.