Skip to content

Commit

Permalink
Merge pull request #187 from bigomics/fix-annot-issue-ENTREZID
Browse files Browse the repository at this point in the history
fix-annotation-probetype-entrezid
  • Loading branch information
ESCRI11 authored Nov 20, 2024
2 parents 53e9c8b + b622855 commit 78cbfff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/pgx-annot.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ getGeneAnnotation.ANNOTHUB <- function(
jj <- match(names(locs), annot$ENTREZID)
annot$MAP <- NA
annot$MAP[jj] <- unname(locs)
cls <- setdiff(colnames(annot), "ENTREZID")
annot <- annot[, cls, drop = FALSE]
if (probe_type != "ENTREZID") {
cls <- setdiff(colnames(annot), "ENTREZID")
annot <- annot[, cls, drop = FALSE]
}
}

# some organisms do not provide symbol but rather gene name (e.g. yeast)
Expand Down

0 comments on commit 78cbfff

Please sign in to comment.