R/LOGICOIL.R

LOGICOIL <-
function(id, seq, reg, plot.result=FALSE)
{
	# priors obtained from LOGICOIL training set
	prior <- c(0.6331,0.237,0.053,0.0769)
  
  # compute test scores
  cat("Estimating oligomeric state of coiled-coil sequences\n")
  prob.oligo <- EstimateProbability(id,
    seq,
    reg,
    pssm,
    LOGICOILfit,
    Model_Parameters)
  
  # Plot results of LOGICOIL predictions
  if(plot.result==TRUE)
  {
    plot_LOGICOIL(prob.oligo, id)
  }
  
  # compute final summary probability for whole sequence
  score <- apply(prob.oligo, 2, mean) / prior
	
  # return score fo input sequence
  cat("Analysis complete!\n")
	return(score)
	warnings()
}

Try the LOGICOIL package in your browser

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

LOGICOIL documentation built on May 2, 2019, 9:09 a.m.