getSequencesByRegions: Read multiple genome sequence data from user by inputting a...

Description Usage Arguments Value References Examples

View source: R/readData.R

Description

A function that takes regions as input. It will look up the accessionIDs of SARS-COV2 of this region. Then it will retrieve the sequences from NCBI database online and return as a DNAStringSet object.

Usage

1

Arguments

regions

A vector of strings indicating the interested regions in which SARS-COV2 are located that you want to study

Value

Returns a DNAStringSet with sequences.

References

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

Paradis E. & Schliep K. 2019. ape 5.0: an environment for modern phylogenetics and evolutionary analyses in R. Bioinformatics 35: 526-528.

Examples

1
2
3
4
5
# Example 1
# Load MT066156.1 (accessionID of SARS-COV2 in Italy) by
# using "Italy" as input
regions <- c("Italy", "Canada", "USA")
Sequence <- getSequencesByRegions(regions)

quick2063706271/Cov2Comparator documentation built on Dec. 22, 2021, 10:59 a.m.