SaveGenomeToPath: Save a Strain's Genome to a Directory

Description Usage Arguments Details Value Examples

View source: R/SaveGenomeToPath.R

Description

Saves the genome for a specified strain to a given directory

Usage

1
SaveGenomeToPath(strainID, filePath)

Arguments

strainID

Character string corresponding to the strain identifier.

filePath

Character string corresponding to the path to the file path. Must end in '.fasta'.

Details

SaveGenomeToPath saves the genome for the specified strain ID to the given file path. If the file specified by the path already exists, it will be overwitten (with a warning). The given strain ID must be a part of the AssessORF set, and there is no partial matching. Otherwise, the function will error.

Note: there is no genome for strain ATCC700084, so a reference genome for the species (strain MC2155) is used instead.

Value

Invisibly returns filePath

Examples

1
2
3
tmpFile <- paste0(tempfile(), ".fasta")
SaveGenomeToPath("MGAS5005", tmpFile)
unlink(tmpFile)

DRK248/AssessORFData documentation built on Feb. 2, 2020, 11:06 p.m.