YuLab-SMU / GOSemSim

:golf: GO-terms Semantic Similarity Measures
https://yulab-smu.top/biomedical-knowledge-mining-book/
58 stars 26 forks source link

geneSim Function Error #21

Closed BradBalderson closed 6 years ago

BradBalderson commented 6 years ago

Hi,

I tested the geneSim function with the following code and get the output:

geneSim("6194", "4502", ont='MF', organism='human', measure="Wang") Error in geneSim("6194", "4502", ont = "MF", organism = "human", measure = "Wang") : unused arguments (ont = "MF", organism = "human")

Removing the 'ont' and 'organism' inputs I get:

geneSim("6194", "4502", measure="Wang") Error in gene2GO(gene1, semData, dropCodes = drop) : argument "semData" is missing, with no default

I also repeated this and got the same output using different entrez IDs ( particularly "241", and "2561"). This was with GOSemSim version 1.6.8 as downloaded from Bioconductor. I also replicated the same error with GOSemSim version 2.7.0 (downloaded and installed from source in this github).

Help with this would be really appreciated.

My session info:

sessionInfo() R version 3.5.0 (2018-04-23) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.5 LTS

Matrix products: default BLAS: /usr/local/lib/R/lib/libRblas.so LAPACK: /usr/local/lib/R/lib/libRlapack.so

locale: [1] LC_CTYPE=en_AU.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8
[5] LC_MONETARY=en_AU.UTF-8 LC_MESSAGES=en_AU.UTF-8
[7] LC_PAPER=en_AU.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] parallel stats4 stats graphics grDevices utils datasets [8] methods base

other attached packages: [1] org.Hs.eg.db_3.6.0 amap_0.8-16 GOSemSim_2.7.0
[4] org.Dr.eg.db_3.6.0 AnnotationDbi_1.42.1 IRanges_2.14.10
[7] S4Vectors_0.18.3 Biobase_2.40.0 BiocGenerics_0.26.0

loaded via a namespace (and not attached): [1] Rcpp_0.12.18 GO.db_3.6.0 digest_0.6.15
[4] DBI_1.0.0 RSQLite_2.1.1 BiocInstaller_1.30.0 [7] blob_1.1.1 tools_3.5.0 bit64_0.9-7
[10] bit_1.1-14 compiler_3.5.0 pkgconfig_2.0.1
[13] tcltk_3.5.0 memoise_1.1.0

GuangchuangYu commented 6 years ago

pls refer to the latest online vignette.