Skip to content

Commit

Permalink
Resolve secondaryFiles to a relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHickman committed Sep 8, 2017
1 parent 2c7b2c3 commit f065574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatkcwlgenerator/gen_cwl_arg.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_input_json(argument, options):
if argument['name'] == '--reference_sequence':
cwl_desc['secondaryFiles'] = ['.fai', '^.dict']
elif 'requires' in argument['fulltext'] and 'files' in argument['fulltext']:
cwl_desc['secondaryFiles'] = "$(self.location+'.'+self.basename.split('.').splice(-1)[0].replace('m','i'))"
cwl_desc['secondaryFiles'] = "$(self.basename + self.nameext.replace('m','i'))"

return cwl_desc

Expand Down

0 comments on commit f065574

Please sign in to comment.