Skip to content

Commit

Permalink
Merged from test, fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Slotta committed May 13, 2019
2 parents c98fadc + da32519 commit 899ffc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/pgap.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def create_inputfile(self, local_input):
f.write(u'supplemental_data: { class: Directory, location: /pgap/input }\n')
if (self.params.report_usage != 'none'):
f.write(u'report_usage: {}\n'.format(self.params.report_usage))
if (self.params.ignore_all_errors != 'none'):
if (self.params.ignore_all_errors == 'true'):
f.write(u'ignore_all_errors: {}\n'.format(self.params.ignore_all_errors))
f.flush()
return yaml
Expand Down Expand Up @@ -239,6 +239,7 @@ def output_reader(proc, outq):
except subprocess.TimeoutExpired:
print('docker did not exit cleanly.')
t.join()
return proc.returncode

class Setup:

Expand Down Expand Up @@ -360,7 +361,6 @@ def get_ignore_all_errors(self):
return 'true'
else:
return 'false'
return 'none' # do we need this in Python? obviously code never reaches this

def get_timeout(self):
def str2sec(s):
Expand Down Expand Up @@ -460,9 +460,12 @@ def main():

params = Setup(args)

retcode = 0
if args.input:
p = Pipeline(params, args.input)
p.launch()
retcode = p.launch()

sys.exit(retcode)

if __name__== "__main__":
main()
2 changes: 2 additions & 0 deletions wf_common.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ steps:
input: Prepare_Unannotated_Sequences_asnvalidate/o
xpath_fail: {default: '//*[
( @severity="ERROR" or @severity="REJECT" )
and not(contains(@code, "SEQ_DESCR_UnwantedCompleteFlag"))
and not(contains(@code, "SEQ_PKG_NucProtProblem"))
and not(contains(@code, "SEQ_INST_InternalNsInSeqRaw"))
and not(contains(@code, "GENERIC_MissingPubRequirement"))
Expand Down Expand Up @@ -832,6 +833,7 @@ steps:
input: Final_Bacterial_Package_std_validation/outval
xpath_fail: {default: '//*[
( @severity="ERROR" or @severity="REJECT" )
and not(contains(@code, "SEQ_DESCR_UnwantedCompleteFlag"))
and not(contains(@code, "SEQ_PKG_NucProtProblem"))
and not(contains(@code, "SEQ_INST_InternalNsInSeqRaw"))
and not(contains(@code, "GENERIC_MissingPubRequirement"))
Expand Down

0 comments on commit 899ffc5

Please sign in to comment.