9.2.11. On-the-fly#

Utilities for on-the-fly analyses.

junifer.onthefly.read_transform(storage, transform, feature_name=None, feature_md5=None, transform_args=None, transform_kw_args=None)#

Read stored feature and transform to specific statistical output.

Parameters:
storagestorage-like

The storage class, for example, SQLiteFeatureStorage.

transformstr

The kind of transform formatted as <package>_<function>, for example, bctpy_degrees_und.

feature_namestr, optional

Name of the feature to read (default None).

feature_md5str, optional

MD5 hash of the feature to read (default None).

transform_argstuple, optional

The positional arguments for the callable of transform (default None).

transform_kw_argsdict, optional

The keyword arguments for the callable of transform (default None).

Returns:
pandas.DataFrame

The transformed feature as a dataframe.

Notes

This function has been only tested for:

  • bct.degrees_und

  • bct.strengths_und

  • bct.clustering_coef_wu

  • bct.eigenvector_centrality_und

Using other functions may fail and require tweaking.