Skip to content

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

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.

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