refine.fasta | R Documentation |
Reverse-complement or delete sequences in a multiple sequence alignment based on a csv file input.
refine.fasta(basedir = choose.dir())
basedir |
The address of the directory which contains the FASTA files to be refined and corresponding log files. |
make.fasta.files
automates the export of FASTA and log files.
A separate FASTA file and corresponding log file is exported for each
locus included in the analysis.
Any log files used in this function must match the format of those exported
by make.fasta.files
.
Log files must be in csv format, and have the following columns:
- orgs
- seqLabels
- whatToDo
- comments
orgs
is the taxon name of the specimen. seqLabels
is the
label of the sequence in the corresponding alignment. whatToDo
has three possible states depending on what needs to be done to a
sequence in the alignment.
- RC
= reverse complement
- D
= delete
- blank = do nothing
Log files start blank when exported. The user should manually edit
log files to add these values before running refine.fasta
.
Returns the string 'done!' when fasta files have been imported and processed. Function invoked for side-effect.
Andrew Hipp and Kasey Pham
make.gene.matrix
, parse.INSDSeq
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.