Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.4.1 instead.
Reason given by maintainers: fails to install on mac

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 cmake

Note: please use cmake>3.2 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.4.0.tar.gz (96.9 kB view details)

Uploaded Source

Built Distributions

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

ACTIONet-0.4.0-cp311-cp311-manylinux_2_35_x86_64.whl (57.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

ACTIONet-0.4.0-cp310-cp310-manylinux_2_35_x86_64.whl (57.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

ACTIONet-0.4.0-cp39-cp39-manylinux_2_35_x86_64.whl (57.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.35+ x86-64

ACTIONet-0.4.0-cp38-cp38-manylinux_2_35_x86_64.whl (57.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.35+ x86-64

File details

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

File metadata

  • Download URL: ACTIONet-0.4.0.tar.gz
  • Upload date:
  • Size: 96.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for ACTIONet-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fe3c3d1d2f05dee9c77e1f68677b8d7cfcdb9e9822f8722993eb63ce2ef17ba1
MD5 da66bc6ecc33471e12b834a596001acc
BLAKE2b-256 17c57f4ba56258e9447555efcb00573a41378238125311535dda102b718410a1

See more details on using hashes here.

File details

Details for the file ACTIONet-0.4.0-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for ACTIONet-0.4.0-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 b19a2df06b4477311c7c57c65816d7a38d8508e9451365dc9985d5614a5b464b
MD5 a5e7f8265319a8a55f181285a4207297
BLAKE2b-256 3b0a1ae6f748f1260d785e89eb189cffe044297829947ebd318dfefb2430052c

See more details on using hashes here.

File details

Details for the file ACTIONet-0.4.0-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for ACTIONet-0.4.0-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 854cbe1a413523fe4188e3c37129913d3cbd0ae5a37bed0446003533f36d34d7
MD5 26f86b8743952f0d1c01be5f307dbbd0
BLAKE2b-256 ceb4c23c835bed666942631f73cd3c8019fa4323e186811dadf165178f27d731

See more details on using hashes here.

File details

Details for the file ACTIONet-0.4.0-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for ACTIONet-0.4.0-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 d1149f69303102e1075e2ab8980385fecb9f685a06d45f1d93fc576ac7d24b52
MD5 91124e300e977206ce6d305f947a6e46
BLAKE2b-256 9eb119f74f271a0922f9d559b063564cd7e8353f2c7dfc9103529c3f1b9722a8

See more details on using hashes here.

File details

Details for the file ACTIONet-0.4.0-cp38-cp38-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for ACTIONet-0.4.0-cp38-cp38-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e4390d478c5d42d349ca9df6c9299ec3e844070c118546b528e1be544fc165ae
MD5 12a0af9ebcb5932e047e0ffbf06ae8d0
BLAKE2b-256 c9ba4d7c612eb42b2139d2ba032b9efc60220b96d8a573906eb733b5e828e98c

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