/usr/share/doc/anfo/example/split-anfo.scm is in anfo 0.98-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | (require 'anfo)
(set-verbosity 'info)
(define (seq a b) (if (eq? a b) '() (cons a (seq (+ a 1) b))))
(define genome "hg18")
(define input-file "Vi-hg18.anfo")
(define output-file "Vi-hg18-chr")
(define sequences
(map (lambda (c) (string-append "chr" c))
(append (map number->string (seq 1 22)) '("X" "Y" "M"))))
(define (output s)
(chain
(require-hit genomes: genome sequences: s)
(write-native (string-append output-file s ".anfo"))))
(anfo-run input-file (apply tee (map output sequences)))
|