Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlap between a point and a segment is broken #183

Closed
golobor opened this issue Jan 22, 2024 · 0 comments
Closed

overlap between a point and a segment is broken #183

golobor opened this issue Jan 22, 2024 · 0 comments
Labels

Comments

@golobor
Copy link
Member

golobor commented Jan 22, 2024

A working example:

In [15]: df_point = pd.DataFrame([['chr1', 1, 1]], columns=['chrom','start','end'])

In [16]: df_segment = pd.DataFrame([['chr1', 1, 2]], columns=['chrom','start','end'])

In [17]: bioframe.overlap(df_segment, df_point)
Out[17]:
  chrom  start  end chrom_  start_  end_
0  chr1      1    2   chr1       1     1

In [18]: bioframe.overlap(df_point, df_segment)
Out[18]:
  chrom  start  end chrom_  start_  end_
0  chr1      1    1   None    <NA>  <NA>

In [19]: bioframe.overlap(df_point, df_point)
Out[19]:
  chrom  start  end chrom_  start_  end_
0  chr1      1    1   None    <NA>  <NA>

This bug further causes bugs when subtracting segments from points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants