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
Thanks for developing the genomic tool stack in python. As a user from R/Bioconductor ecosystem, I would like to get some clarifications on the coordinate system in use.
Here is the current description about the coordinate system from BiocPy's documentation
An IRanges holds a start position and a width, and is most typically used to represent coordinates along some genomic sequence. The interpretation of the start position depends on the application; for sequences, the start is usually a 1-based position, ...
Wanted to clarify if the design is intentional. If so, could we note the different behaviors between BiocPy's and R's IRanges in the documentation? I was wondering if we could also create some utility functions to convert across the coordinate systems, so it's easy to port the existing R scripts that expects a 1-based closed interval.
Thank you again for making the tool!
The text was updated successfully, but these errors were encountered:
Hi, Thank you for reporting this. My best guess is, this is mostly related to how we compute the ends (start + width, start + width -1), we should subtract 1 base to keep the intervals closed and conform to R's IRanges. I'll also perform some tests to make sure thats the case with the methods as well.
Thanks for developing the genomic tool stack in python. As a user from R/Bioconductor ecosystem, I would like to get some clarifications on the coordinate system in use.
Here is the current description about the coordinate system from BiocPy's documentation
This seems to indicate that the BiocPy's coordinate system is 1-based and half open interval, e.g. [start, end).
However, this behavior is different to R's IRanges, where the coordinate system uses a 1-based closed interval, e.g. [start, end]:
Wanted to clarify if the design is intentional. If so, could we note the different behaviors between BiocPy's and R's IRanges in the documentation? I was wondering if we could also create some utility functions to convert across the coordinate systems, so it's easy to port the existing R scripts that expects a 1-based closed interval.
Thank you again for making the tool!
The text was updated successfully, but these errors were encountered: