-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ran black / flake8 / isort, fixed errors, updated .gitignore
- Loading branch information
1 parent
5fde250
commit 9ffb6b2
Showing
16 changed files
with
381 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,7 @@ celerybeat.pid | |
|
||
# Environments | ||
.env | ||
.envrc | ||
.venv | ||
env/ | ||
venv/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
from os import cpu_count | ||
from typing import List | ||
|
||
from ingest_validation_tools.plugin_validator import Validator | ||
from fastq_validator_logic import FASTQValidatorLogic, _log | ||
from ingest_validation_tools.plugin_validator import Validator | ||
|
||
|
||
class FASTQValidator(Validator): | ||
description = "Check FASTQ files for basic syntax and consistency." | ||
cost = 15.0 | ||
|
||
def collect_errors(self, **kwargs) -> List[str]: | ||
threads = kwargs.get('coreuse', None) or cpu_count() // 4 or 1 | ||
_log(f'Threading at {threads}') | ||
threads = kwargs.get("coreuse", None) or cpu_count() // 4 or 1 | ||
_log(f"Threading at {threads}") | ||
validator = FASTQValidatorLogic(verbose=True) | ||
validator.validate_fastq_files_in_path(self.paths, threads) | ||
return validator.errors |
Oops, something went wrong.