Skip to content

Conversation

@jvwong
Copy link
Member

@jvwong jvwong commented Nov 12, 2020

  • Add an ISODate to the article citation attribute
  • For related papers selection
    • Exclude reviews
    • Exclude anything that's published more than MAX_AGE_PAPER_YEARS (5) years ago

Just empirically, this drops the number of papers quite severely (e.g. for pmid 30158200 it cuts 72 refs down to 1). Requiring that a contact be available has a lot to do with it.

Refs #858 (comment)

@jvwong jvwong requested a review from maxkfranz November 12, 2020 16:38
const isGoodFit = await Promise.all(papers.map(paperIsGoodFit));

return papers.filter((paper, i) => isGoodFit[i] && hasContact(paper));
return papers.filter((paper, i) => isGoodFit[i] && hasContact(paper)).sort( byPaperDate );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sort doesn't look strictly necessary, but it's probably useful for debugging.

@jvwong jvwong merged commit e4e597c into unstable Nov 13, 2020
@jvwong jvwong deleted the iss858_rank-filter-papers branch November 16, 2020 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants