From abd12362358455b2e708d430e9fea306748cf1ec Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Tue, 18 Oct 2022 15:08:53 +0200 Subject: [PATCH] Fix too many proteomes identified as redundant --- src/logic/communication/proteomes/ProteomeCommunicator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic/communication/proteomes/ProteomeCommunicator.ts b/src/logic/communication/proteomes/ProteomeCommunicator.ts index dfb49dc..28e176b 100644 --- a/src/logic/communication/proteomes/ProteomeCommunicator.ts +++ b/src/logic/communication/proteomes/ProteomeCommunicator.ts @@ -25,9 +25,9 @@ export default class ProteomeCommunicator { // Only the header is present, we didn't find the requested proteome and return null. return null; } else if (resultLines.length === 2) { - // We found the requested proteome, but we are first going to check if its redundant or not. + // We found the requested proteome, but we are first going to check if it's redundant or not. const validProteomes = await NetworkUtils.get( - `https://rest.uniprot.org/proteomes/stream?compressed=false&fields=upid,organism,organism_id,protein_count&format=tsv&query=(${id}) AND (proteome_type=1)` + `https://rest.uniprot.org/proteomes/stream?compressed=false&fields=upid,organism,organism_id,protein_count&format=tsv&query=(${id}) AND ((proteome_type=1) OR (proteome_type=2))` ); // Input data is TSV, so we split the fields by a tab-character.