2024-01-06 22:07:32 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, boost
|
|
|
|
, bzip2
|
|
|
|
, cereal_1_3_2
|
|
|
|
, cmake
|
|
|
|
, curl
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jemalloc
|
|
|
|
, libgff
|
|
|
|
, libiconv
|
|
|
|
, libstaden-read
|
|
|
|
, pkg-config
|
2024-04-05 15:36:37 +00:00
|
|
|
, tbb_2021_11
|
2024-01-06 22:07:32 +00:00
|
|
|
, xz
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "salmon";
|
2024-03-17 21:44:22 +00:00
|
|
|
version = "1.10.3";
|
2024-01-06 22:07:32 +00:00
|
|
|
|
|
|
|
pufferFishSrc = fetchFromGitHub {
|
|
|
|
owner = "COMBINE-lab";
|
|
|
|
repo = "pufferfish";
|
|
|
|
rev = "salmon-v${finalAttrs.version}";
|
2024-03-17 21:44:22 +00:00
|
|
|
hash = "sha256-g4pfNuc620WQ7UDv8PQHVbbTVt78aGVqcHHMszmBIkA=";
|
2024-01-06 22:07:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "COMBINE-lab";
|
|
|
|
repo = "salmon";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-03-17 21:44:22 +00:00
|
|
|
hash = "sha256-HGcDqu0XzgrU3erHavigXCoj3VKk82ixMLY10Kk9MW4=";
|
2024-01-06 22:07:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Use pufferfish source fetched by nix
|
|
|
|
./fetch-pufferfish.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
(boost.override { enableShared = false; enabledStatic = true; })
|
|
|
|
bzip2
|
|
|
|
cereal_1_3_2
|
|
|
|
curl
|
|
|
|
jemalloc
|
|
|
|
libgff
|
|
|
|
libstaden-read
|
2024-04-05 15:36:37 +00:00
|
|
|
tbb_2021_11
|
2024-01-06 22:07:32 +00:00
|
|
|
xz
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description =
|
|
|
|
"Tool for quantifying the expression of transcripts using RNA-seq data";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "salmon";
|
2024-01-06 22:07:32 +00:00
|
|
|
longDescription = ''
|
|
|
|
Salmon is a tool for quantifying the expression of transcripts
|
|
|
|
using RNA-seq data. Salmon uses new algorithms (specifically,
|
|
|
|
coupling the concept of quasi-mapping with a two-phase inference
|
|
|
|
procedure) to provide accurate expression estimates very quickly
|
|
|
|
and while using little memory. Salmon performs its inference using
|
|
|
|
an expressive and realistic model of RNA-seq data that takes into
|
|
|
|
account experimental attributes and biases commonly observed in
|
|
|
|
real RNA-seq data.
|
|
|
|
'';
|
|
|
|
homepage = "https://combine-lab.github.io/salmon";
|
|
|
|
downloadPage = "https://github.com/COMBINE-lab/salmon/releases";
|
|
|
|
changelog = "https://github.com/COMBINE-lab/salmon/releases/tag/" +
|
|
|
|
"v${finalAttrs.version}";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = [ lib.maintainers.kupac ];
|
|
|
|
};
|
|
|
|
})
|