Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

R Interface to the CAVD DataSpace

NotificationsYou must be signed in to change notification settings

ropensci/DataSpaceR

Repository files navigation

R build statuscodecovCRAN StatusProject Status: Active – The project has reached a stable, usable state and is being actively developed.lifecycle

DataSpaceR is an R interface tothe CAVDDataSpace, a data sharing and discoverytool that facilitates exploration of HIV immunological data frompre-clinical and clinical HIV vaccine studies.

This package is intended for use by immunologists, bioinformaticians, andstatisticians in HIV vaccine research, or anyone interested in theanalysis of HIV immunological data across assays, studies, and time.

This package simplifies access to the database by taking advantage ofthe standardization of the database to hide all theRlabkey specific code awayfrom the user, and it allows the users to access the study-specificdatasets viaan object-orientedparadigm.

Examples & Documentation

For more detailed examples and detailed documentation, seetheintroductoryvignetteandthe pkgdown site.

For a quick guide of how to use the API, see ourcheat sheet .

Installation

Install from CRAN:

install.packages("DataSpaceR")

You can install the latest development version fromGitHub withdevtools:

# install.packages("devtools")devtools::install_github("ropensci/DataSpaceR")

Register and set DataSpace credential

The database is accessed with the user’s credentials. A netrc filestoring login and password information isrequired.

  1. Create an account and read the termsof use
  2. On your R console, create a netrc file using a function fromDataSpaceR:
library(DataSpaceR)writeNetrc(login="yourEmail@address.com",password="yourSecretPassword",netrcFile="/your/home/directory/.netrc"# use getNetrcPath() to get the default path)

This will create a netrc file in your home directory.

Alternatively, you can manually create a netrc file in thecomputer running R.

  • On Windows, this file should be named_netrc
  • On UNIX, it should be named.netrc
  • The file should be located in the user’s home directory, and thepermissions on the file should be unreadable for everybody exceptthe owner
  • To determine home directory, runSys.getenv("HOME") in R

The following three lines must be included in the.netrc or_netrcfile either separated by white space (spaces, tabs, or newlines) orcommas. Multiple such blocks can exist in one file.

machine dataspace.cavd.orglogin myuser@domain.compassword supersecretpassword

Seeherefor more information aboutnetrc.

Usage

The general idea is that the user:

  1. creates an instance ofDataSpaceConnection class viaconnectDS
  2. browses available studies and groups in the instance viaavailableStudies andavailableGroups
  3. creates a connection to a specific study viagetStudy or a groupviagetGroup
  4. retrieves datasets by name viagetDataset

for example:

library(DataSpaceR)#> By exporting data from the CAVD DataSpace, you agree to be bound by the Terms of Use available on the CAVD DataSpace sign-in page at https://dataspace.cavd.orgcon<- connectDS()con#> <DataSpaceConnection>#>   URL: https://dataspace.cavd.org#>   User: jkim2345@scharp.org#>   Available studies: 273#>     - 77 studies with data#>     - 5049 subjects#>     - 423195 data points#>   Available groups: 6#>   Available publications: 1530#>     - 12 publications with data

connectDS() will create a connection to DataSpace.

available studies can be listed byavailableStudies field

knitr::kable(head(con$availableStudies))
study_nameshort_nametitletypestatusstagespeciesstart_datestrategynetworkdata_availabilityni_data_availability
cor01NAThe correlate of risk targeted intervention study (CORTIS): A randomized, partially-blinded, clinical trial of isoniazid and rifapentine (3HP) therapy to prevent pulmonary tuberculosis in high-risk individuals identified by a transcriptomic correlate of riskPhase IIIInactiveAssays CompletedHumanNANAGH-VAPNANA
cvd232Parks_RV_232​Limiting Dose Vaginal SIVmac239 Challenge of RhCMV-SIV vaccinated Indian rhesus macaques.Pre-Clinical NHPInactiveAssays CompletedRhesus macaque2009-11-24Vector vaccines (viral or bacterial)CAVDNANA
cvd234Zolla-Pazner_Mab_test1 StudyZolla-Pazner_Mab_Test1Antibody ScreeningInactiveAssays CompletedNon-Organism Study2009-02-03Prophylactic neutralizing AbCAVDNANA
cvd235mAbs potencyWeiss mAbs potencyAntibody ScreeningInactiveAssays CompletedNon-Organism Study2008-08-21Prophylactic neutralizing AbCAVDNANA
cvd236neutralization assaysneutralization assaysAntibody ScreeningActiveIn ProgressNon-Organism Study2009-02-03Prophylactic neutralizing AbCAVDNANA
cvd238Gallo_PA_238HIV-1 neutralization responses in chronically infected individualsAntibody ScreeningInactiveAssays CompletedNon-Organism Study2009-01-08Prophylactic neutralizing AbCAVDNANA

available groups can be listed byavailableGroups field

knitr::kable(con$availableGroups)
group_idlabeloriginal_labeldescriptioncreated_bysharednstudies
216micemiceNAreadjkFALSE75cvd468, cvd483, cvd316, cvd331
217CAVD 242CAVD 242This is a fake group for CAVD 242readjkFALSE30cvd242
220NYVAC durability comparisonNYVAC_durabilityCompare durability in 4 NHP studies using NYVAC-C (vP2010) and NYVAC-KC-gp140 (ZM96) products.ehenrichTRUE78cvd281, cvd434, cvd259, cvd277
224cvd338cvd338NAreadjkFALSE36cvd338
228HVTN 505 case control subjectsHVTN 505 case control subjectsParticipants from HVTN 505 included in the case-control analysisdriennaTRUE189vtn505
230HVTN 505 polyfunctionality vs BAMAHVTN 505 polyfunctionality vs BAMACompares ICS polyfunctionality (CD8+, Any Env) to BAMA mfi-delta (single Env antigen) in the HVTN 505 case control cohortdriennaTRUE170vtn505

Note: A group is a curated collection of participants fromfiltering of treatments, products, studies, or species, and it iscreated inthe DataSpaceApp.

Check outthe referencepageofDataSpaceConnection for all available fields and methods.

create an instance ofcvd408

cvd408<-con$getStudy("cvd408")cvd408#> <DataSpaceStudy>#>   Study: cvd408#>   URL: https://dataspace.cavd.org/CAVD/cvd408#>   Available datasets:#>     - Binding Ab multiplex assay#>     - Demographics#>     - Intracellular Cytokine Staining#>     - Neutralizing antibody#>   Available non-integrated datasets:class(cvd408)#> [1] "DataSpaceStudy" "R6"

available datasets can be listed byavailableDatasets field

knitr::kable(cvd408$availableDatasets)
namelabelnintegrated
BAMABinding Ab multiplex assay1080TRUE
DemographicsDemographics20TRUE
ICSIntracellular Cytokine Staining3720TRUE
NAbNeutralizing antibody540TRUE

which will print names of available datasets.

Neutralizing Antibody dataset (NAb) can be retrieved by:

NAb<-cvd408$getDataset("NAb")dim(NAb)#> [1] 540  33colnames(NAb)#>  [1] "participant_id"      "participant_visit"   "visit_day"#>  [4] "assay_identifier"    "summary_level"       "specimen_type"#>  [7] "antigen"             "antigen_type"        "virus"#> [10] "virus_type"          "virus_insert_name"   "clade"#> [13] "neutralization_tier" "tier_clade_virus"    "target_cell"#> [16] "initial_dilution"    "titer_ic50"          "titer_ic80"#> [19] "response_call"       "nab_lab_source_key"  "lab_code"#> [22] "exp_assayid"         "titer_id50"          "titer_id80"#> [25] "nab_response_id50"   "nab_response_id80"   "slope"#> [28] "vaccine_matched"     "study_prot"          "virus_full_name"#> [31] "virus_species"       "virus_host_cell"     "virus_backbone"

Check outthe referencepageofDataSpaceStudy for all available fields and methods.

Note: The package uses aR6 class to represent theconnection to a study and get around some of R’s copy-on-changebehavior.

Meta

  • Pleasereport any issues orbugs.
  • License: GPL-3
  • Get citation information forDataSpaceR in R doingcitation(package = 'DataSpaceR')
  • Please note that this project is released with aContributor CodeofConduct.By participating in this project you agree to abide by its terms.

ropensci_footer

About

R Interface to the CAVD DataSpace

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors6

Languages


[8]ページ先頭

©2009-2025 Movatter.jp