R/checkNo.replicates.R

Defines functions checkNo.replicates

Documented in checkNo.replicates

checkNo.replicates <-
function(rawData,no.peaks,no.replicates) {

rawData$SampleTag=as.character(rawData$SampleTag)

COUNTER=unique(rawData$SampleTag)

TOTAL_COUNT=NULL


for(i in 1:length(COUNTER)) {

no.peaksrep=no.replicates*no.peaks 

      if(dim(rawData[rawData$SampleTag == COUNTER[i][1],])[1] != no.peaksrep)
        
      TOTAL_COUNT=c(TOTAL_COUNT,COUNTER[i])      
}

TOTAL_COUNT
}

Try the clippda package in your browser

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

clippda documentation built on Nov. 8, 2020, 8:13 p.m.