Description Usage Arguments Value References Examples
A function that read genome sequence .fasta file from user by inputting directories
1 | readGenome(fastaFile, nameToRegionsFile = NULL)
|
fastaFile |
A string indicating the path of .fasta file |
nameToRegionsFile |
A string indicating the path of name to region .csv file |
Returns a DNAStringSet with sequences from fastaFile are add.
H. Pagès, P. Aboyoun, R. Gentleman and S. DebRoy (2020). Biostrings: Efficient manipulation of biological strings. R package version 2.58.0. https://bioconductor.org/packages/Biostrings
1 2 3 4 5 6 7 8 9 | # Example 1
# Load MN985325.1.fasta and MT066156.1.fasta file in inst/extdata
fastaPath1 <- system.file("extdata", "MN985325.1.fasta",
package="Cov2Comparator")
fastaPath2 <- system.file("extdata", "MT066156.1.fasta",
package="Cov2Comparator")
nameToRegionsFile <- system.file("extdata", "nameToCountry.txt",
package="Cov2Comparator")
fasta1 <- readGenome(fastaPath1, nameToRegionsFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.