genotype_statistics_cmd | R Documentation |
Collect parameters from the command line and use them to create a report and CSV file
genotype_statistics_cmd(args = NULL)
args |
A string vector containing the command line arguments. If NULL, will take them from the command line |
Nothing
# Prepare files for example
reference_set = system.file("extdata/ref_gapped.fasta", package = "ogrdbstats")
inferred_set = system.file("extdata/novel_gapped.fasta", package = "ogrdbstats")
repertoire = system.file("extdata/ogrdbstats_example_repertoire.tsv", package = "ogrdbstats")
file.copy(repertoire, tempdir())
repfile = file.path(tempdir(), 'repertoire.tsv')
genotype_statistics_cmd(c(
reference_set,
'Homosapiens',
repfile,
'IGHV',
'--inf_file', inferred_set,
'--format', 'none'))
# clean up
outfile = file.path(tempdir(), 'repertoire_ogrdb_report.csv')
plotdir = file.path(tempdir(), 'repertoire_ogrdb_plots')
file.remove(repfile)
file.remove(outfile)
unlink(plotdir, recursive=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.