pasta: Practical Alignment using SATe and Transitivity

Description Usage Arguments Examples

View source: R/functions.R

Description

Run pasta in R.

Usage

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

Arguments

arglist

Arguments for pasta

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
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)

DomBennett/om..pasta documentation built on Jan. 17, 2020, 12:25 a.m.