Description Usage Arguments Details Value Author(s) Examples
This function takes a FASTA file containing two DNA or amino acid sequences that shall be aligned and computes a paiwise alignment using a defined alignment method.
1 2 3 4 5 6 7 8 9 10 |
file |
a character string specifying the path to the file storing the sequences in FASTA format. |
tool |
a character string specifying the program/algorithm that should be used: |
seq_type |
a character string specifying the sequence type stored within the given FASTA file. Options are:
|
get_aln |
a logical value indicating whether the produced alignment should be returned. |
pairwise_aln_name |
a character string specifying the name of the stored alignment file.
Default is |
path |
a character string specifying the path to the pairwise alignment program (in case you don't use the default path). |
quiet |
a logical value specifying whether a successful interface call shall be printed out. |
store_locally |
a logical value indicating whether or not alignment files shall be stored locally rather than in |
This function provides an interface between R and common pairwise alignment computation methods.
The current version of this function computes pairwise alignments based on the pairwiseAlignment
function implemented in the Biostrings package.
The default pairwise alignment method is based on the Needleman-Wunsch Algorithm.
In case the argument get_aln
is set TRUE
, an object of class alignment of the seqinr package is returned.
Sarah Scharfenberg and Hajk-Georg Drost
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Needleman-Wunsch Example:
# in case Biostrings works properly
pairwise_aln( file = system.file('seqs/aa_seqs.fasta', package = 'homologr'),
tool = "NW",
get_aln = TRUE,
seq_type = "protein")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.