Defines functions check_filter

Documented in check_filter

check_filter <-
  mySeq <- s2c(ntseq)
  mySeq <- toupper(mySeq)
  if (method == 'Tm_Wallace'){
    baseset <- c("A","B","C","D","G","H","I","K","M","N","R","S","T","V","W","Y")
  }else if (method == 'Tm_GC'){
    baseset <- c("A","B","C","D","G","H","I","K","M","N","R","S","T","V","W","X","Y")
  }else if(method == 'Tm_NN'){
    baseset = c('A','C','G','T','I')
    stop("Only methods 'Tm_Wallace' or 'Tm_GC' or 'Tm_NN' is allowed")
  finalSeq <- NULL
  for(i in mySeq){
    if(i %in% baseset){
      finalSeq <- append(finalSeq,i)

Try the TmCalculator package in your browser

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

TmCalculator documentation built on May 2, 2019, 6:04 a.m.