}
}
+const std::string& Sequence::get_species() const
+{
+ return species;
+}
+
bool Sequence::empty() const
{
return (size() == 0);
void load_annot(const std::string file_path, int start_index, int end_index);
const std::list<annot>& annotations() const;
const std::list<motif>& motifs() const;
+ const std::string& get_species() const;
// simple access functions
void set_seq(const std::string& a_seq);
++desc_i)
{
layout.removeWidget(*desc_i);
+ delete *desc_i;
}
descriptions.clear();
}
++track_i)
{
SequenceDescription *desc = new SequenceDescription(this);
- //disc->setName(track_i->sequence().name());
+ desc->setName(track_i->sequence().get_species());
desc->setLength(track_i->sequence().length());
//desc->setPosition(track_i->sequence().length());
descriptions.push_back(desc);
SequenceDescription(QWidget *parent=0);
SequenceDescription(std::string& name, float length, QWidget *parent=0);
- void setName(std::string& name) { name_label.setText(name.c_str()); }
+ void setName(const std::string& name) { name_label.setText(name.c_str()); }
void setLength(float length);
void setPosition(int pos) { QString s; position_label.setText(s.setNum(pos));}