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

Accept `N` character for UID creation #24

Closed lpantano closed 6 years ago

lpantano commented 6 years ago

The main code is here align function:

https://github.com/miRTop/mirtop/blob/dev/mirtop/mirna/realign.py#L150

The function should return the first sequence without N character. If find one, it should take the corresponding character from the second sequence in the function.

Try this to look at the current output:

https://github.com/miRTop/mirtop/blob/dev/test/test_functions.py#L83

For instance in this case:

align("TGANGTAGTAGGTTGTATAGTT", "TGAGGTAGTAGGTTGTATAGTT")

It should give:

('TGAGGTAGTAGGTTGTATAGTT', 'TGAGGTAGTAGGTTGTATAGTT', 22.0, 0, 22)

Feel free to ask any question.