From patchwork Wed Nov 13 17:40:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Navid Afkhami X-Patchwork-Id: 70376 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 786FC27BBEA; Wed, 13 Nov 2024 17:42:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6269627BBE2 for ; Wed, 13 Nov 2024 17:42:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBHNX-0002E7-1b; Wed, 13 Nov 2024 12:42:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBHNT-0002BS-Gv for guix-patches@gnu.org; Wed, 13 Nov 2024 12:42:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBHNS-0006MS-ST for guix-patches@gnu.org; Wed, 13 Nov 2024 12:42:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=vev9eJ9m3lvcwpnxt2mh6qGj71fr0SuyzObu86dnJK0=; b=uZNNaYNNQVzisMgLvw+dEAiZ6zhF09afJeH862WPcyNVpd0mD6UhRUUW55RMJuPsMJVyYVl93+j2cSLOmfZZG6D0QJ/+Yjh6tDT2ZV2FlABKF3Cn7ACTYzO7eOlKAHhOwW5C0cESsCylt+rjRKs88G8ZFP0hgIc1fb/KDqhmiG6zXQyAAfAQUDUlOt3yECSC2Wk5V4UMVDRoek9MZAa8pGUHuwGNW622ebWnGE9qHuC1BACWeBOJ/vC6KpY9rYaUxBhRs1sRFGsZn2aBie1XVcdFhEXZpk7ZzAmrfkxNAS3eVvFr7HPcFnOFvU8hBjjuiFObfhJ9TN6QyYCANt3w3Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBHNS-0002Io-C4 for guix-patches@gnu.org; Wed, 13 Nov 2024 12:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74346] [PATCH] gnu: Add python-pybio. Resent-From: Navid Afkhami Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Nov 2024 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74346 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74346@debbugs.gnu.org Cc: Navid Afkhami X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.17315196748765 (code B ref -1); Wed, 13 Nov 2024 17:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Nov 2024 17:41:14 +0000 Received: from localhost ([127.0.0.1]:43497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBHMf-0002HJ-K5 for submit@debbugs.gnu.org; Wed, 13 Nov 2024 12:41:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:43032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBHMc-0002H9-EH for submit@debbugs.gnu.org; Wed, 13 Nov 2024 12:41:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBHMb-0001XY-36 for guix-patches@gnu.org; Wed, 13 Nov 2024 12:41:10 -0500 Received: from c2062.mx.srv.dfn.de ([194.95.238.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBHMZ-0006I5-3j for guix-patches@gnu.org; Wed, 13 Nov 2024 12:41:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-type:content-type:content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received; s=mdc; t=1731519645; x=1733334046; bh=qUpmNlB2szMSofE hn/vSh2QBfYKKQeLQJ8tEnKmaIew=; b=hTdTJCuee5Vlgh2dA4NEIHonHVSKnxj sOO3fPSdlQSTyqu5KKypOZPVafxtc3Bx8QUKCxgeb54qFjd66R1zeajbvsyAaBYW s3n0NaMn6s3+GZMy1VjXkqYG8tWQg6C2fTOcdW8oL+ueV0KEanP2z1GhDusrDuKd Ju/DYnd9f2zQ= Received: from SW-IT-P-EX4.mdc-berlin.net (mgw4.mdc-berlin.de [141.80.113.62]) by c2062.mx.srv.dfn.de (Postfix) with ESMTPS id 5669330016F for ; Wed, 13 Nov 2024 18:40:43 +0100 (CET) Received: from localhost (141.80.121.182) by SW-IT-P-EX4.mdc-berlin.net (141.80.113.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 13 Nov 2024 18:40:42 +0100 From: Navid Afkhami Date: Wed, 13 Nov 2024 17:40:32 +0000 Message-ID: <0209ff8f7b80433fe8ab131a7de32a5ea049bbf3.1731519632.git.navid.afkhami@mdc-berlin.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Originating-IP: [141.80.121.182] X-ClientProxiedBy: SW-IT-P-EX2.mdc-berlin.net (141.80.113.60) To SW-IT-P-EX4.mdc-berlin.net (141.80.113.62) X-TM-AS-Product-Ver: SMEX-14.0.0.3223-9.1.2019-28796.000 X-TM-AS-Result: No-10--4.574900-5.000000 X-TMASE-MatchedRID: Kkkx1MdXpTxYhP20o6vOMFY9XYa1m8xAJ3y+iqiko29rIVA3IGfCC6DE DQa+uiKUGFai+J+ZC8JxQSt0D2Qkz1pR8QrASBNuFm7cDHk2Crynngb1+20nTVtpNa0o3mGFxkW sbim/YsoixP0tTfG5dvzjHgHWpo2nR+dNDaaYGKgnDrpxCH9Hly+ckrkAB5mQU0kk038IUbOG07 wSCjHJ8lraKyAbQ4PMf7fNjyRjqtdZ2LjufjZeDHje+ALpF4D/KAIt2MyjbXoTS0RLNYPEYneaV MHVsUJKfSBnB0jisJVbcBErJ7TzP23Ep5lwkuOg5PkCeM7tNe31VGQ8lr6yrg+bXnHKG3yVW8gh 3wzbqBM58Sarp97J84ckZT5abrxufI5+ZvwQWiMfLbOhyGBvWKtVtD3W+QAOKcejZ8b7u+aPyUm Ljb7zrh6uMkC7hgDAhGwzicyM2IAgwWdr8Q8lHl+Nng5mQGUSIgNPzPSnz4lriwk488+qotqkGs /LBEZa8EFYCHVRuBROWg+GSIftMY4TDtwwKftL X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--4.574900-5.000000 X-TMASE-Version: SMEX-14.0.0.3223-9.1.2019-28796.000 X-TM-SNTS-SMTP: 3990502B9EE2C8A969E72ED5C44110A04A79272AEF6B10E76A3CF1A387C235242000:F Received-SPF: pass client-ip=194.95.238.172; envelope-from=Navid.Afkhami@mdc-berlin.de; helo=c2062.mx.srv.dfn.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/bioinformatics.scm (python-pybio): New variable. Change-Id: I8f5c9cb6c7bb03cbc95386e67d46b1bdd78e01f2 --- gnu/packages/bioinformatics.scm | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) base-commit: 07cd046c209f192032b425d2ee44f6025bff63a1 diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 599d22c51e..ddcb56d0c9 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -3223,6 +3223,57 @@ (define-public python-pybedtools ;; licensed lgpl2.1+ (license (list license:expat license:lgpl2.1+)))) +(define-public python-pybio + (let ((commit "c91fddc483da535d5097364405d76ad9b1bde07f") + (revision "1")) + (package + (name "python-pybio") + (version (git-version "0.3.12" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/grexor/pybio") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s3n1bqp25zf5pzfsj0x1kqr6i2a6iffpb8hkjwhyvjqrxf5d9rk")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ;There are no automated tests + #:phases #~(modify-phases %standard-phases + (add-before 'check 'set-home + ;; The sanity check requires a HOME directory + (lambda _ + (setenv "HOME" "/tmp"))) + (add-after 'unpack 'adjust-requirements + (lambda _ + (substitute* "setup.py" + (("bs4") + "beautifulsoup4")))) + (add-after 'unpack 'build-reproducibly + (lambda _ + (setenv "GUIX_BUILD" "yes") + (substitute* "pybio/__init__.py" + (("^pybio.core.genomes.init\\(\\)" m) + (string-append m + " if not os.getenv('GUIX_BUILD') else None")))))))) + (propagated-inputs (list python-beautifulsoup4 python-numpy + python-psutil python-pysam python-requests)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/grexor/pybio") + (synopsis "Basic genomics toolset") + (description + "This tool provides a Python framework to streamline genomics operations. +It offers a direct interface to Ensembl genome assemblies and annotations, while +also accommodating custom genomes via FASTA/GTF inputs. The primary objective +of pybio is to simplify genome management. It achieves this by providing +automatic download of Ensembl genome assemblies and annotation, provides +Python genomic feature search and sequence retrieval from the managed +genomes, STAR indexing and mapping and more.") + (license license:gpl3+)))) + (define-public python-ega-download-client (package (name "python-ega-download-client")