Learn R Programming

psygenet2r (version 1.2.0)

psygenetDisease: Query PsyGeNET for given disease(s) and generates an DataGeNET.Psy

Description

Given the name of one or multiple diseases and retrives their information from PsyGeNET and creates an object of type DataGeNET.Psy.

Usage

psygenetDisease(disease, database = "CURATED", score = c(">", 0), verbose = FALSE, warnings = TRUE)

Arguments

disease
Name or vector of names (that can be both code or uml) to specific diseases from PsyGeNET. The diseases non existing in PsyGeNET will be removed from the output.
database
Name of the database that will be queried. It can take the values 'MODELS' to use Comparative Toxigenomics Database, data from mouse and rat; 'GAD' to use Genetic Association Database; 'CTD' to use Comparative Toxigenomics Database, data from human; 'PsyCUR' to use Psychiatric disorders Gene association manually curated; 'CURATED' to use Human, manually curated databases (PsyCUR and CTD); or 'ALL' to use all these databases. Default 'CURATED'.
score
A vector with two elements: 1) character with greather '>' or with lower '<'< code=""> meaing greather or equal and lower or equal; 2) the score to be compared. By default: c('>', 0).
verbose
By default FALSE. Change it to TRUE to get a on-time log from the function.
warnings
By default TRUE. Change it to FALSE to don't see the warnings.

Value

An object of class DataGeNET.Psy

Examples

Run this code
d.alch <- psygenetDisease( "Alcoholism", "CURATED" )

Run the code above in your browser using DataLab