View source: R/bioinfo_sequences.R
extractFasta | R Documentation |
Extract a subset of (possibly several) sequences present in fasta file.
extractFasta(in.fa, sub.info, out.fa, split.names = " ", verbose = 1)
in.fa |
path to the input fasta file (can be gzipped) |
sub.info |
information on the subset to extract, as a data.frame with 3 columns, "seq", "start", "end", where the coordinates are 1-based (a 4th column, "name", can specify the names of the resulting subsequences; by default, these are |
out.fa |
path to the output fasta file (can be gzipped); if NULL, the subset of sequences isn't written to a file but simply returned |
split.names |
if not NULL, specify the character at which the sequence names in |
verbose |
verbosity level (0/1) |
subset of sequences (invisible if out.fa
isn't NULL)
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.