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

Re: [Seqan-dev] SA interval from indices

thread
date
  • From: Rahn, René <rene.maerker@fu-berlin.de>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Tue, 22 Sep 2015 10:55:12 +0200
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: Re: [Seqan-dev] SA interval from indices

Hi Yue,

I am not sure, whether some one answered your question already?
Instead of using the finder interface you could directly use the VSTree Iterator.
Look at the docu here: http://docs.seqan.de/seqan/develop/specialization_VSTreeIterator.html#VSTreeIterator%23countOccurrences

It also has a little code example to show how to use the iterator to count occurrences.

IHTH, 

René
 
On 24 Jun 2015, at 00:07, Yue Gan <gany.fml@gmail.com> wrote:

Hi,

After created indices (I am using indexEsa), how do you search pattern by using them? 

I only know you can create a finder based on the indices, and search pattern using finder based on the tutorial. But finder sometimes does not seems very convenient to me. Sometime I only need the occ value of the pattern, not their position, so I have to do:

    int num_cout;
    while (find(Finder, "TATAA"))
    {
        ++num_cout;
    }

And I do not think this is the right way to do it.... Is there any other way that I can get the SAInterval directly?

Thanks!

Yue Gan
_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev

---

René Rahn
Ph.D. Student
--------------------------------
Tel:  (+49) 30 838 75137
Mail: rene.rahn@fu-berlin.de
--------------------------------
Institute of Computer Science
Algorithmic Bioinformatics (ABI)
--------------------------------
Freie Universität Berlin
Takustraße 9
14195 Berlin
--------------------------------

thread
date
  • seqan-dev - September 2015 - 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