wcd: wcd

View source: R/main.R

wcdR Documentation

wcd

Description

Calculate weighted co-publication distance given a list of PubMed IDs (PMIDs) and an annotation file containing GeneID and PMID links.

Usage

wcd(pmids, annot, year = as.integer(format(Sys.Date(), "%Y")),
  weighted = TRUE)

Arguments

pmids

A one-column tibble containing the total list of PMID accessions in the topic under consideration. A test file is provided in the package (test_pmids) for format requirement.

annot

A tibble of GeneID x PMID relationships, cite counts, and pub year. A test file containing 100,000 relationships is provided in the package (test_annotation) for format requirement.

year

integer() An integer specifying the cutoff year. DEFAULT is now

weighted

logical() Whether to calculate weighted co-publication factor (T) or non-weighted co-publication factor (F). DEFAULT is T

Examples

wcd(pmids = test_pmids, annot = test_annotation)

ed-lau/calcWCD documentation built on Aug. 6, 2023, 4:15 p.m.