Displaying 2 results from an estimated 2 matches for "genetest".
2007 Aug 08
0
ksvm-kernel
...kernlab)
# identity kernel
k <- function(x,y) {
n<-length(x)
cont<-0
for(i in 1:n){
if(x[i]==y[i]){
cont<-cont+1
}
}
cont
}
class(k) <- "kernel"
data(promotergene)
ind <- sample(1:dim(promotergene)[1],20)
genetrain <- promotergene[-ind, -1]
genetest <- promotergene[ind,-1 ]
kx <- kernelMatrix(k, as.matrix(genetrain))
y<-as.vector(promotergene[-ind,1 ])
#y<-as.factor(promotergene[-ind,1 ])
y
gene1 <- ksvm(kx, y, type="C-svc")
gene1
genetype <- predict(gene1,genetest)
Error en as.matrix(Z) : objeto "Z" no e...
2009 Sep 15
3
how to load only lines that start with a particular symbol
Dear all,
I have DNA sequence data which are fasta-formatted as
>gene A;.....
AAAAACCCC
TTTTTGGGG
CCCTTTTTT
>gene B;....
CCCCCAAAA
GGGGGTTTT
I want to load only the lines that start with ">" where the annotation
information for the gene is contained. In principle, I can remove the
sequences before loading or after loading all the lines. I just wonder if
there's a way to