trimal: trimal

Description Usage Arguments Examples

View source: R/functions.R

Description

Run trimal

Usage

1
trimal(arglist = arglist_get(...), outdir = getwd())

Arguments

arglist

Arguments for trimal

outdir

Filepath to output files are placed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(outsider)
# import
trimal <- module_import('trimal', repo = 'dombennett/om..trimal')
# help
trimal('-h')

# Real Example
# download
wd <- file.path(tempdir(), 'example_job')
if (!dir.exists(wd)) {
  dir.create(wd)
}
alignment_file <- file.path(wd, 'example_alignment.fasta')
url <- 'https://raw.githubusercontent.com/DomBennett/om..trimal/master/example_alignment.fasta'
download.file(url = url, destfile = alignment_file)
# run trimal with automated1 method
trimal(arglist = c('-in', alignment_file, '-out', 'trimal_results.fasta',
                   '-automated1', '-fasta'), outdir = wd)

DomBennett/om..trimal documentation built on Jan. 22, 2020, 1:01 p.m.