asap_tbl | R Documentation |
asap_tbl()
returns species partition hypothesis estimated by ASAP software
https://bioinfo.mnhn.fr/abi/public/asap/.
asap_tbl(
infile,
exe = NULL,
haps = NULL,
model = 3,
outfolder = NULL,
webserver = NULL,
delimname = "asap"
)
infile |
Path to fasta file. |
exe |
Path to an ASAP executable. |
haps |
Optional. A vector of haplotypes to keep into the tbl_df. |
model |
An integer specifying evolutionary model to be used. Available options are:
|
outfolder |
Path to output folder. Default to NULL. If not specified, a temporary location is used. |
webserver |
A .csv file containing ASAP results obtained from a webserver. Default to NULL. |
delimname |
Character. String to rename the delimitation method in the table. Default to 'asap'. |
asap_tbl()
relies on system to invoke ASAP software through
a command-line interface. Hence, you must have the software available as an executable file on
your system in order to use this function properly.
asap_tbl()
saves all output files in outfolder
and imports the first partition
file generated to Environment
.
Alternatively, asap_tbl()
can parse a .csv file obtained from webserver such as
https://bioinfo.mnhn.fr/abi/public/asap/asapweb.html.
an object of class tbl_df
Nicolas Puillandre, Sophie Brouillet, Guillaume Achaz.
Puillandre N., Brouillet S., Achaz G. 2021. ASAP: assemble species by automatic partitioning. Molecular Ecology Resources 21:609–620.
#' # get path to fasta file
path_to_file <- system.file("extdata/geophagus.fasta", package = "delimtools")
# run ASAP
asap_df <- asap_tbl(infile = path_to_file, exe= "/usr/local/bin/asap", model= 3)
# check
asap_df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.