Skip to content

Commit

Permalink
changed to mapIds
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed May 28, 2024
1 parent d8810b4 commit 7218aeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions R/refseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
#' This option first calculates the high-frequent words, and subsequently calculates
#' the occurrences of these words in each gene, and prioritize the genes by them.
#' @param genePlotNum number of genes to be plotted (default: 10)
#' @param multiVals passed to mapIds function when converting ENTREZID to SYMBOL when
#' genePlot is on.
#' @param genePathPlot plot associated genes and pathways (default: NULL)
#' Must be "kegg" or "reactome", automatically set genePlot to TRUE.
#' @param genePathPlotSig threshold for adjusted p-values (default: 0.05)
Expand Down Expand Up @@ -204,7 +206,7 @@ refseq <- function (geneList, keyType="SYMBOL",
showLegend=FALSE,
orgDb=org.Hs.eg.db, edgeLabel=FALSE,
naEdgeColor="grey50", cooccurrence=FALSE,
pvclAlpha=0.95, cl=FALSE,
pvclAlpha=0.95, cl=FALSE, multiVals="first",
ngram=1, plotType="network", onlyTDM=FALSE, stem=FALSE,
colorText=FALSE, corThresh=0.2, genePlot=FALSE,
autoThresh=TRUE, autoNumWords=FALSE,
Expand Down Expand Up @@ -400,10 +402,10 @@ refseq <- function (geneList, keyType="SYMBOL",
if (!is.null(mergeCorpus)) {
stop("Cannot perform genePlot when merging corpus")
}
revID <- AnnotationDbi::select(orgDb,
revID <- AnnotationDbi::mapIds(orgDb,
keys = as.character(fil$Gene_ID),
columns = c("SYMBOL"),
keytype = "ENTREZID")$SYMBOL
column = c("SYMBOL"), multiVals=multiVals,
keytype = "ENTREZID")
row.names(DTM) <- revID
}

Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ The application using Shiny is available [here](https://nsato.shinyapps.io/biote
<p align="center">
<img src="https://github.com/noriakis/software/blob/main/images/wcbn.png?raw=true" width="800px">
</p>
<p align="center">
<img src="https://github.com/noriakis/software/blob/main/images/biofabric.png?raw=true" width="800px">
</p>


### Bugs and errors
If you find bugs or errors, please kindly report them to Issues, or make a pull request, or report it directly to [e-mail](nori@hgc.jp).
4 changes: 4 additions & 0 deletions man/generalf.Rd

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

0 comments on commit 7218aeb

Please sign in to comment.