Skip to content

Commit

Permalink
update imports from data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
alexg9010 committed Aug 28, 2017
1 parent 93483a6 commit 0d007f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export(getMethylationStats)
export(getSampleID)
export(getTargetAnnotationStats)
export(getTreatment)
export(joinSegmentNeighbours)
export(makeMethylDB)
export(methRead)
export(methSeg)
Expand Down Expand Up @@ -93,6 +94,7 @@ importFrom(S4Vectors,DataFrame)
importFrom(S4Vectors,Rle)
importFrom(S4Vectors,elementMetadata)
importFrom(S4Vectors,levels)
importFrom(data.table,":=")
importFrom(data.table,"key<-")
importFrom(data.table,CJ)
importFrom(data.table,SJ)
Expand All @@ -107,6 +109,7 @@ importFrom(data.table,setcolorder)
importFrom(data.table,setkey)
importFrom(data.table,setkeyv)
importFrom(data.table,setnames)
importFrom(data.table,setorder)
importFrom(data.table,tables)
importFrom(fastseg,fastseg)
importFrom(grDevices,colorRamp)
Expand Down
2 changes: 1 addition & 1 deletion R/methSeg.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ joinSegmentNeighbours <- function(res) {

## now we just merge ranges, that had a non-zero value in l
for (i in which(l!=0)) {
res_dt[k[i]:(k[i]+l[i]),`:=`(seqnames=unique(seqnames),
res_dt[k[i]:(k[i]+l[i]),":="(seqnames=unique(seqnames),
start=min(start),
end=max(end),
strand = "*",
Expand Down
3 changes: 2 additions & 1 deletion R/methylKit.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#'
#' @importFrom Rsamtools TabixFile scanTabix yieldSize "yieldSize<-"
#'
#' @importFrom data.table data.table fread setnames setcolorder as.data.table tables setkey setkeyv key "key<-" haskey CJ SJ copy rbindlist
#' @importFrom data.table data.table fread setnames setcolorder as.data.table tables
#' setkey setkeyv key "key<-" haskey CJ SJ copy rbindlist setorder
#'
#' @importFrom mclust densityMclust Mclust
#'
Expand Down

0 comments on commit 0d007f2

Please sign in to comment.