R/filter.R

Defines functions removeByWeights filterClones

Documented in filterClones removeByWeights

filterClones <- function(MA, filterFunc, ...){
  remove <- as.matrix(filterFunc(MA, ...))
  for(i in 1:ncol(MA)){
    MA$M[remove[,i],i] <- NA
  }
  MA
}

removeByWeights <- function(MA, weights=MA$weights, threshold = 0.2){

  index <- weights[,] < threshold
  as.matrix(index)
}

Try the snapCGH package in your browser

Any scripts or data that you put into this service are public.

snapCGH documentation built on Nov. 8, 2020, 5:31 p.m.