https://github.com/ctlab/phantasus
Revision 05cb2ad16b95c4d1a388ab329933128d035f71b3 authored by Vladislav Kamenev on 17 September 2018, 14:55:56 UTC, committed by Vladislav Kamenev on 17 September 2018, 14:55:56 UTC
1 parent 7679418
Raw File
Tip revision: 05cb2ad16b95c4d1a388ab329933128d035f71b3 authored by Vladislav Kamenev on 17 September 2018, 14:55:56 UTC
Update JS. Annotation dataset improvement
Tip revision: 05cb2ad
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