Merge pull request #24840 from matthiasbeyer/pr-23111-fixed

diamond: init at 0.8.36

authored by Jörg Thalheim and committed by GitHub 478e9cda 9f2ba156

+63
+41
pkgs/applications/science/biology/diamond/default.nix
··· 1 + { stdenv, fetchurl, cmake, gcc, zlib }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "diamond-0.8.36"; 5 + 6 + src = fetchurl { 7 + url = "https://github.com/bbuchfink/diamond/archive/v0.8.36.tar.gz"; 8 + sha256 = "092smzzjcg51n3x4h84k52ijpz9m40ri838j9k2i463ribc3c8rh"; 9 + }; 10 + 11 + patches = [ 12 + ./diamond-0.8.36-no-warning.patch 13 + ]; 14 + 15 + nativeBuildInputs = [ cmake ]; 16 + buildInputs = [ zlib ]; 17 + 18 + meta = with stdenv.lib; { 19 + description = "Accelerated BLAST compatible local sequence aligner"; 20 + longDescription = '' 21 + A sequence aligner for protein and translated DNA 22 + searches and functions as a drop-in replacement for the NCBI BLAST 23 + software tools. It is suitable for protein-protein search as well as 24 + DNA-protein search on short reads and longer sequences including contigs 25 + and assemblies, providing a speedup of BLAST ranging up to x20,000. 26 + 27 + DIAMOND is developed by Benjamin Buchfink. Feel free to contact him for support (Email Twitter). 28 + 29 + If you use DIAMOND in published research, please cite 30 + B. Buchfink, Xie C., D. Huson, 31 + "Fast and sensitive protein alignment using DIAMOND", 32 + Nature Methods 12, 59-60 (2015). 33 + ''; 34 + homepage = https://github.com/bbuchfink/diamond; 35 + license = { 36 + fullName = "University of Tuebingen, Benjamin Buchfink"; 37 + url = https://raw.githubusercontent.com/bbuchfink/diamond/master/src/COPYING; 38 + }; 39 + maintainers = [ maintainers.metabar ]; 40 + }; 41 + }
+20
pkgs/applications/science/biology/diamond/diamond-0.8.36-no-warning.patch
··· 1 + diff -u -r diamond-0.8.36/src/dp/scalar_traceback.h diamond-0.8.36-patched/src/dp/scalar_traceback.h 2 + --- diamond-0.8.36/src/dp/scalar_traceback.h 2017-02-06 16:32:05.000000000 +0100 3 + +++ diamond-0.8.36-patched/src/dp/scalar_traceback.h 2017-02-23 15:13:24.000000000 +0100 4 + @@ -19,6 +19,7 @@ 5 + #ifndef SCALAR_TRACEBACK_H_ 6 + #define SCALAR_TRACEBACK_H_ 7 + 8 + +#include <cmath> 9 + #include <exception> 10 + #include "../basic/score_matrix.h" 11 + 12 + @@ -31,7 +32,7 @@ 13 + template<> 14 + inline bool almost_equal<float>(float x, float y) 15 + { 16 + - return abs(x - y) < 0.001f; 17 + + return std::abs(x - y) < 0.001f; 18 + } 19 + 20 + template<typename _score>
+2
pkgs/top-level/all-packages.nix
··· 17200 17200 17201 17201 bcftools = callPackage ../applications/science/biology/bcftools { }; 17202 17202 17203 + diamond = callPackage ../applications/science/biology/diamond { }; 17204 + 17203 17205 ecopcr = callPackage ../applications/science/biology/ecopcr { }; 17204 17206 17205 17207 emboss = callPackage ../applications/science/biology/emboss { };