-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata editing in pod5 files #100
Comments
Hi @DCossey , There is a short part of the documentation relating to this, but here's a snippet more tailored to your issue. import pod5
# New output file for edited data
with pod5.Writer("output.pod5") as writer:
# Read all records
with pod5.Reader("input.pod5") as reader:
# Iterate over immutable ReadRecords
for record in reader:
# Convert to mutable Read
read = record.to_read()
# Edit the value
read.run_info.sequencing_kit = "sequencing_kit_here"
# Write the edited read
writer.add_read(read) Kind regards, |
I followed the example code and revised a pod5 file successfully. However, when I try to check the content using
|
What command are you running? |
|
Can you try without the quotes please? |
Tried and still the same error.
|
Can you run the following then: pod5 --version
POD5_DEBUG=1 pod5 view output2.pod5 And then share the contents of the pod5 |
ah - this could be an new issue from Can you please ensure you're using If not please re-install |
Yes my |
Fantastic, sorry about that last issue - we're patching this as we speak |
Hi, we were running into an error during dorado basecalling (of recovered files after a failed run) due to incorrect sequencing kit:
[2023-12-15 14:35:04.358] [error] Unknown sequencing_kit: FLO-PRO114M
So then we checked our pod5 files and saw the following:
flow_cell_product_code: FLO-PRO114M
sequencing_kit: FLO-PRO114M
Is it possible to edit the incorrect sequencing kit somehow?
The text was updated successfully, but these errors were encountered: