//********************************************************************************************************************
Sequence::Sequence(ifstream& fastaFile){
+
initialize();
+ fastaFile >> name;
+ name = name.substr(1);
+ char c;
+
+ while ((c = fastaFile.get()) != EOF) { if (c == 10){ break; } } // get rest of line if there's any crap there
- string accession; // provided a file handle to a fasta-formatted sequence file, read in the next
- fastaFile >> accession; // accession number and sequence we find...
- setName(accession);
-
char letter;
string sequence;
if(letter == 'U'){letter = 'T';}
sequence += letter;
}
-
}
if(sequence.find_first_of('-') != string::npos){ // if there are any gaps in the sequence, assume that it is