Skip to content

Instantly share code, notes, and snippets.

@zero323
Last active August 29, 2015 14:10
Show Gist options
  • Save zero323/de054c9be21c5f61669f to your computer and use it in GitHub Desktop.
Save zero323/de054c9be21c5f61669f to your computer and use it in GitHub Desktop.
library(GenomicRanges)
interactions <- GRanges()
# GRanges with 0 ranges and 0 metadata columns:
# seqnames ranges strand
# <Rle> <IRanges> <Rle>
# ---
# seqlengths:
interactions_chr <- GRanges("X", strand="+", IRanges(start = c(1, 11), end = c(10, 20)))
interactions <- append(interactions, interactions_chr[1])
# GRanges with 1 range and 0 metadata columns:
# seqnames ranges strand
# <Rle> <IRanges> <Rle>
# [1] X [1, 10] +
# ---
# seqlengths:
# X
# NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment