Sequence::Sequence()
: seq_start(0),
- seq_count(0)
+ seq_count(0),
+ strand(UnknownStrand)
{
}
Sequence::Sequence(const char *seq)
: seq_start(0),
seq_count(0),
+ strand(UnknownStrand),
header(""),
species("")
{
Sequence::Sequence(const std::string& seq)
: seq_start(0),
seq_count(0),
+ strand(UnknownStrand),
header(""),
species("")
{
: seq(o.seq),
seq_start(o.seq_start),
seq_count(o.seq_count),
+ strand(o.strand),
header(o.header),
species(o.species),
annots(o.annots),
seq = s.seq;
seq_start = s.seq_start;
seq_count = s.seq_count;
+ strand = s.strand;
header = s.header;
species = s.species;
annots = s.annots;
}
void Sequence::set_filtered_sequence(const std::string &old_seq,
- std::string::size_type start,
- std::string::size_type count)
+ size_type start,
+ size_type count,
+ strand_type strand_)
{
char conversionTable[257];
- if ( count == 0)
+ if ( count == npos)
count = old_seq.size() - start;
boost::shared_ptr<seq_string> new_seq(new seq_string);
new_seq->reserve(count);
seq = new_seq;
seq_start = 0;
seq_count = count;
+ strand = strand_;
}
void
seq.reset();
seq_start = 0;
seq_count = 0;
+ strand = UnknownStrand;
header.clear();
species.clear();
annots.clear();