miRTop / mirtop

command lines tool to annotate miRNAs with a standard mirna/isomir naming
https://mirtop.readthedocs.org
MIT License
18 stars 21 forks source link

add function to read miRNA GTF file and get a dict as an output #6

Closed lpantano closed 6 years ago

lpantano commented 7 years ago

Introduce a test unit to read the example GTF file at here: https://github.com/miRTop/mirtop/blob/dev/data/examples/annotate/hsa.gff3

The output should be a nested dict like the following:

The two element list refers to the start and the end of the miRNA on the precursor.

Be aware that for negative strands the relative position are calculated different. end is start and start is end.

The unit test should be included here: https://github.com/miRTop/mirtop/blob/dev/test/test_functions.py#L22

lpantano commented 6 years ago

This is done for mirbase, but it would be good to support mirgeneDB at some point soon.