Skip to content

Commit

Permalink
cwltool compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdang989 committed Jul 23, 2018
1 parent d0c5e49 commit 2efc681
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions topmed-workflows/alignment/steps/post-align.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ arguments:
while(i<L && a1.charAt(i)=== a2.charAt(i)) i++;
return a1.substring(0, i);
}
path_list = []
var path_list = []
inputs.alignment_files.forEach(function(f){return path_list.push(f.path.replace(/\\/g,'/').replace( /.*\//, '' ))})
common_prefix = sharedStart(path_list)
var common_prefix = sharedStart(path_list)
if (common_prefix.length >0){
return common_prefix.concat(".recab.cram")
} else {
Expand Down Expand Up @@ -103,8 +103,7 @@ requirements:
- class: DockerRequirement
dockerPull: 'statgen/alignment:1.0.0'
- class: InitialWorkDirRequirement
listing:
- |-
listing: |-
${
var out = []
out.push(inputs.reference)
Expand Down

0 comments on commit 2efc681

Please sign in to comment.