Commit 2bea26cd authored by cziegenhain's avatar cziegenhain
Browse files

prevent warning

parent 04472a24
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -367,9 +367,9 @@ demultiplex_bam <- function(opt, bamfile, nBCs, samtoolsexc, bccount){
  }
  
  installed_py <- try(system("pip freeze", intern = TRUE, ignore.stderr = TRUE), silent = TRUE)
  if(grepl('Error', installed_py)){
  suppressWarnings(if(grepl('Error', installed_py)){
    installed_py <- try(system("pip3 freeze", intern = TRUE, ignore.stderr = TRUE), silent = TRUE)
  }
  })
  
  if(any(grepl("pysam==",installed_py))){
    print("Using python implementation to demultiplex.")