methplotlib icon indicating copy to clipboard operation
methplotlib copied to clipboard

Remora .bam as a input

Open Fatihlrcfs opened this issue 3 years ago • 7 comments

Hi @wdecoster ,

This is not for error/issue. I am just wondering whether can I use the remora .bam file (MM/ML tag) as input. Also, I could not see the bam input option in the help options. thanks .:)

Fatihlrcfs avatar Nov 03 '22 12:11 Fatihlrcfs

Yes, I did implement support for bam,cram with MM/ML tags, but I have to admit that is insufficiently tested. Feedback is therefore appreciated. The file format is recognized, so you don't need a specific input option.

wdecoster avatar Nov 03 '22 12:11 wdecoster

Hi @wdecoster , I have 2 versions of methplotlib in 2 different env. I used methplotlib -m age21bc15.sorted2_mapped.bam -n age21freqquency -w 15:23000000-25500000 -g gencode.v39.annotation.gtf.gz command. The version 0.8.0 got the error? below Input file age21bc15.sorted2_mapped.bam not recognized! File "pandas/_libs/parsers.pyx", line 544, in pandas._libs.parsers.TextReader.cinit File "pandas/_libs/parsers.pyx", line 633, in pandas._libs.parsers.TextReader._get_header File "pandas/_libs/parsers.pyx", line 847, in pandas._libs.parsers.TextReader._tokenize_rows File "pandas/_libs/parsers.pyx", line 1952, in pandas._libs.parsers.raise_parser_error UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte Then ı tried the same command in version 0.20.1 and got some graph below Found 0 transcript(s) in the region. Found 0 transcript(s) in the region. Found 0 transcript(s) in the region. age21frequency

Fatihlrcfs avatar Nov 03 '22 13:11 Fatihlrcfs

Well it probably wasn't supported yet in the older version.

wdecoster avatar Nov 03 '22 13:11 wdecoster

yes you are right ı tried to see what come up and inform you about the previous version. Also, the latest version looks working but lots of red is normal? thanks

Fatihlrcfs avatar Nov 03 '22 13:11 Fatihlrcfs

hi @wdecoster

I generate 2 graphs (one from nanopolish and one from remora with the same data set) and you can see the below. age24nanopolish age24remora

Fatihlrcfs avatar Nov 03 '22 13:11 Fatihlrcfs

@wdecoster I'm wondering if this has been addressed further as I'm also interested in using what is now the official base caller's output (dorado) with your tool.

Ge0rges avatar Aug 30 '23 00:08 Ge0rges

Thanks for reminding me. I will follow up on this, probably next week.

wdecoster avatar Sep 01 '23 08:09 wdecoster