Revision 8ecdb006ab1bbebf6cb0820164875ec660626e1d authored by petrovich on 21 October 2018, 23:26:22 UTC, committed by Vladislav Kamenev on 26 October 2018, 11:35:45 UTC
1 parent b70196b
Raw File
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