subset.FRASER {FRASER} | R Documentation |
Providing subsetting by indices through the single-bracket operator
## S3 method for class 'FRASER' subset(x, i, j, by = c("j", "ss")) ## S4 method for signature 'FraserDataSet,ANY,ANY,ANY' x[i, j, by = c("j", "ss")]
x |
A |
i |
A integer vector to subset the rows/ranges |
j |
A integer vector to subset the columns/samples |
by |
a character (j or ss) definig if we subset by junctions or splice sites |
A subsetted FraserDataSet
object
fds <- createTestFraserDataSet() fds[1:10,2:3] fds[,samples(fds) %in% c("sample1", "sample2")] fds[1:10,by="ss"]