Skip to content

Commit

Permalink
Omit paralogs that are raw accessions
Browse files Browse the repository at this point in the history
  • Loading branch information
eweitz committed Jan 5, 2022
1 parent ee6469d commit 20a0121
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/js/kit/related-genes.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,16 @@ async function fetchParalogs(annot, ideo) {
const homologs = ensemblHomologs.data[0].homologies;

// Fetch positions of paralogs
const annots =
let annots =
await fetchParalogPositionsFromMyGeneInfo(homologs, annot, ideo);

// Omit genes named like "AC113554.1", which is an "accession.version".
// Such accVers are raw and poorly suited here.
annots = annots.filter(annot => {
const isAccVer = annot.name.match(/AC[0-9.]+$/);
return !isAccVer;
});

return annots;
}

Expand Down

0 comments on commit 20a0121

Please sign in to comment.