Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Feb 1, 2024
1 parent bacd615 commit 35bfd13
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions taca/nanopore/ONT_run_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def __init__(self, run_abspath: str):

# Get transfer details, depending on run type and instrument
if hasattr(self, "run_type"):
self.transfer_details = CONFIG["nanopore_analysis"]["run_types"][self.run_type][
"instruments"
][self.instrument]
self.transfer_details = CONFIG["nanopore_analysis"]["run_types"][
self.run_type
]["instruments"][self.instrument]

# Get DB
self.db = NanoporeRunsConnection(CONFIG["statusdb"], dbname="nanopore_runs")
Expand Down Expand Up @@ -174,7 +174,9 @@ def update_db_entry(self, force_update=False):
db_update = {}

# Parse run path
db_update["run_path"] = open(f"{self.run_abspath}/run_path.txt", "r").read().strip()
db_update["run_path"] = (
open(f"{self.run_abspath}/run_path.txt", "r").read().strip()
)

# Parse pore counts
pore_counts = []
Expand Down Expand Up @@ -546,7 +548,7 @@ def run_anglerfish(self):
stream.write("\n".join(full_command))

# Start Anglerfish subprocess
with open(stderr_abspath, 'w') as stderr:
with open(stderr_abspath, "w") as stderr:
process = subprocess.Popen(
f"bash {taca_anglerfish_run_dir}/command.sh",
shell=True,
Expand Down

0 comments on commit 35bfd13

Please sign in to comment.