This function reads a FASTA file. Each sequence starts with '>' in the file. This is a general function which can be applied to all types of sequences (i.e., protein/peptide, dna, and rna).
fa.read(file, legacy.mode = TRUE, seqonly = FALSE, alphabet = "aa")
The address of the FASTA file.
comments all lines which start with ";".
if it is set to true, the function will return sequences with no description.
is a vector which contains amino acid, RNA, or DNA alphabets.
a string vector such that each element is a sequence.
https://cran.r-project.org/web/packages/rDNAse/index.html
# NOT RUN {
fileLNC<-system.file("extdata/Athaliana_LNCRNA.fa",package="ftrCOOL")
sequenceVectLNC<-fa.read(file=fileLNC,alphabet="dna")
filePrs<-system.file("extdata/proteins.fasta",package="ftrCOOL")
sequenceVectPRO<-fa.read(file=filePrs,alphabet="aa")
# }
Run the code above in your browser using DataLab