EpivizMetagenomicsDataInnerNodes-class: Data container for MRexperiment objects

Description Methods Examples

Description

Used to serve metagenomic data (used in e.g., icicle plots and heatmaps). Wraps MRexperiment-class objects.

Methods

df_to_tree(root, df)

Helper function to recursively build nested response for getHierarchy

root

Root of subtree

df

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

measurements

Samples to compute alpha diversity

start

Start of feature range to query

end

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

measurements

Samples to get counts for

seqName

name of datasource

start

Start of feature range to query

end

End of feature range to query

order

Ordering of nodes

nodeSelection

Node-id and selectionType pairs

selectedLevels

Current aggregation level

getHierarchy(nodeId = NULL)

Retrieve feature hierarchy information for subtree with specified root

nodeId

Feature identifier with level info

getPCA(measurements = NULL)

Compute PCA over all features for given samples

measurements

Samples to compute PCA over

start

Start of feature range to query

end

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

measurements

Samples to retrieve for

start

Start of feature range to query

end

End of feature range to query

selections

Node-id and selectionType pairs

selectedLevels

Current aggregation level

getValues(measurements = NULL, start = 1, end = 1000, selectedLevels = 3, selections = NULL)

Return the counts for a sample within the specified range

measurements

Samples to get counts for

start

Start of feature range to query

end

End of feature range to query

selections

Node-id and selectionType pairs

selectedLevels

Current aggregation level

propagateHierarchyChanges(selection = NULL, order = NULL, selectedLevels = NULL, request_with_labels = FALSE)

Update internal state for hierarchy

selection

Node-id and selectionType pairs

order

Ordering of features

selectedLevels

Current aggregation level

request_with_labels

For handling requests using fData entries from MRexperiment

row_to_dict(row)

Helper function to format each node entry for getHierarchy response

row

Information for current node.

searchTaxonomy(query = NULL, max_results = 15)

Return list of features matching a text-based query

query

String of feature for which to search

max_results

Maximum results to return

Examples

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)

epiviz/metavizr documentation built on Aug. 5, 2021, 6:37 p.m.