Skip to main content

Installation

Setting Up the Environment (Preinstallation)

For Linux Users

Verify that the cmake version you are using is >=3.19.

For the optimal performance on Intel-based architectures, installing Intel Math Kernel Library (MKL) is highly recommended. After installing, make sure MKLROOT is defined by running the setvars script.

Install library dependencies To install the ACTIONet dependencie on debian-based linux machines, run:

sudo apt-get install libhdf5-dev libsuitesparse-dev libnss3 xvfb libblas-dev liblapack-dev

For Mac-based systems, you can use brew instead:

brew install hdf5 suite-sparse c-blosc blas lapack

Installing ACTIONet Python Package

Use pip to install ACTIONet directly from this repository:

pip install git+https://github.com/shmohammadi86/ACTIONet@python-devel

To install from source:

git clone --recurse-submodules https://github.com/shmohammadi86/ACTIONet.git
make install

Running ACTIONet

Note If you are using MKL, make sure to properly set the number of threads used prior to running ACTIONet.

Example Run

Here is a simple example to get you started:

import urllib.request

import ACTIONet as an
import scanpy as sc

# Download example dataset from the 10X Genomics website
opener = urllib.request.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve('http://cf.10xgenomics.com/samples/cell-exp/3.0.0/pbmc_10k_v3/pbmc_10k_v3_filtered_feature_bc_matrix.h5', 'pbmc_10k_v3.h5')

# Read and filter the data
adata = sc.read_10x_h5('pbmc_10k_v3.h5')
adata.var_names_make_unique(join='.')
an.pp.filter_adata(adata, min_cells_per_feature=0.01, min_features_per_cell=1000)
sc.pp.normalize_total(adata)
sc.pp.log1p(adata)

# Run ACTIONet
an.pp.reduce_kernel(adata)
an.run_ACTIONet(adata)

# Annotate cell-types
marker_genes, directions, names = an.tl.load_markers('PBMC_Monaco2019_12celltypes')
cell_labels, confidences, Z = an.tl.annotate_cells_using_markers(adata, marker_genes, directions, names)
adata.obs['celltypes'] = cell_labels

# Visualize output
an.pl.plot_ACTIONet(adata, 'celltypes', transparency_key='node_centrality')

# Export results
adata.write('pbmc_10k_v3.h5ad')

Visualizing results using cellxgene

The output of ACTIONet in the python implementation is internally stored as as AnnData object, and R ACE objects can be imported from/exported to AnnData using functions AnnData2ACE() and ACE2AnnData() functions, respectively. AnnData objects can be directly loaded into cellxgene package, an open-source viewer for interactive single-cell data visualization. cellxgene can be installed as:

pip install cellxgene

Then to visualize the results of ACTIONet, run:

cellxgene launch pbmc_10k_v3.h5ad

where pbmc_10k_v3.h5ad is the name of the file we exported using adata.write() function.

Additional tutorials

You can access ACTIONet tutorials from:

  1. ACTIONet framework at a glance (human PBMC 3k dataset)
  2. Introduction to the ACTIONet framework (human PBMC Granja et al. dataset)
  3. Introduction to cluster-centric analysis using the ACTIONet framework
  4. To batch correct or not to batch correct, that is the question!
  5. PortingData: Import/export options in the ACTIONet framework
  6. Interactive visualization, annotation, and exploration
  7. Constructing cell-type/cell-state-specific networks using SCINET

You can also find a step-by-step guide to learning the core functionalities of the ACTIONet framework.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ACTIONet-0.3.0.tar.gz (7.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ACTIONet-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

ACTIONet-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

ACTIONet-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

File details

Details for the file ACTIONet-0.3.0.tar.gz.

File metadata

  • Download URL: ACTIONet-0.3.0.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.5

File hashes

Hashes for ACTIONet-0.3.0.tar.gz
Algorithm Hash digest
SHA256 13beec3e36b58e3326822a09ea5146cf31b912a70a0bd3a4ba8ed06f80780178
MD5 c4e32e042853bc95acd56f00e9da74f5
BLAKE2b-256 0a5bc2dd8c345fff3978bacac6f4bbebcbac39e63bb704d0a221f3195bb56c79

See more details on using hashes here.

File details

Details for the file ACTIONet-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: ACTIONet-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.5

File hashes

Hashes for ACTIONet-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e9b4ab8adff97345cebac3e9ec6ca79219293e3371b87b00ea72ba724e105ac
MD5 bc072de5f957f1858b11591243896fa9
BLAKE2b-256 784782e6012ad11e6371420f9c95d32e1470f9b30de8b67af103b65e8a4298d1

See more details on using hashes here.

File details

Details for the file ACTIONet-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: ACTIONet-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.5

File hashes

Hashes for ACTIONet-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bac21715a1e748b998bcdcf23e569e7c43a3bf8ae6ff8153d61322b47eda0a1
MD5 d006756f2c402176d639f5c9834d4dc3
BLAKE2b-256 1e2b99f7d316b9641ad67ea78e2717463146e33e376300a67ca93d874e8d70dc

See more details on using hashes here.

File details

Details for the file ACTIONet-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: ACTIONet-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.5

File hashes

Hashes for ACTIONet-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6b29b585a8483c595925094787ba1480c4492458acba6d64e6579a1a46bc9e52
MD5 cefc0113d6c8b7707baff8f13cf5a384
BLAKE2b-256 194bcfdb78e129ec23e546235d719d600ebe7ea07558ae53039fcb0c267022eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page