From 950898df6928c0cdec4f40238eb4da4ec6901bde Mon Sep 17 00:00:00 2001
From: Arun Isaac
Date: Thu, 25 Feb 2021 14:10:50 +0530
Subject: Move generate-cwl to its own repository
---
scripts/fastq2fasta.scm | 6 +-
scripts/generate-cwl.scm | 183 -----------------------------------------------
scripts/yaml.scm | 85 ----------------------
3 files changed, 2 insertions(+), 272 deletions(-)
delete mode 100644 scripts/generate-cwl.scm
delete mode 100644 scripts/yaml.scm
diff --git a/scripts/fastq2fasta.scm b/scripts/fastq2fasta.scm
index 9eaa88f..c014852 100644
--- a/scripts/fastq2fasta.scm
+++ b/scripts/fastq2fasta.scm
@@ -2,11 +2,9 @@
;; fastq2fasta.cwl workflow
;;
-(add-to-load-path "./scripts")
-
(use-modules (srfi srfi-26)
- (generate-cwl)
- (yaml))
+ (generate-cwl generate-cwl)
+ (generate-cwl yaml))
(define threads
(input "threads"
diff --git a/scripts/generate-cwl.scm b/scripts/generate-cwl.scm
deleted file mode 100644
index 1a26dfb..0000000
--- a/scripts/generate-cwl.scm
+++ /dev/null
@@ -1,183 +0,0 @@
-;;
-;; CWL generator
-;;
-;; This file implements a generator to generate CWL files.
-
-(define-module (generate-cwl)
- #:use-module (rnrs records syntactic)
- #:use-module (srfi srfi-1)
- #:use-module (srfi srfi-71)
- #:use-module (ice-9 match)
- #:export (clitool
- workflow
- input
- output
- step
- workflow-output))
-
-(define-record-type ( make-input input?)
- (fields (immutable id input-id)
- (immutable type input-type)
- (immutable default input-default)
- (immutable label input-label)
- (immutable other input-other)))
-
-(define-record-type unspecified-default)
-
-(define* (input id #:key type label (default (make-unspecified-default)) (other '()))
- "Build and return an object."
- (make-input id type default label other))
-
-(define-record-type (