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 the option to accept GFF in `gff` subcomand #26

Closed lpantano closed 6 years ago

lpantano commented 6 years ago

Allow GFF as an input in gff subcommand:

https://github.com/miRTop/mirtop/blob/dev/mirtop/gff/__init__.py#L25

And create the function to read the file. It should return a list being each line (not the header):

hsa-let-7a-1    miRBase21   isomiR  4   26  0   +   .   Read hsa-let-7a-5p.sA.t.ATGAGGTAGTAGGTTGTATAGT; UID bhJJ5WJL2; Name hsa-let-7a-5p; Parent hsa-let-7a-1; Variant iso_5p:+1,iso_3p:-1; Cigar 22M; Expression 11; Filter Pass; Hits 1;

an element like:

[column9-UID,  column1, COLDATA-header, column9-Expression, $line]