Skip to content

Commit dd3242a

Browse files
committed
Merge branch 'master' into bugfixes
2 parents 9a598e6 + c70bd53 commit dd3242a

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Copyright 2014, 2015 The Hyve B.V.
2-
# Copyright 2014 Janssen Research & Development, LLC.
32
#
43
# This file is part of tranSMART R Client: R package allowing access to
54
# tranSMART's data via its RESTful API.
@@ -28,7 +27,7 @@ getPatientSet <- function(id) {
2827
}
2928
.ensureTransmartConnection()
3029

31-
patientSet <- .transmartGetJSON(paste("/patient_sets/", id, sep=''))
30+
patientSet <- .transmartGetJSON(paste0("/patient_sets/", id))
3231

3332
# Don't expose id, it should not be used and will be removed from a future version of rest-api
3433
# COMPAT: remove this block if support for the old rest-api is dropped.

R/getSubjects.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ getSubjects <- function(study.name, as.data.frame = TRUE) {
3131
subjectIDs <- sapply(listOfSubjects, FUN = function(x) { x$inTrialId })
3232
names(listOfSubjects) <- subjectIDs
3333

34+
# Don't expose id, it should not be used and will be removed from a future version of rest-api
35+
# COMPAT: remove this block if support for the old rest-api is dropped.
36+
if (length(listOfSubjects) && "id" %in% names(listOfSubjects[[1]])) {
37+
for (i in seq_along(patientSet$patients)) {
38+
listOfSubjects[[i]]$id <- NULL
39+
}
40+
}
41+
3442
if (as.data.frame) return(.listToDataFrame(listOfSubjects))
3543
listOfSubjects
3644
}

man/transmartRClient-package.Rd

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,18 @@ RESTful API. The R client currently allows a user to retrieve both clinical
1212
and high dimensional data (to which the user is authorized to access).
1313
}
1414
\details{
15-
\tabular{ll}{
16-
Package: \tab transmartRClient\cr
17-
Type: \tab Package\cr
18-
Version: \tab 0.2\cr
19-
Date: \tab 2014-02-26\cr
20-
License: \tab GPL-3 and higher \cr
21-
}
22-
23-
\cr
24-
25-
The following functions are available in the package:
15+
16+
The following functions are available in the package:
2617
\tabular{l}{
2718
\code{\link{connectToTransmart}}\cr
2819
\code{\link{getStudies}}\cr
2920
\code{\link{getSubjects}}\cr
3021
\code{\link{getConcepts}}\cr
3122
\code{\link{getObservations}}\cr
3223
\code{\link{getHighdimData}}\cr
24+
\code{\link{highdimInfo}}\cr
25+
\code{\link{getPatientSet}}\cr
3326
\code{\link{getPatientSetID}}\cr
34-
3527
}
3628
}
3729

0 commit comments

Comments
 (0)