-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different MLST species scheme map versions Write to stderr number samples FAIL
- Loading branch information
1 parent
697c1d1
commit 7d0a8de
Showing
2 changed files
with
51 additions
and
17 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 |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
INNUca.py - INNUENDO quality control of reads, de novo assembly and contigs quality assessment, and possible contamination search | ||
<https://github.com/B-UMMI/INNUca> | ||
Copyright (C) 2016 Miguel Machado <[email protected]> | ||
Copyright (C) 2017 Miguel Machado <[email protected]> | ||
Last modified: April 03, 2017 | ||
Last modified: June 21, 2017 | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -70,7 +70,7 @@ def get_trueCoverage_config(skipTrueCoverage, trueConfigFile, speciesExpected, s | |
|
||
|
||
def main(): | ||
version = '2.5' | ||
version = '2.6' | ||
args = utils.parseArguments(version) | ||
|
||
general_start_time = time.time() | ||
|
@@ -163,9 +163,8 @@ def main(): | |
scheme = 'unknown' | ||
if not args.skipMLST and not args.skipSPAdes: | ||
scheme = mlst.getScheme(args.speciesExpected) | ||
|
||
# Get path to blastn | ||
mlst.getBlastPath() | ||
# Print path to blastn | ||
mlst.getBlastPath() | ||
|
||
# Get trueCoverage_ReMatCh settings | ||
trueCoverage_config = get_trueCoverage_config(args.skipTrueCoverage, args.trueConfigFile.name if args.trueConfigFile is not None else None, args.speciesExpected, script_path) | ||
|
@@ -260,6 +259,9 @@ def main(): | |
# Check whether INNUca.py run at least one sample successfully | ||
if number_samples_successfully == 0: | ||
sys.exit('No samples run successfully!') | ||
else: | ||
if number_samples_pass < number_samples_successfully: | ||
sys.stderr.write('{fail_samples} samples FAIL INNUca.py analysis'.format(fail_samples=(number_samples_successfully - number_samples_pass))) | ||
|
||
|
||
def get_sample_args_fastq(fastq_files_list, outdir, pairEnd_filesSeparation_list): | ||
|
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