From ca1906836ad048c4f8127edf78013079b15ef6a5 Mon Sep 17 00:00:00 2001 From: Jose Espinosa-Carrasco Date: Thu, 9 May 2024 11:36:13 +0200 Subject: [PATCH 1/2] Update bin/fetch_oma_by_sequence.py --- bin/fetch_oma_by_sequence.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/fetch_oma_by_sequence.py b/bin/fetch_oma_by_sequence.py index 637db01..f500eb1 100755 --- a/bin/fetch_oma_by_sequence.py +++ b/bin/fetch_oma_by_sequence.py @@ -15,7 +15,6 @@ def main() -> None: raise ValueError("Not enough arguments. Usage: fetch_oma_by_sequence.py ") seqs = SeqIO.parse(sys.argv[1], "fasta") - seq = next(seqs).seq # Only use the first sequence, ignore all others From 2f2eaf006d52d2c5ef5af0fab81b5621530a0e70 Mon Sep 17 00:00:00 2001 From: Jose Espinosa-Carrasco Date: Thu, 9 May 2024 11:36:29 +0200 Subject: [PATCH 2/2] Update bin/fetch_oma_by_sequence.py --- bin/fetch_oma_by_sequence.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/fetch_oma_by_sequence.py b/bin/fetch_oma_by_sequence.py index f500eb1..a71717f 100755 --- a/bin/fetch_oma_by_sequence.py +++ b/bin/fetch_oma_by_sequence.py @@ -54,7 +54,6 @@ def main() -> None: raise ValueError("Isoform not found") print(entry["canonicalid"], file=open(sys.argv[2], "w")) - print(entry["species"]["taxon_id"], file=open(sys.argv[3], "w"))