{ "info": { "author": "Jerome Kelleher", "author_email": "jerome.kelleher@ed.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Other Environment", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: POSIX", "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "===================================================\nEfficient coalescent simulation in continuous space\n===================================================\n\nSimulates the coalescent for populations evolving in a spatial \ncontinuum under the extinction/recolonisation model. This \npackage is a specialisation of the `ercs `_\npackage, and provides a much more efficient method of \nsimulating the spatial coalescent for the disc model. \nA very similar (but not identical) interface to ``ercs``\nis provided.\n\n\nThe simulations \nsupport:\n \n- A sample of ``n`` individuals with ``m`` loci at arbitrary locations on a \n torus of diameter ``L``.\n- A fixed recombination rate between pairs of adjacent loci. \n- An arbitrary number of classes of event occuring at fixed\n rates. \n- Simulations in one and two dimensions.\n- Access to the locations of ancestors at any time in the past.\n- Simulations of the locations of all pedigree ancestors, as well \n as the genetic ancestors.\n\nThe ``discsim`` module supports Python 2 and 3.\n\n-------------\nDocumentation\n-------------\n\nHere's a quick example for the impatient::\n\n import ercs\n import discsim\n sim = discsim.Simulator(10)\n sim.sample = [None, (3, 2), (6, 4), (7, 0)]\n sim.event_classes = [ercs.DiscEventClass(u=0.5, r=1)]\n sim.run()\n pi, tau = sim.get_history()\n\n\nFull documentation for ``discsim`` is available at \n``_.\n\n------------\nInstallation\n------------\n\n*******************************\nQuick install for Debian/Ubuntu\n*******************************\n\nIf you are running Debian or Ubuntu, this should get you up and running quickly::\n\n $ sudo apt-get install python-dev libgsl0-dev \n $ sudo pip install ercs discsim\n\nFor Python 3, use ``python3-dev`` and ``pip3``.\n\n********************\nGeneral instructions\n********************\n\nThe ``discsim`` module \ndepends on the `GNU Scientific Library `_,\nwhich must be installed before it can be built.\nFortunately, this is straightforward on most platforms. For example, \non Debian or Ubuntu use::\n\n $ sudo apt-get install libgsl0-dev\n\nor on Fedora::\n\n $ sudo yum install gsl-devel\n\nGSL is available on most packaging systems; if it is not available on your\nplatform, it can be installed from source.\n\nThe ``discsim`` module also depends on the \n`ercs `_\nPython module, which \nmust also be installed, using the same methods as outlined below.\n\nOnce GSL has been installed we can build the ``discsim`` module using the \nstandard Python `methods `_. For \nexample, using pip we have ::\n \n $ sudo pip install discsim\n\nOr, we can manually download the package, unpack it and then run::\n \n $ python setup.py build\n $ sudo python setup.py install\n\nMost of the time this will compile and install the module without difficulty.\n\nIt is also possible to download the latest development version of \n``discsim`` from `github `_. \n\n******************\nPotential problems\n******************\n\nOn platforms that GSL is not available as part of the native packaging \nsystem (or GSL was installed locally because of non-root access)\nthere can be issues with finding the correct headers and libraries\nwhen compiling ``ercs`` and ``discsim``. For example, on FreeBSD we get something \nlike this::\n\n $ python setup.py build\n ... [Messages cut for brevity] ...\n _discsimmodule.c:515: error: 'sim_t' has no member named 'time'\n _discsimmodule.c: In function 'Simulator_get_num_reproduction_events':\n _discsimmodule.c:529: error: 'sim_t' has no member named 'num_reproduction_events'\n _discsimmodule.c: In function 'Simulator_get_history':\n _discsimmodule.c:743: error: 'sim_t' has no member named 'pi'\n _discsimmodule.c:748: error: 'sim_t' has no member named 'tau'\n _discsimmodule.c: In function 'Simulator_run':\n _discsimmodule.c:789: error: 'sim_t' has no member named 'time'\n error: command 'cc' failed with exit status 1\n \nThis can be remedied by using the ``gsl-config`` program to set the \nthe ``LDFLAGS`` and ``CFLAGS`` environment variables to \ntheir correct values::\n \n $ CFLAGS=`gsl-config --cflags` LDFLAGS=`gsl-config --libs` python setup.py build\n\n*****\nTests\n*****\n\n``discsim`` provides some test cases to ensure that the installation has gone smoothly.\nIt is a good idea to run these immediately after installation::\n\n $ python tests.py\n\n\n****************\nTested platforms\n****************\n\nDiscsim has been successfully built and tested on the following platforms:\n\n================ ======== ====== ========\nOperating system Platform Python Compiler\n================ ======== ====== ========\nDebian wheezy x86_64 2.7.3 gcc 4.7.2\t\nDebian wheezy x86_64 3.2.3 gcc 4.7.2\t\nDebian wheezy x86 2.7.3 gcc 4.7.2\t\nDebian squeeze ppc64 2.6.6 gcc 4.4.5\t\nDebian squeeze ppc64 3.1.3 gcc 4.4.5\t\nDebian squeeze x86_64 2.6.6 gcc 4.4.5\t\nDebian squeeze x86_64 3.1.3 gcc 4.4.5\t\nFreeBSD 9.2 x86_64 2.7.5 gcc 4.2.1\nFreeBSD 9.2 x86_64 3.3.2 gcc 4.2.1\nFedora 19 x86_64 2.7.5 gcc 4.8.1\nFedora 19 x86_64 3.3.2 gcc 4.8.1\nSunOS 5.10 SPARC 3.3.2 gcc 4.8.0 \n================ ======== ====== ========", "description_content_type": null, "docs_url": "https://pythonhosted.org/discsim/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/discsim", "keywords": "Coalescent simulation,Continuous space", "license": "GNU GPLv3", "maintainer": null, "maintainer_email": null, "name": "discsim", "package_url": "https://pypi.org/project/discsim/", "platform": "POSIX", "project_url": "https://pypi.org/project/discsim/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/discsim" }, "release_url": "https://pypi.org/project/discsim/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Efficient coalescent simulation in continuous space", "version": "1.0.0" }, "last_serial": 1367986, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7caace9ce911612d0f854b36d3269010", "sha256": "02e5edcba94c4484964bfe4fab1b28f30464bbbd03579ec8e33cf567be031a3b" }, "downloads": -1, "filename": "discsim-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7caace9ce911612d0f854b36d3269010", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35956, "upload_time": "2015-01-02T09:28:28", "url": "https://files.pythonhosted.org/packages/18/af/e711db75ca1bb7b5658b78285cad65e7fb7dd89a94ddddb91239847aa355/discsim-1.0.0.tar.gz" } ], "1.0.0a1": [ { "comment_text": "", "digests": { "md5": "baee62ba20ea9cc31da19dc1dfbbb1db", "sha256": "4aeab1205e37d08f6686bd8ba9f6c88b1a6b3f8706779c8d0a9210ab7995fa2d" }, "downloads": -1, "filename": "discsim-1.0.0a1.tar.gz", "has_sig": false, "md5_digest": "baee62ba20ea9cc31da19dc1dfbbb1db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35434, "upload_time": "2013-10-16T14:46:44", "url": "https://files.pythonhosted.org/packages/38/d0/d06c4e16382240c85d9789f23fa8065b599784a8bae750fec91654538edf/discsim-1.0.0a1.tar.gz" } ], "1.0.0b1": [ { "comment_text": "", "digests": { "md5": "94fb22e5084933667e6ac44b07948039", "sha256": "c71013098262f2970898c37cab546db3c299e67b3e29b4165d07251d346337e0" }, "downloads": -1, "filename": "discsim-1.0.0b1.tar.gz", "has_sig": false, "md5_digest": "94fb22e5084933667e6ac44b07948039", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36115, "upload_time": "2013-10-22T11:42:18", "url": "https://files.pythonhosted.org/packages/1e/3a/a12ee58882c11292997676dccb7c2894acdf6a71bd50f9f816238c30dd1e/discsim-1.0.0b1.tar.gz" } ], "1.0.0b2": [ { "comment_text": "", "digests": { "md5": "96d59f077f6f00651c229e90026c682c", "sha256": "4e63e5238b37c32836394d9a4bee75dcf8b63a0f4dfce9e2d509ef405dd628fb" }, "downloads": -1, "filename": "discsim-1.0.0b2.tar.gz", "has_sig": false, "md5_digest": "96d59f077f6f00651c229e90026c682c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36728, "upload_time": "2014-01-30T18:23:26", "url": "https://files.pythonhosted.org/packages/06/0d/e115a5abbe4350e97514cd09242d4ee9b6205da764cb3e95278f5d3a47fe/discsim-1.0.0b2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7caace9ce911612d0f854b36d3269010", "sha256": "02e5edcba94c4484964bfe4fab1b28f30464bbbd03579ec8e33cf567be031a3b" }, "downloads": -1, "filename": "discsim-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7caace9ce911612d0f854b36d3269010", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35956, "upload_time": "2015-01-02T09:28:28", "url": "https://files.pythonhosted.org/packages/18/af/e711db75ca1bb7b5658b78285cad65e7fb7dd89a94ddddb91239847aa355/discsim-1.0.0.tar.gz" } ] }