예제 #1
0
FastaFile::FastaFile(const string& _file_path) {
  file_path = _file_path;
  file_string = NULL;
  file_size = 0;

  sequences = NULL;
  num_of_sequences = 0;
  num_of_characters = 0;
  max_sequence_length = 100000;
  ReadFastaFile();
}
예제 #2
0
int 
CGenethonDoc::GetFastaFile( CString PathName, int Append )
{

	CPtrList CommentList;
	CPtrList SequenceList;

	gMaxStrSize = 0L;

	if ( !ReadFastaFile ( &CommentList, &SequenceList, PathName ) ) {
		while ( !SequenceList.IsEmpty() ) {
			delete (SeqNameStruct *)SequenceList.RemoveHead();
		}
		return 0;
	}

	return ProcessRows( CommentList, SequenceList, Append );
}
예제 #3
0
void FastaFile::SetFilePath(const string& _file_path) {
  file_path = _file_path;
  ReadFastaFile();
}