Merge a set of genes in a unique one in order to account for possible aliases

combine.query.results(query, genes, new.name)

Arguments

query

The result of perform.query, perform.query.timeseries of perform.query.from.region

genes

A list of genes to be merged

new.name

A string containing the new name to be used for the new genes

Value

The frequencies of the genes in the cancer related documents and in all the documents retireved on PubMed

Examples

data(query)
combine.query.results(query, c('IDH1', 'IDH2'), 'new_gene')
#>          CitationsGene CitationsGeneInCancer
#> ASXL1              350                   309
#> SETBP1              89                    69
#> TET2               717                   560
#> new_gene          2229                  2007