ImportVirusTable {Virusparies} | R Documentation |
ImportVirusTable imports VirusHunterGatherer hittables into R.
ImportVirusTable(path)
path |
A character string specifying the path to the VirusHunter or VirusGatherer hittable file. |
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.
A data frame containing the data from the VirusHunter or VirusGatherer hittable file.
Sergej Ruff
VirusHunterGatherer is available here: https://github.com/lauberlab/VirusHunterGatherer.
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))