예제 #1
0
파일: Alignment.cpp 프로젝트: kgori/bpp
vector<pair<string, string>> Alignment::_get_sequences(VectorSiteContainer *seqs) {
    vector<pair<string, string>> ret;
    if (!seqs) {
        cerr << "Empty sequences pointer" << endl;
        throw exception();
    }
    for (size_t i = 0; i < seqs->getNumberOfSequences(); ++i) {
        BasicSequence seq = seqs->getSequence(i);
        ret.push_back(make_pair(seq.getName(), seq.toString()));
    }
    return ret;
}
예제 #2
0
BasicSequence::BasicSequence(const BasicSequence& s) :
	BasicSymbolList(s),
	name_(s.getName()),
	comments_(s.getComments())
{}