Skip to content

Commit

Permalink
Make java actually quiet when requested. Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
s-andrews committed Aug 25, 2020
1 parent 0d80d9b commit 3ce725c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion sleuth.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ def run_snp_calling(options):
if options.quiet:
quiet_value = "true"

subprocess.run([options.java,"-cp",joined_classpath,f'-Dquiet="{quiet_value}',"uk/ac/babraham/CellLineSleuth/CellLineSleuthApplication",options.snpfile, options.bamfile,outfile], check=True)
command_options = [options.java,"-cp",joined_classpath,f'-Dquiet={quiet_value}',"uk/ac/babraham/CellLineSleuth/CellLineSleuthApplication",options.snpfile, options.bamfile,outfile]

#print(f"Command options are {command_options}")

subprocess.run(command_options, check=True)

return outfile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CellLineSleuthApplication {
private CellLineCollection cells;

public CellLineSleuthApplication (File snpFile, File bamFile, File outFile) {

if (System.getProperty("quiet").equals("true")) {
CellLineSleuthApplication.QUIET = true;
}
Expand Down

0 comments on commit 3ce725c

Please sign in to comment.