Giter VIP home page Giter VIP logo

disgenet2r's Introduction

disgenet2r

disgenet2r is an R package to query and expand DisGeNET data (www.disgenet.org), and to visualize the results within R framework. The disgenet2r is designed to query data for DisGeNET v7.0 (May, 2020).

What is this repository for?

This report is used for package distribution and testing until it is ready to be published in BioConductor.

Package' Status

How to start

Installation

The package, disgenet2r can be installed using devtools from this repository:

library(devtools)
install_bitbucket("ibi_group/disgenet2r")

Obtaining the API key

Before using the package, you will need to create a free DisGeNET account at http://disgenet.org/signup. Once you have completed the registration process, use the get_disgenet_api_key function to retrieve your API key.

library(disgenet2r)
disgenet_api_key <- get_disgenet_api_key(
                  email = "[email protected]", 
                  password = "myspwd" )

After retrieving the API key, run the line below so the key is available for all the disgenet2r functions.

Sys.setenv(DISGENET_API_KEY= disgenet_api_key)

Querying DisGeNET:

The following lines show two examples of how DisGeNET can be queried using disgenet2r:

  • Gene Query
library(disgenet2r)
gq <- gene2disease(gene = 3953, 
 vocabulary = "ENTREZ",
    database = "ALL", 
    score = c( 0.1,1)
)
  • Disease Query
library(disgenet2r)
dq <- disease2gene(disease = "C0028754", 
    database = "ALL",
    score = c(0.3,1) 
)

A detailed documentation of the functions of the package is available at http://www.disgenet.org/disgenet2r.

COPYRIGHT

Copyright (C) 2023 IBI group.

disgenet2r is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

disgenet2r is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

How to cite disgenet2r:

Piñero, J., Ramírez-Anguita, J. M., Saüch-Pitarch, J., Ronzano, F., Centeno, E., Sanz, F., & Furlong, L. I. (2020). The DisGeNET knowledge platform for disease genomics: 2019 update. Nucleic acids research, 48(D1), D845-D855.

disgenet2r's People

Contributors

jinfar avatar

Stargazers

 avatar

Watchers

 avatar

disgenet2r's Issues

Help Wanted Cannot get API from disgenet2r

Hello! I got a little problem when I was using disgenet2r.

I used this function to get API from R session
disgenet_api_key <- get_disgenet_api_key(
email = "myemail",
password = "mypassword" )

But I got an error:

$category
[1] "Client error"

$reason
[1] "Not Found"

$message
[1] "Client error: (404) Not Found"

[1] "

Not Found

The requested resource was not found on this server.

"
[1] "no results for the query"

I tried to type the DisGeNET API key from website, and I still got this error

Sys.setenv(DISGENET_API_KEY= "*****************")

$category
[1] "Client error"

$reason
[1] "Not Found"

$message
[1] "Client error: (404) Not Found"

[1] "

Not Found

The requested resource was not found on this server.

"
[1] "no results for the query"

Could you please help me to solve this problem?

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.