View source: R/bioinfo_sequences.R
df2gr | R Documentation |
Convert a data frame of genomic coordinates to GRanges.
df2gr(
x,
seq = "chr",
start = "start",
end = "end",
strand = NULL,
si = NULL,
keep.all.seqlevels = FALSE,
names2use = "row"
)
x |
data frame of genomic coordinates |
seq |
name of the column containing the sequence of the intervals |
start |
name of the column containing the start of the intervals |
end |
name of the column containing the end of the intervals |
strand |
name of the column containing the strand of the intervals |
si |
output from the "seqinfo" function from the GenomeInfoDb package |
keep.all.seqlevels |
if TRUE, all sequence levels from |
names2use |
if NULL, the output will have no names; if "row", it will have the row names of the input (if any); else, it will have the content of the specified column (if it exists) |
GRanges
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.