ImportVirusTable {Virusparies}R Documentation

ImportVirusTable: Import VirusHunterGatherer hittables into R

Description

ImportVirusTable imports VirusHunterGatherer hittables into R.

Usage

ImportVirusTable(path)

Arguments

path

A character string specifying the path to the VirusHunter or VirusGatherer hittable file.

Details

ImportVirusTable reads the VirusHunter or VirusGatherer hittable file specified by 'path' into a data frame in R. The file should be in tab-separated values (TSV) format. The first row should contain column headers.

Value

A data frame containing the data from the VirusHunter or VirusGatherer hittable file.

Author(s)

Sergej Ruff

See Also

VirusHunterGatherer is available here: https://github.com/lauberlab/VirusHunterGatherer.

Examples

path <- system.file("extdata", "virushunter.tsv", package = "Virusparies")
vh_file <- ImportVirusTable(path)

print(head(vh_file))

# import gatherer files
path2 <- system.file("extdata", "virusgatherer.tsv", package = "Virusparies")
vg_file <- ImportVirusTable(path2)

print(head(vg_file))


[Package Virusparies version 1.1.0 Index]