Used to serve metagenomic data (used in e.g., icicle plots and heatmaps). Wraps
MRexperiment-class
objects.
df_to_tree(root, df)
Helper function to recursively build nested response for getHierarchy
Root of subtree
data.frame containing children to process
get_default_chart_type()
Get name of default chart type for this data type
get_measurements()
Get description of measurements served by this object
getAlphaDiversity(measurements = NULL)
Compute alpha diversity using vegan for the given samples
Samples to compute alpha diversity
Start of feature range to query
End of feature range to query
getCombined(measurements = NULL, seqName, start = 1, end = 1000,
order = NULL, nodeSelection = NULL, selectedLevels = NULL)
Return the counts aggregated to selected nodes for the given samples
Samples to get counts for
name of datasource
Start of feature range to query
End of feature range to query
Ordering of nodes
Node-id and selectionType pairs
Current aggregation level
getHierarchy(nodeId = NULL)
Retrieve feature hierarchy information for subtree with specified root
Feature identifier with level info
getPCA(measurements = NULL)
Compute PCA over all features for given samples
Samples to compute PCA over
Start of feature range to query
End of feature range to query
getRows(measurements = NULL, start = 1, end = 1000, selectedLevels = 3,
selections = NULL)
Return the sample annotation and features within the specified range and level for a given sample and features
Samples to retrieve for
Start of feature range to query
End of feature range to query
Node-id and selectionType pairs
Current aggregation level
getValues(measurements = NULL, start = 1, end = 1000,
selectedLevels = 3, selections = NULL)
Return the counts for a sample within the specified range
Samples to get counts for
Start of feature range to query
End of feature range to query
Node-id and selectionType pairs
Current aggregation level
propagateHierarchyChanges(selection = NULL, order = NULL,
selectedLevels = NULL, request_with_labels = FALSE)
Update internal state for hierarchy
Node-id and selectionType pairs
Ordering of features
Current aggregation level
For handling requests using fData entries from MRexperiment
row_to_dict(row)
Helper function to format each node entry for getHierarchy response
Information for current node.
searchTaxonomy(query = NULL, max_results = 15)
Return list of features matching a text-based query
String of feature for which to search
Maximum results to return
1 2 3 4 5 6 7 8 9 | ## Not run:
library(curatedMetagenomicData)
zeller.eset = ZellerG_2014.metaphlan_bugs_list.stool()
zeller_MR <- ExpressionSet2MRexperiment(zeller.eset)
feature_order <- colnames(fData(zeller_MR))
sampleId<- "CCIS98482370ST-3-0"
mObj <- metavizr:::EpivizMetagenomicsDataInnerNodes$new(zeller_MR, feature_order = feature_order)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.