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(); }
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 ); }
void FastaFile::SetFilePath(const string& _file_path) { file_path = _file_path; ReadFastaFile(); }