diff options
| author | Ben Woodcroft <donttrustben@gmail.com> | 2015-07-18 17:39:05 +1000 |
|---|---|---|
| committer | Mark H Weaver <mhw@netris.org> | 2015-07-19 15:17:08 -0400 |
| commit | 8fd790eb87a5adaebca9a588c597c51c84fc6cc7 (patch) | |
| tree | 90d0340a66f95897fa1b83a91ff47072d3e38e81 | |
| parent | 3ab98da1bd91a6d211475a18ba628180071b1a35 (diff) | |
gnu: Add metabat.
* gnu/packages/bioinformatics.scm (metabat): New variable.
| -rw-r--r-- | gnu/packages/bioinformatics.scm | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index a28832dfa87..e7eed3a694d 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm | |||
| @@ -1394,6 +1394,85 @@ resolution of binding sites through combining the information of both | |||
| 1394 | sequencing tag position and orientation.") | 1394 | sequencing tag position and orientation.") |
| 1395 | (license license:bsd-3))) | 1395 | (license license:bsd-3))) |
| 1396 | 1396 | ||
| 1397 | |||
| 1398 | (define-public metabat | ||
| 1399 | (package | ||
| 1400 | (name "metabat") | ||
| 1401 | (version "0.26.1") | ||
| 1402 | (source (origin | ||
| 1403 | (method url-fetch) | ||
| 1404 | (uri (string-append | ||
| 1405 | "https://bitbucket.org/berkeleylab/metabat/get/" | ||
| 1406 | version ".tar.bz2")) | ||
| 1407 | (file-name (string-append name "-" version ".tar.bz2")) | ||
| 1408 | (sha256 | ||
| 1409 | (base32 | ||
| 1410 | "0vgrhbaxg4dkxyax2kbigak7w0arhqvw0szwp6gd9wmyilc44kfa")))) | ||
| 1411 | (build-system gnu-build-system) | ||
| 1412 | (arguments | ||
| 1413 | `(#:phases | ||
| 1414 | (modify-phases %standard-phases | ||
| 1415 | (add-after 'unpack 'fix-includes | ||
| 1416 | (lambda _ | ||
| 1417 | (substitute* "SConstruct" | ||
| 1418 | (("/include/bam/bam.h") | ||
| 1419 | "/include/samtools/bam.h")) | ||
| 1420 | (substitute* "src/BamUtils.h" | ||
| 1421 | (("^#include \"bam/bam\\.h\"") | ||
| 1422 | "#include \"samtools/bam.h\"") | ||
| 1423 | (("^#include \"bam/sam\\.h\"") | ||
| 1424 | "#include \"samtools/sam.h\"")) | ||
| 1425 | (substitute* "src/KseqReader.h" | ||
| 1426 | (("^#include \"bam/kseq\\.h\"") | ||
| 1427 | "#include \"samtools/kseq.h\"")) | ||
| 1428 | #t)) | ||
| 1429 | (add-after 'unpack 'fix-scons | ||
| 1430 | (lambda _ | ||
| 1431 | (substitute* "SConstruct" ; Do not distribute README | ||
| 1432 | (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") | ||
| 1433 | "")) | ||
| 1434 | #t)) | ||
| 1435 | (delete 'configure) | ||
| 1436 | (replace 'build | ||
| 1437 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 1438 | (mkdir (assoc-ref outputs "out")) | ||
| 1439 | (zero? (system* "scons" | ||
| 1440 | (string-append | ||
| 1441 | "PREFIX=" | ||
| 1442 | (assoc-ref outputs "out")) | ||
| 1443 | (string-append | ||
| 1444 | "HTSLIB_DIR=" | ||
| 1445 | (assoc-ref inputs "htslib")) | ||
| 1446 | (string-append | ||
| 1447 | "SAMTOOLS_DIR=" | ||
| 1448 | (assoc-ref inputs "samtools")) | ||
| 1449 | (string-append | ||
| 1450 | "BOOST_ROOT=" | ||
| 1451 | (assoc-ref inputs "boost")) | ||
| 1452 | "install")))) | ||
| 1453 | ;; check and install carried out during build phase | ||
| 1454 | (delete 'check) | ||
| 1455 | (delete 'install)))) | ||
| 1456 | (inputs | ||
| 1457 | `(("zlib" ,zlib) | ||
| 1458 | ("perl" ,perl) | ||
| 1459 | ("samtools" ,samtools) | ||
| 1460 | ("htslib" ,htslib) | ||
| 1461 | ("boost" ,boost))) | ||
| 1462 | (native-inputs | ||
| 1463 | `(("scons" ,scons))) | ||
| 1464 | (home-page "https://bitbucket.org/berkeleylab/metabat") | ||
| 1465 | (synopsis | ||
| 1466 | "Reconstruction of single genomes from complex microbial communities") | ||
| 1467 | (description | ||
| 1468 | "Grouping large genomic fragments assembled from shotgun metagenomic | ||
| 1469 | sequences to deconvolute complex microbial communities, or metagenome binning, | ||
| 1470 | enables the study of individual organisms and their interactions. MetaBAT is | ||
| 1471 | an automated metagenome binning software, which integrates empirical | ||
| 1472 | probabilistic distances of genome abundance and tetranucleotide frequency.") | ||
| 1473 | (license (license:non-copyleft "file://license.txt" | ||
| 1474 | "See licence.txt in the distribution.")))) | ||
| 1475 | |||
| 1397 | (define-public miso | 1476 | (define-public miso |
| 1398 | (package | 1477 | (package |
| 1399 | (name "miso") | 1478 | (name "miso") |
