pod5-file-format
pod5-file-format copied to clipboard
How to get POD5 kit name?
It would be immensely helpful if this utility could be used to get the POD5 kit name from POD5 files via the CLI. This would enable a workflow for dorado where the kit name could be automatically deduced. At the moment it seems possible to retrieve this information with the following.
reader = pod5.Reader("file.pod5")
reader.run_info_table.read_all()['protocol_name']
Some kind of pod5 run_stats functionality would be very useful.
I think meanwhile they make it happen, yow can create an alias like I did
alias whichkit="python3 -c \"import sys, pod5; temp=pod5.Reader(sys.argv[1]); print(temp.run_info_table.read_all()['protocol_name'])\""
When you save this in ~/.bashrc you can use it like whichkit file.pod5.