https://github.com/ctlab/phantasus
Revision 44656149198007189ebc600ddfbd19539e86be1f authored by Vladislav Kamenev on 28 January 2019, 10:05:53 UTC, committed by Vladislav Kamenev on 28 January 2019, 10:05:53 UTC
1 parent 155b528
Tip revision: 44656149198007189ebc600ddfbd19539e86be1f authored by Vladislav Kamenev on 28 January 2019, 10:05:53 UTC
1.3.3
1.3.3
Tip revision: 4465614
probeDataset.R
probeDataset <- function (es, query) {
exprsIndices <- query$exprs;
fDataQuery <- query$fData;
response <- list()
response[['dims']] <- dim(exprs(es))
response[['fvarLabels']] <- colnames(fData(es))
response[['probe']] <- exprs(es)[exprsIndices]
response[['fdata']] <- list()
if (!is.null(nrow(fDataQuery))) {
for(i in seq_len(nrow(fDataQuery))) {
row <- fDataQuery[i,]
response[['fdata']][[row$name]] <- fData(es)[[row$name]][row$indices[[1]]]
}
}
jsonlite::toJSON(response)
}
Computing file changes ...