Giter Club home page Giter Club logo

ramp-db's People

Contributors

andyptt21 avatar bofei5675 avatar ewymathe avatar jalalsiddiqui avatar kartiksl avatar mathelab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ramp-db's Issues

Difficulties inputting source IDs

Please include formatting guidelines for inputting sourceids (i.e. Pubchem IDs need "pubchem:" appended, HMDB IDs need 7 digits, not 5)

error messages

Error messages (e.g. pathway analysis on creatinine and leucine), should be better displayed.

Case sensitive Table's name

In Unix/linux environment, the function rampFindSynonymFromSynonym listed in rampQueryHelper.R file meets an error. In fact, the table’s name used is ‘analyteSynonym’ while the table’s name in the database is ‘analytesynonym’. The function meets a case sensitive problem.

one among other faulty lines :

query <- paste0("select synonym as origins,rampId from analyteSynonym where Synonym in(",

Sucrose KEGG ID mismatch

Hello Mathelab,

Thank you for this wonderful app. I was running an analysis of KEGG IDs and I noticed a strange analyte showing up as a result of kegg:C00089. Instead of Sucrose, which corresponds to C00089, a compound named Furan takes its place. Furan is entry number C14275. Please let me know if you are able to resolve kegg:C00089 being wrongfully identified as the analyte Furan.

Thank you,
Manjot Virdee

Documentation ?

Hello,
I've installed RaMP today, it got installed well and i could launch the web services from R. Now, i would like to perform the section "Retrieve pathway from given analytes" using a list of genes and a list of metabolites, but in R, so using RaMP R functions. I didn't find any documentation to do this though... Also, i noticed that when i use this command line, all these RaMP functions appear :
head(ls(getNamespace("RaMP")), n = 100) [1] "analyte_result" "compute_overlap_matrix" "connectToRaMP" [4] "FilterFishersResults" "findAnalyteHasPathway" "findCluster" [7] "genes_result" "getAnalyteFromPathway" "getMetaFromOnto" [10] "getOntoFromMeta" "getPathwayFromAnalyte" "hmdb_gene" [13] "hmdb_metab" "kegg_gene" "kegg_metab" [16] "metabolites_result" "plotCataNetwork" "processData" [19] "rampFastCata" "rampFastPathFromSource" "rampFileOfAnalytes_tab4" [22] "rampFindSourceFromId" "rampFindSourceRampId" "rampFindSynonymFromSynonym" [25] "reactome_gene" "reactome_metab" "runCombinedFisherTest" [28] "runFisherTest" "runRaMPapp" "sysdataObject" [31] "updateOverlapMatrices" "updateOverlapMatrix" "wiki_gene" [34] "wiki_metab" "write_FishersResults" "writePathwaysToCSV"
However, most of them are unvailable, so when i try to use them R doesn't recognize them. I precise that i used this code before testing the functions :
library(RaMP) connectToRaMP(dbname = "ramp", username = "root", conpass = "mycode",host = "localhost")
Another precision, I use MySQL and R in windows 8.1.

How could I perform my analysis using R functions, and why most of them aren't recognized ?
Thanks in advance for your help !

Connections are not closed within command

The following functions connect to the database, but do not close the connection:

  • RaMP::getPathwayFromAnalyte
  • runCombinedFisherTest

When the functions are run multiple times, this causes the following error in RStudio: Cannot allocate a new connection: 16 connections already opened

Prepend ID type to ids

All id types should be prepended to all compound and gene ids.

Here are the id types currently in RaMP:
mysql> select distinct(IDtype) from source where geneOrCompound ="compound";
+------------+
| IDtype |
+------------+
| kegg |
| CAS |
| chebi |
| chemspider |
| hmdb |
| LIPIDMAPS |
| pubchem |
+------------+
7 rows in set (0.14 sec)

mysql> select distinct(IDtype) from source where geneOrCompound ="gene";
+--------------------+
| IDtype |
+--------------------+
| enzymeNomenclature |
| kegg |
| uniprot |
| ensembl |
| entrez |
| hmdb |
+--------------------+
6 rows in set (0.08 sec)

Difficulty installing the RaMP R package in R version 4.0

Hello,

I recently upgraded to R version 4.0.0. I am trying to reinstall the RaMP R package on my system but getting the following error:

devtools::install_github("mathelab/RAMP-DB", force = TRUE)

Downloading GitHub repo mathelab/RAMP-DB@master
✓ checking for file ‘/private/var/folders/s6/smq8l3gx6dvb78q6c47kxz480000gn/T/RtmpWCklX4/remotes48c52b79554d/Mathelab-RaMP-DB-3a96ed8/DESCRIPTION’ (371ms)
─ preparing ‘RaMP’:
✓ checking DESCRIPTION meta-information ...
Warning in grepl(e, files, perl = TRUE, ignore.case = TRUE) :
PCRE pattern compilation error
'unrecognized character follows '
at 'img/.$'
Error in grepl(e, files, perl = TRUE, ignore.case = TRUE) :
invalid regular expression '^\img/.
$'
Execution halted
Error: Failed to install 'RaMP' from GitHub:
System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file ‘/private/var/folders/s6/smq8l3gx6dvb78q6c47kxz480000gn/T/RtmpWCklX4/remotes48c52b79554d/Mathelab-RaMP-DB-3a96ed8/DESCRIPTION’ ... OK
E> * preparing ‘RaMP’:
E> * checking DESCRIPTION meta-information ... OK
E> Warning in grepl(e, files, perl = TRUE, ignore.case = TRUE) :
E> PCRE pattern compilation error
E> 'unrecognized character follows '
E> at 'img/.$'
E> Error in grepl(e, files, perl = TRUE, ignore.case = TRUE) :
E> invalid regular expression '^\img/.
$'
E> Execution halted

Session info:
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8

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

other attached packages:
[1] IntLIM_0.1.0

Any help greatly appreciated.

Issue with DataTables Requesting Unknown Parameter

When using the RaMP implementation at rampdb.ncats.io I ran into this issue when inputting multiple analytes as a batch query to retrieve relevant associated pathways. I clicked Run Pathway Analysis and the system returned the error: "DataTables warning: tableid = DataTables_Table_2 - Requested unknown parameter '1' for row 44, column 1.

Clustering with a small list of metabolites

Clustering throws an error message if you attempt to cluster with a short list of metabolite pathways (e.g. glucose, cholesterol), and then crashes if you retry clustering

class

How many super classes, classes, and sub classes are stored in HMDB? Can we readily extract this information?

Change need to be done based on prepended ids

On the UI, we should remind all users that their ids should be prepended by the source type.
For example, for HMDB id, prepend 'hmdb:'; for ChEBI, prepend 'chebi:'.

For all the datatableOutput, we want the source ID column to have the prefix deleted since previously we manually prepend ID type to each ID.

Warning at app startup

The following warning shows up. It's probably bc it's looking for an input to grep but there is none to start of with.

runRaMPapp()

Listening on http://127.0.0.1:5501
Warning in grepl(input$CataInput, kw_analyte, ignore.case = TRUE) :
input string 60211 is invalid in this locale
Warning in grepl(input$CataInput, kw_analyte, ignore.case = TRUE) :
input string 119030 is invalid in this locale
Warning in grepl(input$CataInput, kw_analyte, ignore.case = TRUE) :
input string 246819 is invalid in this locale

Network visualization not working in app

Tried to make networks with "Glucose" in individual metabolite input and "Glucose" and "Cholesterol" in batch input for tab 4. Got the same error in both instances:

Warning: Error in %>%: could not find function "%>%"
| Stack trace (innermost first):
| 80: RaMP::plotCataNetwork
| 79: func [server/tab4.R#135]
| 78: origRenderFunc
| 77: output$networkmulti
| 2: shiny::runApp
| 1: runRaMPapp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.