simplesam icon indicating copy to clipboard operation
simplesam copied to clipboard

x.tags errors when test a bam

Open Frank1219 opened this issue 4 years ago • 2 comments

image Hi, I think you have done a good job. When I tested it, an error was occured, my bam tag information was like this: image please help me check it, thanks so much !

Frank1219 avatar Sep 23 '21 02:09 Frank1219

Thanks for the report. It looks like you should have some tags in the format XX:B:XX. I can't find anything like this in your screenshot, so maybe you can search your file? I did not implement hex array or byte array tags:

https://github.com/mdshw5/simplesam/blob/3d0c873a4538b76db20659f724eefda307f74128/simplesam.py#L573-L574

However if there is a use case for these I think it would be feasible to add a method.

mdshw5 avatar Sep 24 '21 12:09 mdshw5

Thanks for your reply. I had revised the script by your suggestion. It will be loved by more developer if the script can write bam format file.

Frank1219 avatar Sep 24 '21 14:09 Frank1219