in reply to Merging intervals; Chaining intervals

I don't understand bioinformatics in such a detail (despite participating in Rosalind.info), so let me ask: in Problem 1, why are B2 and A3 merged, but not A1 and B1? B2 and A3 are separated by 1000, A1 and B1 are separated by 8000, which is still less than 10K.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Merging intervals; Chaining intervals
by onlyIDleft (Scribe) on Sep 10, 2018 at 13:54 UTC

    Thank you for your insightful question. I added a comment line in my original post, also copy / pasted below. You understand bioinfromatics plenty :) Your thoughts about how to go about this parsing , after my update? Thanks!

    # A1 and B1 are not merged here because B1 and A2 overlap, and have no distance of separation between them, and therefore, the pairing of B1 with A2 is prioritized over pairing of B1 with A1

Re^2: Merging intervals; Chaining intervals
by Anonymous Monk on Sep 10, 2018 at 12:27 UTC
    I don't understand bioinformatics in such a detail
    Neither do so called bioinformaticians