R/rmByEvi.R

Defines functions rmByEvi

Documented in rmByEvi

rmByEvi <- function(protKept, complex){


  protDel = setdiff(complex, protKept)
  

  
  if(length(protDel) != 0){
  
      toDel = vector()
      for(i in 1:length(protDel)){
          
          del = which(complex == protDel[i])
          
          toDel = c(toDel, del)
  
      }

      if (length(toDel) != 0){
          complex = complex[-toDel]
          
      }
      
  }
  
  
  
  complex
}


  

Try the ScISI package in your browser

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

ScISI documentation built on Nov. 8, 2020, 5:48 p.m.