Learn R Programming

BoSSA (version 1.2)

FastaSorter: Rename and get information from fasta sequences set download from GenBank

Description

The function read a fatsa alignment download from Genbank, rename the sequence with the accession number and write a file with information about the sequences.

Usage

FastaSorter(Y)

Arguments

Y
The path/name of a sequence set in fasta format download from genbank

Value

The output is (i) a sequence set in fatsa format with names of sequence being replace by the accession number and (ii) a comma separated file with the information about the sequence.

Details

This function is handfull to go through datasets download from GenBank/TaxBrowser allowing to replace the composite GenBank sequence name with the accession number.

Examples

Run this code
##obtain a fasta file the GenBank
##copy the fasta file to your current directory
##FastaSorter("sequence.fasta")

Run the code above in your browser using DataLab