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

Re: [Seqan-dev] Merging/Melting a bunch of intervals

<-- thread -->
<-- date -->
  • From: Fabian Buske <f.buske@uq.edu.au>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Thu, 16 Sep 2010 18:41:16 +1000
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: Re: [Seqan-dev] Merging/Melting a bunch of intervals

Hi Knut,

Assume { [4,8], [1,5], [6,10]}

the second and third do not overlap. What should be the result?

[4,10]  ?

or
[1,8] and [6,10]

Neither of them.

The outcome should be the same whatever the order of the original intervals.

Since all of them are overlapping in some direct or indirect way the final result should be [1-10]

1-2-3-4-5
     4-5-6-7-8
         6-7-8-9-10
____________________
1-2-3-4-5-6-7-8-9-10

if there is another set that is completely separated, e.g. {[12,15],[13-17]}, the result should be
[1-10], [12-17]

Best,
Fabian

I start of with a set of intervals. That is a set of pairs of integers defining the interval start and end point. This two integers do not necessarily span the same range in all the intervals in the set.

I then like to merge all overlapping/intersecting intervals. This may be done on the fly while constructing a new data structure.



--
Fabian Buske
Institute for Molecular Bioscience
The University of Queensland Brisbane, Qld. 4072 Australia
Phone: (61)-(7)-334-62608




<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [Seqan-dev] Merging/Melting a bunch of intervals
      • From: Knut Reinert <knut.reinert@fu-berlin.de>
  • References:
    • [Seqan-dev] Merging/Melting a bunch of intervals
      • From: Fabian Buske <f.buske@uq.edu.au>
    • Re: [Seqan-dev] Merging/Melting a bunch of intervals
      • From: Knut Reinert <knut.reinert@fu-berlin.de>
    • Re: [Seqan-dev] Merging/Melting a bunch of intervals
      • From: Fabian Buske <f.buske@uq.edu.au>
    • Re: [Seqan-dev] Merging/Melting a bunch of intervals
      • From: Knut Reinert <knut.reinert@fu-berlin.de>
  • seqan-dev - September 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