as_feats: Compute a layout for feat data

View source: R/feats.R

as_featsR 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 layout_seqs()

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


gggenomes documentation built on Sept. 11, 2024, 8:55 p.m.