aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/refcat/tasks.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/refcat/tasks.py b/python/refcat/tasks.py
index ef5138d..f4aacb1 100644
--- a/python/refcat/tasks.py
+++ b/python/refcat/tasks.py
@@ -396,6 +396,21 @@ class ReleaseIdentDOIList(Refcat):
return luigi.LocalTarget(path=self.path(ext="tsv"))
+class ReleaseIdentDOIMapping(Refcat):
+ """
+ Create a mapping database from release ident to DOI.
+ """
+ def requires(self):
+ return ReleaseIdentDOIList()
+
+ def run(self):
+ output = shellout("""tabby -C -o {output} {input}""", input=self.input().path)
+ luigi.LocalTarget(output).move(self.output().path)
+
+ def output(self):
+ return luigi.LocalTarget(path=self.path(ext="db"))
+
+
class UnmatchedRefs(Refcat):
"""
File with not yet considered refs (e.g. no title, doi, ...); around