Skip to content

Commit

Permalink
Merge pull request #256 from unipept/fix/wrongly-marking-redundant-pr…
Browse files Browse the repository at this point in the history
…oteomes

Fixed too many proteomes identified as redundant
  • Loading branch information
pverscha authored Oct 18, 2022
2 parents aecca56 + abd1236 commit b468699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logic/communication/proteomes/ProteomeCommunicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b468699

Please sign in to comment.