You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pr.join() strandedness="same" issue version 0.1.4 #404
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
endrebak commentedon Mar 27, 2026
So the problem is obviously in handling rows without chromosome information. I'll have a look :)
marco-mariotti commentedon Mar 27, 2026
endrebak commentedon Mar 27, 2026
I did not even realize this was the old repository. Thanks for making me aware, Marco.
Is upgrading convenient for you, Michael?
Pin Pandas to <3 to fix incompatibility with pyranges.