vqsout | R Documentation |
Writes out resulting objects from "vqscompare" function as tables (TSV files) and alignment (FASTA file) to the working directory.
vqsout(vqscompare.obj, directory = "path/to/directory")
vqscompare.obj |
A resulting object from "vqscompare" function. |
directory |
Path to desired directory (location) for output files. If it is not specified, the directory will be the current working directory. |
TSV files of viral quasispecies profile comparison results and FASTA file of unique haplotype alignment.
## Locate input FASTA files-----------------------------------------------------------------------
sample1filepath <- system.file("extdata", "s1.fasta", package = "longreadvqs")
sample2filepath <- system.file("extdata", "s2.fasta", package = "longreadvqs")
## Prepare data for viral quasispecies comparison between two samples-----------------------------
set.seed(123)
sample1 <- vqsassess(sample1filepath, pct = 0, samsize = 50, label = "sample1")
sample2 <- vqsassess(sample2filepath, pct = 0, samsize = 50, label = "sample2")
## Compare viral quasispecies and OTU (4 clusters) diversity between two samples------------------
comp <- vqscompare(samplelist = list(sample1, sample2),
lab_name = "Sample", kmeans.n = 4, showhap.n = 5)
## Export Key outputs from "vqscompare" function--------------------------------------------------
notrun <- vqsout(comp, directory = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.