diff options
author | Peter Amstutz | 2020-04-21 16:20:10 -0400 |
---|---|---|
committer | Peter Amstutz | 2020-04-21 16:20:10 -0400 |
commit | 61726edb9293fe529e6efbe5bb6f1cc953bb3c4e (patch) | |
tree | 49637a78fb9196221d4d6589c2e763b08687aadf /workflows/pangenome-generate/relabel-seqs.cwl | |
parent | f4c3da88c1233802fea46cc972a81dc3b5b51185 (diff) | |
download | bh20-seq-resource-61726edb9293fe529e6efbe5bb6f1cc953bb3c4e.tar.gz bh20-seq-resource-61726edb9293fe529e6efbe5bb6f1cc953bb3c4e.tar.lz bh20-seq-resource-61726edb9293fe529e6efbe5bb6f1cc953bb3c4e.zip |
Workaround CWL limit by chunking file list
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
Diffstat (limited to 'workflows/pangenome-generate/relabel-seqs.cwl')
-rw-r--r-- | workflows/pangenome-generate/relabel-seqs.cwl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/workflows/pangenome-generate/relabel-seqs.cwl b/workflows/pangenome-generate/relabel-seqs.cwl index 01196f6..c1f17a4 100644 --- a/workflows/pangenome-generate/relabel-seqs.cwl +++ b/workflows/pangenome-generate/relabel-seqs.cwl @@ -26,19 +26,21 @@ requirements: var out = []; for (; i < inputs.readsFA.length; i++) { var block = []; - for (; i < (b*100) && i < inputs.readsFA.length; i++) { + var sub = []; + for (; i < (b*150) && i < inputs.readsFA.length; i++) { block.push(inputs.readsFA[i]); + sub.push(inputs.subjects[i]); } out.push({ entryname: "block"+b, entry: JSON.stringify(block) }); + out.push({ + entryname: "subs"+b, + entry: JSON.stringify(sub) + }); b++; } - out.push({ - entry: JSON.stringify(inputs.subjects), - entryname: "subjects" - }); return out; } hints: |