Description Arguments Value Methods Author(s) References See Also Examples
Reads file in FASTA format. An sequence entry in the fasta dabase
consists of a header line starting with the \">\" sign which contains
the id of the sequence. It is followed by several lines of the protein
sequence. Because the header line may vary the user can specify a
function which will extract (grep) the id.
infogrep <- function(x)
{
return(sub("^>([a-zA-Z0-9]+) .+","\1",x,perl=TRUE))
}
object |
either |
file |
Path to the file |
grepinfo |
Function which extracts the id from the fasta description line. |
grepseq |
Function to pre-process the sequence. |
Returns an object of class AASequenceList
.
Read sequence database in FASTA format.
Witold E. Wolski witek96@users.sourceforge.net
http://r4proteomics.sourceforge.net
1 2 | mySequlist <- new("AASequenceList",info="my sequence list")
#mySequlist<-readFasta(mySequlist,"ex.fasta",grepinfo=infogrep,grepseq=seqgrep)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.