ReadSequence.c geneid v 1.1 source documentation


Description:
Reading DNA sequences, placing them in a previously allocated string which will post-processed (reverse and complement) then. More than one sequence is allowed to be in the input file but always respecting the FASTA format.
Briefing:
long analizeFile(char* SequenceFile)
Read the size of the input file to estimate the size of its DNA sequence.
int IniReadSequence(FILE* seqfile, char* line)
Reading the locusname of first DNA sequence in the input file. (Remember this file is allowed to contain more than one fasta sequence)
int ReadSequence (FILE* seqfile,
                  char* Sequence,
                  char* nextLocus)
Reading the current sequence and get the locus name from the next sequence until there are not more sequences in the input file. (Multiple string locus names and dynamic length of fasta lines are allowed)




Enrique Blanco Garcia © 2001