Description Usage Arguments Examples
Run pasta in R.
1 |
arglist |
Arguments for pasta |
outdir |
Filepath to output files are placed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(outsider)
# import
pasta <- module_import('pasta', repo = 'dombennett/om..pasta')
# help
pasta('-h')
# Real Example
# download
wd <- file.path(tempdir(), 'example_job')
if (!dir.exists(wd)) {
dir.create(wd)
}
# example DNA, based on MAFFT example
seq_file <- file.path(wd, 'example_seq.fasta')
url <- 'https://raw.githubusercontent.com/DomBennett/om..pasta/master/example_seq.fasta'
download.file(url = url, destfile = seq_file)
# run DNA alignment
pasta(arglist = c('-i', seq_file, '-d', 'dna',
'--alignment-suffix=alignment.fasta',
'--job=example'), outdir = wd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.