Revision 4f02356bf15d830e972babb33adbbe26e5b07cce authored by Vladislav Kamenev on 16 October 2018, 14:18:36 UTC, committed by GitHub on 16 October 2018, 14:18:36 UTC
2 parent s af9d405 + f96cbfa
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 1:nrow(fDataQuery)) {
        row <- fDataQuery[i,]
        response[['fdata']][[row$name]] <- fData(es)[[row$name]][row$indices[[1]]]
    }

    jsonlite::toJSON(response)
}
back to top