Questions tagged [overlapping-matches]

55 questions
0
votes
3 answers

How do I counting overlapping dimers for multiple sequences?

I have to count the number of overlapping dimers (AA, AG, AC, AT, GA, GG, GC, GT, CC, CG, CA, CT, TT, TA, TG, TC) in multiple sequences using Perl. I wrote the following code but it only works for one sequence. How can I extend it to multiple…
0
votes
0 answers

How can I create a Power BI Stacked Bar Chart that shows the overlap of Categories?

I have a table that looks something like this (but with several more columns I want to be able to filter by): Record ID Record Name Record…
0
votes
1 answer

how to proof for overlapping Dates within groups in oracle sql

I'm using oracle SQL Developer 21.4.3 to try to select records within groups without overlapping dates, however I haven't found a way to do this. This is an example of the table, we have to sets of dates, the technical date when the Record was…
0
votes
2 answers

Finding Overlapping Dates for Matching Brands in R

I got an R data frame and tried to find rows where, simultaneously, the entries of the column data_recalls$Attributed_Brand match and the time periods overlap. The time periods can be found in the columns Before_Date_Recall and After_Date_Recall.…
0
votes
0 answers

Python re.finditer with lookahead and capturing group

I am trying to use re.finditer() to get match objects for overlapping matches by combining with lookahead and capturing group. I wonder if someone can help explain to me how it actually works. Following code: # Create a string with…
0
votes
2 answers

Merging intervals in regex matches

I'm trying to find all types of references inside a text, such as "Appendix 2", "Section 17" or "Schedule 12.2", using python. The issue after finding such matches is that some of them overlap and I would like to join them in a new string or just…
0
votes
0 answers

TypeError: Incorrect type of self (must be 'DescriptorMatcher' or its derivative) with ORB_create()

I would like to compute the homography matrix using cv2. For that, I was using ORB_create() first and followed the discussion in How would I use Orb detector with image homography?. However, while doing matches = bf.match(descs1, descs2), I am…
Tutu
  • 1
  • 3
0
votes
1 answer

Overlapping Time Series Data in Power Query

Hello all you power query wizards, I have a similar question to this question: Timeseries with overlapping timeframes, using just the most recent in Excel Power Query, except my column isn't just a date column, but instead a date/time column. I am…
0
votes
1 answer

Matching overlapping Intervals (Dictionary) in Python

So, I was trying to solve some random problem via python and got stuck on the logic. Here's the problem : I have multiple videos along with their run time or running length. Now, I want to maintain 2 lists. 1 list if "synced" and the other one is…
Xonshiz
  • 1,307
  • 2
  • 20
  • 48
0
votes
3 answers

Overlapping regex matches with replace method

Regex newbie here! Lets say i have two arrays of text and I am searching through a text which says. let text = This is a cool story. I am looking for these phrases in the text. ArrBlue = ["cool story"] ArrGreen = ["This is a cool"] And i want…
user5693773
0
votes
2 answers

How can I Prioritize Overlapping Patterns in RegEx?

I've seen several questions similar, even one i posted myself, but this is rather specific. In regex there is a match pattern. Now say in the same string there are two match patterns that can both match text. It seems my luck always leans towards…
JaedenRuiner
  • 329
  • 4
  • 18
0
votes
1 answer

How to check if a time range is overlapping in Rails ? (Airbnb like application)

I'm trying to develop an Airbnb like Rails application but I'm blocked for the overlapping check system; when we check if the place is already booked or not. The difficulty here is I need to check if the date is overlapping but also the time.…
Lionel Paulus
  • 378
  • 3
  • 6
0
votes
1 answer

How to get this regex include overlapping occurrences, but not too much:-?

I want to get all the occurrences of the pattern '[number]' including their context but I can't. Here is my code: import re text = 'some crap [00][0] some more' regex = r'\[[0-9]*\]' regex = '.{0,10}' + regex + '.{0,10}' occurrences =…
tgwtdt
  • 362
  • 2
  • 15
0
votes
1 answer

How can I check for time span conflicts on each day?

Class A Time: Day 1 => 08:00-09:00 | 11:00-12:00 | 13:00-15:00 | 20:00-21:00 Day 2 => 12:00-13:00 | 14:00-15:00 Day 3 => 08:00-09:00 | 16:00-17:00 | 18:00-19:00 Day 4 => 10:00-11:00 | 12:00-14:00 | 14:00-16:00 Day 5 => 08:00-10:00 |…
0
votes
1 answer

awk - print overlapping ranges

I'm afraid I haven't come across a direct way of doing this, although I tried adapting some provided solutions for similar scenarios (but not quite for what I need). Given this data: 1118 1120 1121 1124 1122 1127 1125 1126 1128 1133 1130 1135 1136…
one-liner
  • 791
  • 1
  • 9
  • 19