8000 pr.join() strandedness="same" issue version 0.1.4 · Issue #404 · pyranges/pyranges0 · GitHub
[go: up one dir, main page]

Skip to content

pr.join() strandedness="same" issue version 0.1.4 #404

Open

Description

@michaelway

I have updated my version of pyranges from 0.1.2 to 0.1.4 and there is an issue in the .join() function that did not exist in the previous version (when run on the same data). When I merge two pyranges objects (with strand information) and provide the param 'strandedness="same"' I receive the error below:

    exon_join_pr = exon_pr.join(cluster_protein_pr, strandedness="same")
  File "/opt/conda/lib/python3.13/site-packages/pyranges/pyranges_main.py", line 2432, in join
    dfs = pyrange_apply(_write_both, self, other, **kwargs)
  File "/opt/conda/lib/python3.13/site-packages/pyranges/multithreaded.py", line 223, in pyrange_apply
    os = strand_dict[s]
         ~~~~~~~~~~~^^^
KeyError: '.'

WHen I run without any strandeness param and just let it run default it works fine so it looks like something is going wrong with how this keyword argument is being processed.

Activity

  1. endrebak commented on Mar 27, 2026

    @endrebak
    Collaborator

    So the problem is obviously in handling rows without chromosome information. I'll have a look :)

  2. marco-mariotti commented on Mar 27, 2026

    @marco-mariotti
    Member
  3. endrebak commented on Mar 27, 2026

    @endrebak
    Collaborator

    I did not even realize this was the old repository. Thanks for making me aware, Marco.

    Is upgrading convenient for you, Michael?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0