Skip to main content

DyNeuSR Fire

A command line interface for DyNeuSR based on the Python Fire library.

Usage

DyNeuSR Fire provides a command line interface for DyNeuSR. It wraps kmapper and dyneusr into a single pipeline, and uses the Python Fire library to automatically generate a simple command line interface that accepts several important options and allows users to customize this pipeline. For more information about DyNeuSR, check out the docs.

To get started, check out the examples, or try running one of the commands below on your own data.

Basic Usage

You can run the entire pipeline from the command line:

$ dyneusr-fire load_example --size=500 - run_mapper --projection=PCA(2) --resolution=10 --gain=0.5 - visualize

Interactive Mode

To run in interactive mode, you can run the following from the command line:

$ dyneusr-fire init -- --interactive

This will open an IPython shell.

Fire is starting a Python REPL with the following objects:
Modules: fire, np, pd
Objects: Bunch, Cover, DBSCAN, DyNeuGraph, DyNeuSR, HDBSCAN, KMeans, KeplerMapper, MinMaxScaler, PCA, StandardScaler, TSNE, UMAP, check_estimator, component, f, result, self, trace

Python 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]:                                                               

Then, you can step through the pipeline:

In [1]: pipeline = DyNeuSR()

In [2]: pipeline.load_data(X='trefoil.npy', y='trefoil-target.npy')

In [3]: pipeline.run_mapper(projection=PCA(2), resolution=10, gain=0.5, clusterer=DBSCAN())

In [4]: pipeline.visualize()

Or, run it all at once:

In [1]: DyNeuSR().load_example().run_mapper(projection=PCA(2), resolution=10, gain=0.5, clusterer=DBSCAN()).visualize()

Note, in the examples above, load_example is used for demo purposes only. You can replace load_example with load_data and load your own data by passing the file names of your data and target labels to the X and y arguments, respectively.

Setup

Dependencies

Python 3.6+

Required Python Packages

Install with PIP

To install with pip:

pip install dyneusr-fire

To install from source:

git clone https://github.com/braindynamicslab/dyneusr-fire.git
cd dyneusr-fire

pip install -e .

Support

Please feel free to report any issues, request new features, or propose improvements. You can also contact Caleb Geniesse at geniesse [at] stanford [dot] edu.

Citation

Geniesse, C., Sporns, O., Petri, G., & Saggar, M. (2019). Generating dynamical neuroimaging spatiotemporal representations (DyNeuSR) using topological data analysis. Network Neuroscience. Advance publication. doi:10.1162/netn_a_00093

Metadata

Release files for dyneusr-fire 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dyneusr-fire 0.0.3
File Size Uploaded Provenance Actions
dyneusr-fire-0.0.3.tar.gz 4.7 kB Without provenance Details for dyneusr-fire-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dyneusr-fire 0.0.3
File Interpreter ABI Platform Actions
dyneusr_fire-0.0.3-py3-none-any.whl Python 3 none any Details for dyneusr_fire-0.0.3-py3-none-any.whl

Total release size: 10.2 kB

Release files / dyneusr-fire-0.0.3.tar.gz

Download URL dyneusr-fire-0.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9a86925dde3dd94c00a29bd79bcdb1956c3da5c420abbaff901a00d510dc2406
BLAKE2b-256 checksum
How to use checksums
354ce6e7f3097811b0be6f5f330ce0c14a0c04f4cca5e50b2f140854f7c18ecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Release files / dyneusr_fire-0.0.3-py3-none-any.whl

Download URL dyneusr_fire-0.0.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c41804cf677f7402199388d69d2da64dac421a3c0889d1542b7689d9ba7a89e0
BLAKE2b-256 checksum
How to use checksums
8857041aa3edb1f170b2ed948981deb0045d88f1aa7056dde2a6ea716fc68b63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Security for dyneusr-fire 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page