Entering edit mode
Hello,
I have some single-nucleotide positions in a GPos
object, and I would like to move them of one base. But pos<-
does not seem to be implemented and shift
fail…
p <- GPos("chr1:10:+", stitch = FALSE)
pos(p) <- pos(p) + 1
Error in pos(p) <- pos(p) + 1 : impossible de trouver la fonction "pos<-"
shift(p, 1)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘update_ranges’ for signature ‘"UnstitchedIPos"’
edit: I suppose there is some kind of hadean punishment for something like p@ranges@pos <- p@ranges@pos + 1L
?