powered by
data.frame2GRanges(df, keepColumns = FALSE, ignoreStrand = FALSE)
data.frame
chr
seqnames
start
end
strand column
df
strand
GRanges
df <- data.frame(chr = "chr1", start = 1:3, end = 2:4, strand = c("+","-","+")) data.frame2GRanges(df, ignoreStrand = TRUE)
Run the code above in your browser using DataLab