Skip to main content

Framework for creating and analyzing genotype networks from data.

Project description

This is the Python package used by the Genonets Server for creating and analyzing genotype networks from raw data. The details of the analyses used and the attributes computed can be found on the Learn Genonets page.


Installation

Linux and Mac OS

Using pip,

pip install genonets

In case you get a ‘permission’ related error, try the following:

sudo pip install genonets

You can also install Genonets directly from the source package.

python setup.py install

Again, in case you run into permission related errors,

sudo python setup.py install

When trying to install genonets on a machine with Ubuntu 14.04 LTS that does not already have the required version of python-igraph installed, pip sometimes fails to install the C core of igraph. If that happens, follow these steps:

  1. sudo apt-get install build-essential

  2. sudo apt-get python-dev

  3. sudo apt-get install libxml2-dev

  4. sudo apt-get install libz-dev

  5. sudo pip uninstall genonets

  6. Finally, sudo pip install genonets

Windows

Instructions for Windows are basically the same, except in certain cases installation of dependencies fails. If that happens, follow these steps:

  1. Download the ‘whl’ files for numpy and python-igraph from http://www.lfd.uci.edu/~gohlke/pythonlibs/. E.g.,
    1. numpy-1.10.2+mkl-cp27-none-win32.whl

    2. python_igraph-0.7.1.post6-cp27-none-win32.whl

  1. pip install python_igraph-0.7.1.post6-cp27-none-win32.whl

  2. pip install numpy-1.10.2+mkl-cp27-none-win32.whl

  3. And finally, pip install genonets

Genonets quick start

The best way to get started is to work through genonets_exmpl_simple.py available in the genonets/genonets/sample directory. In case you cannot locate the directory in which genonets is installed, you can download the source tarball from the genonets PyPI page, and find the sample folder inside the extracted genonets directory.

To get started, first copy the sample folder in a directory with write privileges. Then, try the following command:

python genonets_exmpl_simple.py DNA true data/genonets_sample_input.txt 0.35 results_simple

This command does the following:

  1. Parses the sample input file located in the data directory

  2. Creates genotype networks for all available genotype sets

  3. Performs all available analyses on the genotype sets

  4. Writes the following in the in the results_simple directory:
    1. A file with genotype network level attributes for all genotype sets

    2. For each genotype network, a file with genotype level attributes

    3. GML files for genotype networks

The following command can be used to view a description of command line arguments:

python genonets_exmpl_simple.py -h

The genonets/genonets/sample directory also includes other sample files, each highlighting different features.

Project details


Download files

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

Source Distribution

genonets-1.0.4.tar.gz (60.3 kB view details)

Uploaded Source

Built Distributions

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

genonets-1.0.4-py2.7.egg (115.5 kB view details)

Uploaded Egg

genonets-1.0.4-py2-none-any.whl (71.9 kB view details)

Uploaded Python 2

File details

Details for the file genonets-1.0.4.tar.gz.

File metadata

  • Download URL: genonets-1.0.4.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for genonets-1.0.4.tar.gz
Algorithm Hash digest
SHA256 4ad4903c624250f4f168efb34d6b2827132a7d2b1495c0dc68da8755c6a1ea65
MD5 4b8a799d477c26edc288b19e9149b6d4
BLAKE2b-256 2323a5e1e18d320e674686433306877493f5fa0e36df0424a863868c9a49feab

See more details on using hashes here.

File details

Details for the file genonets-1.0.4-py2.7.egg.

File metadata

  • Download URL: genonets-1.0.4-py2.7.egg
  • Upload date:
  • Size: 115.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for genonets-1.0.4-py2.7.egg
Algorithm Hash digest
SHA256 b738193409194b40de702bad69d3fda93769cc6c78f0071b55520a6be1a3923d
MD5 b2d234e362717a185283659e4b91ddfe
BLAKE2b-256 62fc6cc124076ec4d25a3b056fd1dea327c94794d89d40dc8e64886f6705f726

See more details on using hashes here.

File details

Details for the file genonets-1.0.4-py2-none-any.whl.

File metadata

File hashes

Hashes for genonets-1.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 1383c3d9555f877c2e66afb29d9f1af6e3eff99b6d961beecc588bd3492ba0e3
MD5 8f409113909a16a340911f293b81e858
BLAKE2b-256 b13988b119821f7466bf3ddc31c4d0988bc4a48506ce9527b36cb51e38ff03cb

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