Revision 22f39e5e474c3c4f77a63ca59d26da9e8a6edddd authored by Alexey Sergushichev on 20 December 2019, 16:39:40 UTC, committed by Alexey Sergushichev on 20 December 2019, 16:39:40 UTC
1 parent 27d7ae0
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 ...