FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

Re: [Seqan-dev] SwiftPattern reinit required

<-- thread -->
<-- date -->
  • From: "Kehr, Birte" <Birte.Kehr@fu-berlin.de>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Wed, 26 May 2010 17:44:22 +0200
  • Acceptlanguage: en-US, de-DE
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: Re: [Seqan-dev] SwiftPattern reinit required

Hi Fabian,

> I made another observation that seems 
> strange. I run swift on a bunch of sequences (Finder). However, only the 
> first sequence will ever get a match.
> Looking at you swiftlocal app I see that you call
> 
> Pattern<TQGramIndex, Swift<SwiftLocal> > pattern_swift(index_qgram);
> 
> in the inner loop. This probably resets something in the object that is 
> crucial to the program. I was wondering if it wouldn't make sense to 
> "reuse" the already instantiated object and "just" reset what ever 
> required? Or is there a special reason to do it this way? I think it 
> used to work (with seqan release 1.2). 

Yes, one needed to re-initialize the pattern. Reusing the object was only possible with the semi-global version until now. But as I planned to have a look at it soon anyway, I now fixed it for the local version.

> The swiftlocal app currently 
> doesn't compile so I couldn't just give it a go and try what happens 
> when the line mentioned above is initialized outside the loop.

Normally, it should compile. I recently moved the file from the demos folder to the apps folder. Have you updated all files to the current version?

Cheers, 
Birte



<-- thread -->
<-- date -->
  • References:
    • Re: [Seqan-dev] SwiftLocal specialization with Hamming distance
      • From: "Kehr, Birte" <Birte.Kehr@fu-berlin.de>
    • Re: [Seqan-dev] SwiftLocal specialization with Hamming distance - problems with WatermanEggert
      • From: Fabian Buske <f.buske@uq.edu.au>
    • Re: [Seqan-dev] SwiftLocal specialization with Hamming distance - problems with WatermanEggert
      • From: "Kehr, Birte" <Birte.Kehr@fu-berlin.de>
    • Re: [Seqan-dev] SwiftLocal specialization with Hamming distance - problems with WatermanEggert
      • From: Fabian Buske <f.buske@uq.edu.au>
    • Re: [Seqan-dev] SwiftLocal specialization with Hamming distance - problems with WatermanEggert
      • From: "Kehr, Birte" <Birte.Kehr@fu-berlin.de>
    • Re: [Seqan-dev] SwiftPattern reinit required
      • From: Fabian Buske <f.buske@uq.edu.au>
  • seqan-dev - May 2010 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the seqan-dev mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal