diff options
-rw-r--r-- | python/refcat/techreport.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/refcat/techreport.py b/python/refcat/techreport.py index 4223d18..4fe5771 100644 --- a/python/refcat/techreport.py +++ b/python/refcat/techreport.py @@ -20,10 +20,11 @@ class COCIDOIOnly(Refcat): tail -n +2 | cut -d , -f2,3 | perl -F, -lane 'printf qq[%s\n], join ",", sort @F' | - LC_ALL=C sort -S25% | + LC_ALL=C sort -T {tmpdir} -S25% | zstd -c -T0 > {output} """, - input=self.input().path) + input=self.input().path, + tmpdir=self.tmpdir) luigi.LocalTarget(output).move(self.output().path) def output(self): @@ -43,10 +44,11 @@ class BrefDOIOnly(Refcat): parallel --pipe -j 24 --block 10M "jq -R -rc 'fromjson? | [.source_doi, .target_doi] | @tsv'" | tr $'\t' ',' | perl -F, -lane 'printf qq[%s\n], join ",", sort @F' | - LC_ALL=C sort -S25% | + LC_ALL=C sort -T {tmpdir} -S25% | zstd -c -T0 > {output} """, - input=self.input().path) + input=self.input().path, + tmpdir=self.tmpdir) luigi.LocalTarget(output).move(self.output().path) def output(self): |