Skip to content

Commit

Permalink
get_genes return aliases and some doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oganm committed Feb 13, 2024
1 parent 4ac7a55 commit cb14520
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 32 deletions.
20 changes: 12 additions & 8 deletions R/processors.R
Original file line number Diff line number Diff line change
Expand Up @@ -557,17 +557,18 @@ processElements <- function(d) {
#' The fields of the output data.table are:
#'
#' \itemize{
#' \item \code{gene.Symbol}: Symbol for the gene
#' \item \code{gene.Ensembl}: Ensembl ID for the gene
#' \item \code{gene.symbol}: Symbol for the gene
#' \item \code{gene.ensembl}: Ensembl ID for the gene
#' \item \code{gene.NCBI}: NCBI id for the gene
#' \item \code{gene.Name}: Name of the gene
#' \item \code{gene.MFX.Rank}: Multifunctionality rank for the gene
#' \item \code{taxon.Name}: Name of the species
#' \item \code{taxon.Scientific}: Scientific name for the taxon
#' \item \code{gene.name}: Name of the gene
#' \item \code{gene.aliases}: Gene aliases. Each row includes a vector
#' \item \code{gene.MFX.rank}: Multifunctionality rank for the gene
#' \item \code{taxon.name}: Name of the species
#' \item \code{taxon.scientific}: Scientific name for the taxon
#' \item \code{taxon.ID}: Internal identifier given to the species by Gemma
#' \item \code{taxon.NCBI}: NCBI ID of the taxon
#' \item \code{taxon.Database.Name}: Underlying database used in Gemma for the taxon
#' \item \code{taxon.Database.ID}: ID of the underyling database used in Gemma for the taxon
#' \item \code{taxon.database.name}: Underlying database used in Gemma for the taxon
#' \item \code{taxon.database.ID}: ID of the underlying database used in Gemma for the taxon
#' }
#'
#' @keywords internal
Expand All @@ -577,6 +578,9 @@ processGenes <- function(d) {
gene.ensembl = accessField(d,'ensemblId',NA_character_),
gene.NCBI = accessField(d,"ncbiId",NA_integer_),
gene.name = accessField(d, "officialName",NA_character_),
gene.aliases = d %>% purrr::map(function(x){
x$aliases %>% unlist
}),
# gene.Aliases = d[["aliases"]],
# gene.GO = d[["numGoTerms"]],
# gene.Homologues = d[["homologues"]],
Expand Down
17 changes: 9 additions & 8 deletions man/get_genes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions man/get_platform_element_genes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions man/processGenes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb14520

Please sign in to comment.