| FASTAid documentation | view source | Contained in the FASTAid distribution. |
FASTAid - index a FASTA sequence database for fast random-access sequence retrieval
This document describes FASTAid version 0.0.3
use FASTAid qw( create_index retrieve_entry );
my $FASTA_file = 'lots_of_seqs.fa';
# index the file of FASTA seqs
create_index($FASTA_file);
# retrieve one or more FASTA seqs from the file
my $seq_array_ref = retrieve_entry($FASTA_file, 'NM_00204', 'AA23456');
foreach my $seq ( @{$seq_array_ref} ) {
...do something with each FASTA sequence...
}
FASTAid indexes files containing FASTA sequence records and allows quick random-access retrieval of one or more FASTA sequences.
FASTAid writes the index to a file with the suffix '.fec'.
could not open FASTA fileA file could not be opened. Probably the path you supplied is incorrect or the permissions are incorrect.
There is already an entry IDThe same identifier appears more than once in the FASTA file you supplied. This is a fatal error because FASTAid uses the identifier to index the position of the sequence.
Cannot write FASTAid indexThe index could not be written. This is a file system error, so probably you don't have permissions to write in the directory.
Must supply at least one IDNo identifiers were supplied as arguments to retrieve_entry. Since FASTAid uses the identifier as the lookup, it can't retrieve an entry without an identifier.
Entry ID = <id> not found!An identifier could not be found in the index. This is a warning, not a fatal error, because if other identifiers are supplied to retrieve_entry, those sequences will be returned even if others fail.
There are two common causes for this error: either the index is out of date and the identifier doesn't exist in the index, or the identifier was misspelled when attempting the lookup.
None reported.
No bugs have been reported.
Please report any bugs or feature requests to
bug-FASTAid@rt.cpan.org, or through the web interface at
http://rt.cpan.org.
Jarret Glasscock C<< <glasscock_cpan@mac.com> >> Dave Messina C<< <dave-pause@davemessina.net> >>
This software was developed at the Genome Sequencing Center at Washington University, St. Louis, MO.
Copyright (C) 2004-6 Glasscock, Messina. All Rights Reserved.
This software is provided "as is" without warranty of any kind.
Usage : create_index(my_fasta_file) or die "index was not created"; Function : creates a byte index file representing positions of FASTA formatted entries. Returns : returns true upon success of index creation, false upon failure Args : a single argument, the path to a FASTA file
Usage : my $array_ref = retrieve_entry(FASTA_file_path, identifier1, identifier2, ..); Function : retrieves FASTA sequence given index and identifier(s). Returns : returns a reference to an array of FASTA entries Args : FASTA_file_path, identifier1, identifier2, ..
| FASTAid documentation | view source | Contained in the FASTAid distribution. |