as_feats {gggenomes} | R Documentation |
Compute a layout for feat data
Description
Read feat data such as genes into a tidy dataframe and augment it with layout information based on a sequence layout.
Usage
as_feats(x, seqs, ..., everything = TRUE)
Arguments
x |
feat data convertible to a feat layout |
seqs |
the sequence layout the feat map onto. |
... |
passed on to |
everything |
set to FALSE to drop optional columns |
Details
Obligatory columns are seq_id
, start
and end
. Also recognized are
strand
and bin_id
.
Note start
and end
for every record will be coerced so that start < end
. If no strand
was provided, strand
will added and set to "+" for
records that initially had start < end
and "-" for end < start
inputs. If
strand
was provided, start
and end
will be ordered without any
additional effect.
Value
a tbl_df with plot coordinates
[Package gggenomes version 1.0.1 Index]