Skip to content

Commit

Permalink
forget to add JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed Aug 17, 2024
1 parent 02ce119 commit e6f60df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/loaders/compute_tools/bbmap/bbmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def _run_bbmap_single(
output_dir: Path,
threads_per_tool_run: int,
debug: bool) -> None:

metadata_file = output_dir / TOOL_METADATA
if metadata_file.exists():
print(f"Skipping {source_file} as it has already been processed.")
Expand All @@ -28,6 +27,8 @@ def _run_bbmap_single(
'stats.sh',
'in=' + str(source_file),
'out=' + str(output_dir / 'result.json'),
'format=8', # output in JSON format
'overwrite=true'
]

run_command(command, output_dir if debug else None)
Expand All @@ -37,7 +38,8 @@ def _run_bbmap_single(
'version': '39.06',
'command': command,
'data_id': data_id,
'source_file': str(source_file),}
'source_file': str(source_file),
}
create_tool_metadata(output_dir, metadata)


Expand Down

0 comments on commit e6f60df

Please sign in to comment.