Description Usage Arguments Author(s) See Also Examples
This function calculates entropy values from all combinations possibles of nucleotides given a matrix of TFBS sequences.
1 |
iicc |
A set of inicial conditions for the MEET-package |
training.set |
A set of nucleotide sequences |
Joan Maynou <joan.maynou@upc.edu>
Hread
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(seqinr)
write.fasta <- get("write.fasta",pos="package:seqinr")
read.fasta <- get("read.fasta",pos="package:seqinr")
data(iicc)
pathMEET<-system.file("exdata",package="MEET")
i<-1
factor<-switch(iicc$alignment, "CLUSTALW"=align.clustalw(filein=paste(pathMEET,"AP1.fa",sep="/"), fileout="Sq.fa", call=iicc$call.clustalw), "MUSCLE"=align.muscle(filein="setTF.fa", fileout="Sq.fa", gapopen=iicc$gapopen, maxiters=iicc$maxiters, gapextend=iicc$gapextend, call=iicc$call.muscle),"MEME"=align.MEME(filein="setTF.fa",fileout="Sq.fa",iicc),"NONE"=Read.aligned("setTF.fa"), stop("Alignment method not included"))
q<-iicc$q<-iicc$correction_1rOrdre<-iicc$Herror<-iicc$HXmax<-iicc$Redundancia_corregida<-iicc$ErrorHX<-iicc$classentropy<-iicc$Entropy<-NULL
q<-iicc$q<-iicc$vector[i]
if (q==1) {iicc$classentropy<-"Shannon"
}else{
iicc$classentropy<-"Renyi"
}
iicc$correction_1rOrdre <- correction.entropy(q,nrow(factor),1,iicc)
iicc$Herror<-slot(iicc$correction_1rOrdre,"Herror")
iicc$HXmax<- iicc$Herror[nrow(factor)]
iicc$Redundancia_corregida<-CalculRedundancy(factor,q,iicc)
iicc$ErrorHX<-slot(iicc$correction_1rOrdre,"sderror")[nrow(factor)]
Results<-Hmemory(iicc,factor)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.