Genomic arrays

There are tasks that require mapping some features over an array (i.e. chromosome). Here, I post a simple class in python that can store features over an array. It allows easy additions of the values to it. You need to have numpy installed in order to run it. A simple use is presented. Please remember, it follows the python rules it means the system is zero based and the last position is not included (you need to add 1 to include the last number – in other words, the interval is open on the right or right-open).

 

Leave a Reply

Your email address will not be published. Required fields are marked *