summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-04-12 00:50:08 +0200
committerAndreas Enge <andreas@enge.fr>2026-08-10 22:07:38 +0200
commit812f14a834f69bb558e2c12fadffcd27aede67fb (patch)
treef3a99d9dab61ab3d329b76941614a1fc329eddd9 /gnu
parent22db95105488e6111db4f8481a77f69612304bab (diff)
gnu: dropseq-tools: Improve style.
* gnu/packages/bioinformatics.scm (dropseq-tools): Run guix style. [arguments]: Use G-expressions. <#:phases>: Improve style of phases 'record-references and 'install, 'install-links. [inputs]: Drop input labels. [description]: Run guix style. Change-Id: Icf50199a850e3f339395279cdd077c950a027065 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bioinformatics.scm220
1 files changed, 110 insertions, 110 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 1911dd82063..82f768cdef1 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -17577,130 +17577,130 @@ contains
17577 (uri "http://mccarrolllab.com/download/1276/") 17577 (uri "http://mccarrolllab.com/download/1276/")
17578 (file-name (string-append "dropseq-tools-" version ".zip")) 17578 (file-name (string-append "dropseq-tools-" version ".zip"))
17579 (sha256 17579 (sha256
17580 (base32 17580 (base32 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
17581 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
17582 ;; Delete bundled libraries 17581 ;; Delete bundled libraries
17583 (modules '((guix build utils))) 17582 (modules '((guix build utils)))
17584 (snippet 17583 (snippet
17585 '(begin 17584 '(begin
17586 (for-each delete-file (find-files "jar/lib" "\\.jar$")) 17585 (for-each delete-file
17586 (find-files "jar/lib" "\\.jar$"))
17587 (delete-file-recursively "3rdParty"))))) 17587 (delete-file-recursively "3rdParty")))))
17588 (build-system ant-build-system) 17588 (build-system ant-build-system)
17589 (arguments 17589 (arguments
17590 `(#:tests? #f ; test data are not included 17590 (list
17591 #:test-target "test" 17591 #:tests? #f ;test data are not included
17592 #:build-target "all" 17592 #:test-target "test"
17593 #:source-dir "public/src/" 17593 #:build-target "all"
17594 #:jdk ,icedtea-8 17594 #:source-dir "public/src/"
17595 #:make-flags 17595 #:jdk icedtea-8
17596 (list ,#~(string-append "-Dpicard.executable.dir=" 17596 #:make-flags
17597 #$(this-package-input "java-picard") 17597 #~(list (string-append "-Dpicard.executable.dir="
17598 "/share/java/")) 17598 #$(this-package-input "java-picard")
17599 #:modules ((ice-9 match) 17599 "/share/java/"))
17600 #:modules `((ice-9 match)
17600 (srfi srfi-1) 17601 (srfi srfi-1)
17601 (guix build utils) 17602 (guix build utils)
17602 (guix build java-utils) 17603 (guix build java-utils)
17603 (guix build ant-build-system)) 17604 (guix build ant-build-system))
17604 #:phases 17605 #:phases
17605 (modify-phases %standard-phases 17606 #~(modify-phases %standard-phases
17606 ;; FIXME: fails with "java.io.FileNotFoundException: 17607 ;; FIXME: fails with "java.io.FileNotFoundException:
17607 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar" 17608 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
17608 (delete 'generate-jar-indices) 17609 (delete 'generate-jar-indices)
17609 ;; All dependencies must be linked to "lib", because that's where 17610 ;; All dependencies must be linked to "lib", because that's where
17610 ;; they will be searched for when the Class-Path property of the 17611 ;; they will be searched for when the Class-Path property of the
17611 ;; manifest is computed. 17612 ;; manifest is computed.
17612 (add-after 'unpack 'record-references 17613 (add-after 'unpack 'record-references
17613 (lambda* (#:key inputs #:allow-other-keys) 17614 (lambda* (#:key inputs #:allow-other-keys)
17614 (mkdir-p "jar/lib") 17615 (mkdir-p "jar/lib")
17615 (let ((dirs (filter-map (match-lambda 17616 (let ((dirs (filter-map
17616 ((name . dir) 17617 (match-lambda
17617 (if (and (string-prefix? "java-" name) 17618 ((name . dir)
17618 (not (string=? name "java-testng"))) 17619 (and (string-prefix? "java-" name)
17619 dir #f))) 17620 (not (string=? name "java-testng"))
17620 inputs))) 17621 dir)))
17621 (for-each (lambda (jar) 17622 inputs)))
17622 (symlink jar (string-append "jar/lib/" (basename jar)))) 17623 (for-each
17623 (append-map (lambda (dir) (find-files dir "\\.jar$")) 17624 (lambda (jar)
17624 dirs))))) 17625 (symlink jar (string-append "jar/lib/" (basename jar))))
17625 ;; There is no installation target 17626 (append-map (lambda (dir)
17626 (replace 'install 17627 (find-files dir "\\.jar$"))
17627 (lambda* (#:key inputs outputs #:allow-other-keys) 17628 dirs)))))
17628 (let* ((out (assoc-ref outputs "out")) 17629 ;; There is no installation target
17629 (bin (string-append out "/bin")) 17630 (replace 'install
17630 (share (string-append out "/share/java/")) 17631 (lambda* (#:key inputs #:allow-other-keys)
17631 (lib (string-append share "/lib/")) 17632 (let* ((bin (string-append #$output "/bin"))
17632 (scripts (list "BAMTagHistogram" 17633 (share (string-append #$output "/share/java/"))
17633 "BAMTagofTagCounts" 17634 (scripts (list "BAMTagHistogram"
17634 "BaseDistributionAtReadPosition" 17635 "BAMTagofTagCounts"
17635 "CollapseBarcodesInPlace" 17636 "BaseDistributionAtReadPosition"
17636 "CollapseTagWithContext" 17637 "CollapseBarcodesInPlace"
17637 "ConvertToRefFlat" 17638 "CollapseTagWithContext"
17638 "CreateIntervalsFiles" 17639 "ConvertToRefFlat"
17639 "DetectBeadSynthesisErrors" 17640 "CreateIntervalsFiles"
17640 "DigitalExpression" 17641 "DetectBeadSynthesisErrors"
17641 "Drop-seq_alignment.sh" 17642 "DigitalExpression"
17642 "FilterBAM" 17643 "Drop-seq_alignment.sh"
17643 "FilterBAMByTag" 17644 "FilterBAM"
17644 "GatherGeneGCLength" 17645 "FilterBAMByTag"
17645 "GatherMolecularBarcodeDistributionByGene" 17646 "GatherGeneGCLength"
17646 "GatherReadQualityMetrics" 17647 "GatherMolecularBarcodeDistributionByGene"
17647 "PolyATrimmer" 17648 "GatherReadQualityMetrics"
17648 "ReduceGTF" 17649 "PolyATrimmer"
17649 "SelectCellsByNumTranscripts" 17650 "ReduceGTF"
17650 "SingleCellRnaSeqMetricsCollector" 17651 "SelectCellsByNumTranscripts"
17651 "TagBamWithReadSequenceExtended" 17652 "SingleCellRnaSeqMetricsCollector"
17652 "TagReadWithGeneExon" 17653 "TagBamWithReadSequenceExtended"
17653 "TagReadWithInterval" 17654 "TagReadWithGeneExon"
17654 "TrimStartingSequence" 17655 "TagReadWithInterval"
17655 "ValidateReference"))) 17656 "TrimStartingSequence"
17656 (for-each mkdir-p (list bin share lib)) 17657 "ValidateReference")))
17657 (install-file "dist/dropseq.jar" share) 17658 (install-file "dist/dropseq.jar" share)
17658 (for-each (lambda (script) 17659 (for-each (lambda (script)
17659 (chmod script #o555) 17660 (chmod script #o555)
17660 (install-file script bin)) 17661 (install-file script bin))
17661 scripts) 17662 scripts)
17662 (substitute* (map (lambda (script) 17663 (with-directory-excursion bin
17663 (string-append bin "/" script)) 17664 (substitute* scripts
17664 scripts) 17665 (("^java")
17665 (("^java") (which "java")) 17666 (which "java"))
17666 (("jar_deploy_dir=.*") 17667 (("jar_deploy_dir=.*")
17667 (string-append "jar_deploy_dir=" share "\n")))))) 17668 (string-append "jar_deploy_dir=" share "\n")))))))
17668 ;; FIXME: We do this after stripping jars because we don't want it to 17669 ;; FIXME: We do this after stripping jars because we don't want it to
17669 ;; copy all these jars and strip them. We only want to install 17670 ;; copy all these jars and strip them. We only want to install
17670 ;; links. Arguably, this is a problem with the ant-build-system. 17671 ;; links. Arguably, this is a problem with the ant-build-system.
17671 (add-after 'strip-jar-timestamps 'install-links 17672 (add-after 'strip-jar-timestamps 'install-links
17672 (lambda* (#:key outputs #:allow-other-keys) 17673 (lambda _
17673 (let* ((out (assoc-ref outputs "out")) 17674 (let ((lib (string-append #$output "/share/java/lib/")))
17674 (share (string-append out "/share/java/")) 17675 (mkdir-p lib)
17675 (lib (string-append share "/lib/"))) 17676 (for-each (lambda (jar)
17676 (for-each (lambda (jar) 17677 (symlink (readlink jar)
17677 (symlink (readlink jar) 17678 (string-append lib (basename jar))))
17678 (string-append lib (basename jar)))) 17679 (find-files "jar/lib" "\\.jar$"))))))))
17679 (find-files "jar/lib" "\\.jar$"))))))))
17680 (inputs 17680 (inputs
17681 `(("jdk" ,icedtea-8) 17681 (list icedtea-8
17682 ("java-picard" ,java-picard-2.10.3) 17682 java-picard-2.10.3
17683 ("java-log4j-1.2-api" ,java-log4j-1.2-api) 17683 java-log4j-1.2-api
17684 ("java-commons-math3" ,java-commons-math3) 17684 java-commons-math3
17685 ("java-commons-jexl2" ,java-commons-jexl-2) 17685 java-commons-jexl-2
17686 ("java-commons-collections4" ,java-commons-collections4) 17686 java-commons-collections4
17687 ("java-commons-lang2" ,java-commons-lang) 17687 java-commons-lang
17688 ("java-commons-io" ,java-commons-io) 17688 java-commons-io
17689 ("java-snappy-1.0.3-rc3" ,java-snappy-1) 17689 java-snappy-1
17690 ("java-guava" ,java-guava) 17690 java-guava
17691 ("java-la4j" ,java-la4j) 17691 java-la4j
17692 ("java-biojava-core" ,java-biojava-core-4.0) 17692 java-biojava-core-4.0
17693 ("java-biojava-alignment" ,java-biojava-alignment-4.0) 17693 java-biojava-alignment-4.0
17694 ("java-jdistlib" ,java-jdistlib) 17694 java-jdistlib
17695 ("java-simple-xml" ,java-simple-xml) 17695 java-simple-xml
17696 ("java-snakeyaml" ,java-snakeyaml))) 17696 java-snakeyaml))
17697 (native-inputs 17697 (native-inputs (list unzip java-testng))
17698 (list unzip java-testng))
17699 (home-page "http://mccarrolllab.com/dropseq/") 17698 (home-page "http://mccarrolllab.com/dropseq/")
17700 (synopsis "Tools for Drop-seq analyses") 17699 (synopsis "Tools for Drop-seq analyses")
17701 (description "Drop-seq is a technology to enable biologists to 17700 (description
17702analyze RNA expression genome-wide in thousands of individual cells at 17701 "Drop-seq is a technology to enable biologists to analyze RNA expression
17703once. This package provides tools to perform Drop-seq analyses.") 17702genome-wide in thousands of individual cells at once. This package provides
17703tools to perform Drop-seq analyses.")
17704 (license license:expat))) 17704 (license license:expat)))
17705 17705
17706(define-public pigx-rnaseq 17706(define-public pigx-rnaseq