R/align.clustalw.R

align.clustalw <-function(filein, fileout="Sq.fa", call){
	require("seqinr")
    read.fasta <- get("read.fasta", pos = "package:seqinr")
    strtocall <- paste(call, ' -infile=',filein, ' -outfile=',fileout, ' -output=FASTA', sep='' )
      
	system(strtocall)
	sq<-read.fasta(file=fileout)
	sqalineada<-matrix(,length(sq),length(sq[[1]]))
	for (i in c(1:length(sq))){
		sqalineada[i,]<-sq[[i]]
	}
return(sqalineada)

}

Try the MEET package in your browser

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

MEET documentation built on May 2, 2019, 1:45 p.m.