https://github.com/ctlab/phantasus
Raw File
Tip revision: b2cf762bc10e284e0212751c8ea52f93b6fb34d8 authored by Vladislav Kamenev on 29 October 2018, 16:55:09 UTC
ARCHS4 is now subfolder in cache
Tip revision: b2cf762
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()
    for(i in seq_len(nrow(fDataQuery))) {
        row <- fDataQuery[i,]
        response[['fdata']][[row$name]] <- fData(es)[[row$name]][row$indices[[1]]]
    }

    jsonlite::toJSON(response)
}
back to top