2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
appdirs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
keras,
|
|
|
|
lib,
|
|
|
|
mhcgnomes,
|
|
|
|
nose,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
scikit-learn,
|
|
|
|
tensorflow,
|
|
|
|
tqdm,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mhcflurry";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.1.1";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openvax";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "mhcflurry";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-absIKvcFo6I1Uu0t+l8OLOU/AQ4kD295P4+KVwMAWMc=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# keras and tensorflow are not in the official setup.py requirements but are required for the CLI utilities to run.
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
appdirs
|
|
|
|
keras
|
|
|
|
mhcgnomes
|
|
|
|
pandas
|
|
|
|
pyyaml
|
|
|
|
scikit-learn
|
|
|
|
tensorflow
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# RuntimeError: Missing MHCflurry downloadable file: /homeless-shelter/.local...
|
|
|
|
"test_a1_mage_epitope_downloaded_models"
|
|
|
|
"test_a1_titin_epitope_downloaded_models"
|
|
|
|
"test_a2_hiv_epitope_downloaded_models"
|
|
|
|
"test_basic"
|
|
|
|
"test_caching"
|
|
|
|
"test_class1_neural_network_a0205_training_accuracy"
|
|
|
|
"test_commandline_sequences"
|
|
|
|
"test_correlation"
|
|
|
|
"test_csv"
|
|
|
|
"test_downloaded_predictor_gives_percentile_ranks"
|
|
|
|
"test_downloaded_predictor_invalid_peptides"
|
|
|
|
"test_downloaded_predictor_is_savable"
|
|
|
|
"test_downloaded_predictor_is_serializable"
|
|
|
|
"test_downloaded_predictor_small"
|
|
|
|
"test_downloaded_predictor"
|
|
|
|
"test_fasta_50nm"
|
|
|
|
"test_fasta_best"
|
|
|
|
"test_fasta"
|
|
|
|
"test_merge"
|
|
|
|
"test_no_csv"
|
|
|
|
"test_on_hpv"
|
|
|
|
"test_run_cluster_parallelism"
|
|
|
|
"test_run_parallel"
|
|
|
|
"test_run_serial"
|
|
|
|
"test_speed_allele_specific"
|
|
|
|
"test_speed_pan_allele"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# RuntimeError: Missing MHCflurry downloadable file: /homeless-shelter/.local...
|
|
|
|
"test/test_changing_allele_representations.py"
|
|
|
|
"test/test_class1_affinity_predictor.py"
|
|
|
|
"test/test_class1_pan.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mhcflurry" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Peptide-MHC I binding affinity prediction";
|
|
|
|
homepage = "https://github.com/openvax/mhcflurry";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/openvax/mhcflurry/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ samuela ];
|
|
|
|
# ModuleNotFoundError: No module named 'keras.api._v2' as tensorflow is too outdated
|
|
|
|
broken = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|