Description Usage Arguments Details Value Author(s) See Also Examples
Reads sequences data in fasta and create DnaSeq
and RnaSeq instances.
1 | readFasta(infile)
|
infile |
the name of the fasta file which the data are to be read from. |
This funtion reads DNA and RNA fasta files and generates
valid "DnaSeq" and "RnaSeq" instances.
an instance of DnaSeq or RnaSeq.
Laurent Gatto lg390@cam.ac.uk
GenericSeq, DnaSeq and RnaSeq.
1 2 3 4 | f <- dir(system.file("extdata",package="sequences"),pattern="fasta",full.names=TRUE)
f
aa <- readFasta(f[1])
aa
|
Loading required package: Rcpp
This is package 'sequences'
[1] "/usr/local/lib/R/site-library/sequences/extdata/aDnaSeq.fasta"
[2] "/usr/local/lib/R/site-library/sequences/extdata/moreDnaSeqs.fasta"
Object of class DnaSeq
Id: example dna sequence
Length: 132
Alphabet: A C G T
Sequence: AGCATACGACGACTACGACACTACGACATCAGACACTACAGACTACTACGACTACAGACATCAGACACTACATATTTACATCATCAGAGATTATATTAACATCAGACATCGACACATCATCATCAGCATCAT
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.