pod5-file-format icon indicating copy to clipboard operation
pod5-file-format copied to clipboard

How to get POD5 kit name?

Open Shians opened this issue 9 months ago • 1 comments

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.

Shians avatar Mar 11 '25 04:03 Shians

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.

Rohit-Satyam avatar Mar 25 '25 14:03 Rohit-Satyam