Skip to content
Snippets Groups Projects
Commit 86393885 authored by Noordijk, Ben's avatar Noordijk, Ben
Browse files

Opens path object properly now

parent c11af51a
No related branches found
No related tags found
1 merge request!3Added data preparation, hyperparameter optimisation, benchmarking code and k-mer library visualisation
......@@ -15,7 +15,7 @@ def parse_blast_xml(file_path):
percent identity of best hsp, alignment length of best hsp,
species_id
"""
with open(file_path, 'r') as f:
with file_path.open() as f:
blast = Bio.Blast.NCBIXML.read(f)
file_name = file_path.name.replace('_0.xml', '.fast5')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment