Skip to content

Commit

Permalink
Add check for Write permission on Dorado socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Adoni5 committed May 9, 2024
1 parent d38d5ab commit 4bf46b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/readfish/plugins/dorado.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ def validate(self) -> None:
raise RuntimeError(
f"The user account running readfish doesn't appear to have permissions to read the dorado base-caller socket. Please check permissions on {self.dorado_params['address']}. See /~https://github.com/LooseLab/readfish/issues/221#issuecomment-1375673490 for more information."
)

if not os.access(socket_path, os.W_OK):
raise RuntimeError(
f"The user account running readfish doesn't appear to have permissions to write to the dorado base-caller socket. Please check permissions on {self.dorado_params['address']}. See /~https://github.com/LooseLab/readfish/issues/221#issuecomment-1375673490 for more information."
)
# If we are connected to a live run, test if the base-caller model is acceptable.
# Connected to a live run via the minknow_api - get supported basecall and barcoding kits from the run info.
# Check them against provided values
Expand Down

0 comments on commit 4bf46b4

Please sign in to comment.