Re: [Seqan-dev] Two Alignment Questions
- From: Rahn, René <rene.maerker@fu-berlin.de>
- To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Date: Thu, 22 Jan 2015 11:44:09 +0100
- Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
- Subject: Re: [Seqan-dev] Two Alignment Questions
Hi Brett,
So typename Row<Align<DnaString, TGapsSpec> >::Type == Gaps<DnaString, TGapsSpec>.
Apparently there is no Metafunction to receive the Spec type of the Gaps nor the Align structure.
Remove the one line above. This one would be correct. Value of TGaps would give you the Value of the Source of Gaps which is the alphabet type used for the source.
From the code above I don’t see, why exactly you need the Gaps type.
Wouldn’t this here be sufficient?
BTW it should read Align<TSource, TGapsSpec>. The first template argument of Align is the type of the source.
```
template <typename TSource, typename TGapsSpec>
String<char> alignmentIdentityString(Align<TSource, TGapsSpec>
const & align,
char const matchChar,
char const mismatchChar,
char const gapChar)
{
// Check that the supplied alignment is pairwise
SEQAN_ASSERT_EQ_MSG(length(rows(align)), 2u, "Only works with pairwise alignments.”);
return alignmentSimilarityString(row(align,0), row(align,1), scoringScheme,
matchChar, mismatchChar, gapChar);
```
cheers,
René
---
René Rahn
Ph.D. Student
--------------------------------
Institute of Computer Science
Algorithmic Bioinformatics (ABI)
--------------------------------
Freie Universität Berlin
Takustraße 9
14195 Berlin
--------------------------------
|
- References:
- Re: [Seqan-dev] Two Alignment Questions
- From: Rahn, René <rene.maerker@fu-berlin.de>
- Re: [Seqan-dev] Two Alignment Questions
- From: Brett Bowman <bnbowman@gmail.com>
- Re: [Seqan-dev] Two Alignment Questions
- From: "Holtgrewe, Manuel" <manuel.holtgrewe@fu-berlin.de>
- Re: [Seqan-dev] Two Alignment Questions
- From: Brett Bowman <bnbowman@gmail.com>
- Re: [Seqan-dev] Two Alignment Questions
- From: "Holtgrewe, Manuel" <manuel.holtgrewe@fu-berlin.de>
- Re: [Seqan-dev] Two Alignment Questions
- From: Brett Bowman <bnbowman@gmail.com>
- Re: [Seqan-dev] Two Alignment Questions
-
seqan-dev - January 2015 - Archives indexes sorted by:
[ thread ] [ subject ] [ author ] [ date ] - Complete archive of the seqan-dev mailing list
- More info on this list...