diff --git a/modules/seq/alg/src/merge_pairwise_alignments.cc b/modules/seq/alg/src/merge_pairwise_alignments.cc index 35126c2bdc0d3acbf6d2a0cd21a52325822db1fc..f91cc34390ec9caf3e24aea63474b5fd74730778 100644 --- a/modules/seq/alg/src/merge_pairwise_alignments.cc +++ b/modules/seq/alg/src/merge_pairwise_alignments.cc @@ -34,7 +34,7 @@ typedef std::map<int, int> ShiftMap; namespace { void update_shifts(const AlignmentHandle& aln, - const SequenceHandle& ref_seq, + const ConstSequenceHandle& ref_seq, ShiftMap& shifts) { ConstSequenceHandle s1=aln.GetSequence(0); @@ -68,8 +68,8 @@ void update_shifts(const AlignmentHandle& aln, } } -SequenceHandle shift_reference(const SequenceHandle& ref_seq, - const ShiftMap& shifts) +SequenceHandle shift_reference(const ConstSequenceHandle& ref_seq, + const ShiftMap& shifts) { std::ostringstream new_sequence; String ref_str=ref_seq.GetString(); @@ -86,7 +86,7 @@ SequenceHandle shift_reference(const SequenceHandle& ref_seq, } new_sequence << ref_str.substr(last); SequenceHandle s=CreateSequence(ref_seq.GetName(), - new_sequence.str()); + new_sequence.str()); if (ref_seq.HasAttachedView()) s.AttachView(ref_seq.GetAttachedView()); s.SetOffset(s.GetOffset()); @@ -94,7 +94,7 @@ SequenceHandle shift_reference(const SequenceHandle& ref_seq, } SequenceHandle realign_sequence(const AlignmentHandle& aln, - const ShiftMap& shifts) + const ShiftMap& shifts) { std::ostringstream new_sequence; ConstSequenceHandle s1=aln.GetSequence(0); @@ -130,7 +130,7 @@ SequenceHandle realign_sequence(const AlignmentHandle& aln, } AlignmentHandle MergePairwiseAlignments(const AlignmentList& pairwise_alns, - const SequenceHandle& ref_seq) + const ConstSequenceHandle& ref_seq) { ShiftMap shifts; diff --git a/modules/seq/alg/src/merge_pairwise_alignments.hh b/modules/seq/alg/src/merge_pairwise_alignments.hh index e021dbe09569a95d3cbb2bd0cfedac66ea29958b..565b3144167470cc02386edca5812afb1c071fc0 100644 --- a/modules/seq/alg/src/merge_pairwise_alignments.hh +++ b/modules/seq/alg/src/merge_pairwise_alignments.hh @@ -43,7 +43,7 @@ namespace ost { namespace seq { namespace alg { /// contain any gaps. AlignmentHandle DLLEXPORT_OST_SEQ_ALG MergePairwiseAlignments(const AlignmentList& pairwise_alns, - const SequenceHandle& ref_seq); + const ConstSequenceHandle& ref_seq); }}} #endif