}
Sequence new_seq(std::string::substr(start, count));
new_seq.set_fasta_header(get_fasta_header());
- //new_seq.set_species(get_species());
+ new_seq.set_species(get_species());
new_seq.motif_list = motif_list;
// attempt to copy & reannotate position based annotations
BOOST_CHECK_EQUAL(s3, "AAGGNN");
}
+BOOST_AUTO_TEST_CASE( subseq_names )
+{
+ Sequence s1("AAGGCCTT");
+ s1.set_species("species");
+ s1.set_fasta_header("a fasta header");
+ Sequence s2 = s1.subseq(2,2);
+ BOOST_CHECK_EQUAL(s2, "GG");
+ BOOST_CHECK_EQUAL(s2.get_species(), s1.get_species());
+ BOOST_CHECK_EQUAL(s2.get_fasta_header(), s1.get_fasta_header());
+}
+
//! Can we load data from a file
BOOST_AUTO_TEST_CASE( sequence_load )
{