{ "info": { "author": "Jan Rudolph", "author_email": "jan.daniel.rudolph@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "perseuspy README\n================\n\n.. image:: https://readthedocs.org/projects/perseuspy/badge/?version=latest\n :target: http://perseuspy.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. sphinx-inclusion-marker-do-not-remove\n\n.. image:: https://travis-ci.org/jdrudolph/perseuspy.svg?branch=master\n :target: https://travis-ci.org/jdrudolph/perseuspy\n\nUtility and covenience functions for Python-Perseus interop.\nBuilding on the `pandas` package. If you intend to develop\na plugin for Perseus, please see `PluginInterop `_.\n\nInstallation (short)\n--------------------\n\n.. code:: bash\n\n pip install perseuspy\n\nUpdating to the latest version\n------------------------------\n\n.. code:: bash\n\n pip install --upgrade perseuspy\n\nInstallation (Windows long)\n---------------------------\nFirst open a terminal by searching for `cmd.exe` in the start menu. Here we can easily\ncheck if all required programs are installed.\n\n#. Check to see if the `pip` executable is already available.\n ::\n\n pip install perseuspy\n\n If there is no error you are already done. If it fails, continue with the next steps.\n#. Navigate to the installation directory of your `Python` installation. If it is installed\n e.g. `D:/Programs/Python/` we would first change the drive letter (maybe unnecessary)\n and then go to the installation directory.\n ::\n\n D:\n cd Programs/Python\n\n Now we should be able to run `python` from the command line.\n ::\n \n python.exe --version\n\n This should print the installed version of python\n#. Navigate to the `Scripts` directory and run the installation\n ::\n\n cd Scripts\n pip install perseuspy\n\n If you want to upgrade you installation, run\n ::\n\n pip install --upgrade perseuspy\n\n#. Test the installation by navigating back to the `Python` folder and trying to import `perseuspy`.\n ::\n\n cd ..\n python.exe\n\n Now you should be inside the `python` interpreter. Check the installation by running.\n ::\n\n import perseuspy\n\n If the command doesn't produce any error you can exit `python` by pressing `CTRL+c`.\n#. Add `python` to your `PATH` (optional). Makes it easier for Perseus to find the Python\n installation. There are many resources on how to add programs to the `PATH` available online.\n\nUsage\n------------\nYou can use `perseuspy` just like any other python module.\n\n\n.. code:: python\n\n # import a monkey-patched version of pandas\n from perseuspy import pd\n df = pd.read_perseus('matrix1.txt')\n df2 = df.dropna()\n df2.to_perseus('matrix2.txt')\n\n\nPlugin template\n---------------\nThe following snippet can be used as a starting point\nfor python scripting in Perseus.\n\n.. code:: python\n\n import sys\n from perseuspy import pd\n from perseuspy.parameters import *\n _, paramfile, infile, outfile = sys.argv # read arguments from the command line\n parameters = parse_parameters(paramfile) # parse the parameters file\n df = pd.read_perseus(infile) # read the input matrix into a pandas.DataFrame\n some_value = doubleParam(parameters, 'some value') # extract a parameter value\n df2 = some_value / df.drop('Name', 1)\n df2.to_perseus(outfile) # write pandas.DataFrame in Perseus txt format\n \nNetwork Plugin template\n-----------------------\nThe following snippet can be used as a starting point\nfor python scripting in Perseus (for networks).\n\n.. code:: python\n\n import sys\n from perseuspy import nx, pd, read_networks, write_networks\n _, paramfile, infolder, outfolder = sys.argv # read arguments from the command line\n networks_table, networks = read_networks(infolder) # networks in tabular form\n graphs = nx.from_perseus(networks_table, networks) # graphs as networkx objects\n _networks_table, _networks = nx.to_perseus(graphs) # convert back into tabular form\n write_networks(tmp_dir, networks_table, networks) # write to folder\n\n\nGenerating the documentation\n----------------------------\nRun `./generate_docs.sh` from `bash`.\n\nLicensing and Contributions\n---------------------------\n`perseuspy` is licensed under the MIT lisence.\nContributions are welcome! If you are interested in contributing to code or documentation,\nplease read `CONTRIBUTING.rst `_.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.github.com/jdrudolph/perseuspy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "perseuspy", "package_url": "https://pypi.org/project/perseuspy/", "platform": "", "project_url": "https://pypi.org/project/perseuspy/", "project_urls": { "Homepage": "http://www.github.com/jdrudolph/perseuspy" }, "release_url": "https://pypi.org/project/perseuspy/0.3.8/", "requires_dist": null, "requires_python": "", "summary": "Utilities for integrating python scripts into Perseus workflows", "version": "0.3.8" }, "last_serial": 4958670, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "7b85a7b76081cfd16258dd67f67dfe3d", "sha256": "0af8cda07d583b7f4139522f851aca2e1c549e91dda1569b821e18b9b6e48af1" }, "downloads": -1, "filename": "perseuspy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7b85a7b76081cfd16258dd67f67dfe3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8081, "upload_time": "2017-08-10T08:44:12", "url": "https://files.pythonhosted.org/packages/19/9a/5215149bebaeebffadf58c35b31a237f2590655cd58a3f596e139f61f7f5/perseuspy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "298af7c97f5f0fb8c6167681b6d17a10", "sha256": "e6db9bcca1f65c021d4d228cced402a0e040480491de7ca2d965256c3047b247" }, "downloads": -1, "filename": "perseuspy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "298af7c97f5f0fb8c6167681b6d17a10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8555, "upload_time": "2017-08-10T08:52:31", "url": "https://files.pythonhosted.org/packages/a4/8a/7d7ff5d43cb6921abdb19baa17b2c4ab38a82039072af9c6a657f6246a61/perseuspy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3b70be7cdd52534e4d80293179037cd3", "sha256": "2e57e1ad848e25389b33dbeca7801efabfac8440c014a102863611e1acfd5834" }, "downloads": -1, "filename": "perseuspy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3b70be7cdd52534e4d80293179037cd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8619, "upload_time": "2017-08-10T09:04:19", "url": "https://files.pythonhosted.org/packages/6b/ef/9a3eb1c12a0a19a4c3d305625650cc863724f4a3a816b41a0fb075c4194d/perseuspy-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "3ad0da31409f816c4875179f8ca3736d", "sha256": "8c920cabdd87744fb85c724bdb2118cb833ef30a3109bd31f96d9d9c80dd0d55" }, "downloads": -1, "filename": "perseuspy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "3ad0da31409f816c4875179f8ca3736d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8709, "upload_time": "2017-08-18T09:24:29", "url": "https://files.pythonhosted.org/packages/80/fb/1bfe85d0ee5661fa52c06de944408edd0eba4b1cad70f020e7f5ab709a9e/perseuspy-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4da57993e56b2bb9a5d2f5086342a35e", "sha256": "13ca29106b171370de2cb989a52582f610e9b404ddff8db9abd1ce459740fd2b" }, "downloads": -1, "filename": "perseuspy-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4da57993e56b2bb9a5d2f5086342a35e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10566, "upload_time": "2017-09-20T11:46:58", "url": "https://files.pythonhosted.org/packages/3e/5d/0b4d942ec38a310ea8b5a5024b6b0cd9d04a466547cccd99a66d4df33b97/perseuspy-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "01c9396cb4ce9c04ed211430d22c0a1e", "sha256": "e25b7b08af25bd741b536ea6deabb020f7cfc1df656d2a29b4d513278385424b" }, "downloads": -1, "filename": "perseuspy-0.2.1.tar.gz", "has_sig": false, "md5_digest": "01c9396cb4ce9c04ed211430d22c0a1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10578, "upload_time": "2017-09-20T11:50:39", "url": "https://files.pythonhosted.org/packages/0d/2c/b7a4fd71c38142f472074afa20ad07ac430a124444d6b7d5bcfc48d3924c/perseuspy-0.2.1.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "80ff76014f50b8722b841d3e11bdce70", "sha256": "34a7587ed2195505d7c18b91a68d7de4c7fdbf251283c161c8025334678ff511" }, "downloads": -1, "filename": "perseuspy-0.3.1.tar.gz", "has_sig": false, "md5_digest": "80ff76014f50b8722b841d3e11bdce70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13100, "upload_time": "2017-11-03T10:16:35", "url": "https://files.pythonhosted.org/packages/e5/6c/7d31ceb508a66aab6d0a2e7de40448c3bd20c1fdb77f17fceaf6441b2209/perseuspy-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "0256dc1f4cea57a17baed509902cc185", "sha256": "46c4cc4abc2cc7b99db2d17c063ee238e048c16c9995296774be3a95d15427ec" }, "downloads": -1, "filename": "perseuspy-0.3.2.tar.gz", "has_sig": false, "md5_digest": "0256dc1f4cea57a17baed509902cc185", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13248, "upload_time": "2017-11-09T11:14:06", "url": "https://files.pythonhosted.org/packages/1c/37/5385b9f914a2e26d296023a4e8f406ec1a63024525253a29ef4086707fb2/perseuspy-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "147dd28c1849b3305c8f9a1e7c667855", "sha256": "9ec8309ab25aff89c180a462991044c38311050a73653756ea37236a43a08e0b" }, "downloads": -1, "filename": "perseuspy-0.3.3.tar.gz", "has_sig": false, "md5_digest": "147dd28c1849b3305c8f9a1e7c667855", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11858, "upload_time": "2017-12-19T13:15:11", "url": "https://files.pythonhosted.org/packages/03/82/996e6cf4e18c0f204907ccdefa096ca69d55d75d3e83c057fc4355f83628/perseuspy-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "676b0b86f422e89cd79e97c4a34483a0", "sha256": "fe522024c6f2bd443003412138607e1ee746b399688465d28b0799b46eb0400c" }, "downloads": -1, "filename": "perseuspy-0.3.4.tar.gz", "has_sig": false, "md5_digest": "676b0b86f422e89cd79e97c4a34483a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12208, "upload_time": "2018-02-07T19:17:14", "url": "https://files.pythonhosted.org/packages/fc/ec/2d6a5e03dcd78bf18622ac711db45f2165e5b22c4377be5ca387219f568b/perseuspy-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "75ec2374309273cb666eb2cde856fb93", "sha256": "f2d7deefa211429ef56fe37cdea80c9ed82c95e9db99ef492f1cc543f43c51a3" }, "downloads": -1, "filename": "perseuspy-0.3.5.tar.gz", "has_sig": false, "md5_digest": "75ec2374309273cb666eb2cde856fb93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12352, "upload_time": "2018-02-19T12:38:03", "url": "https://files.pythonhosted.org/packages/27/59/7128305476c35650cb7e6ef68c3873ca7bf816a6a5d6cf2b583bb8dc31d9/perseuspy-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "531d6b7a58d3cbbcfcc2aec40f508464", "sha256": "c9cd6889be4c9d55fa6ef7a2a0dfb53aae13e6bb6bae134ad50dd6e83c6ec450" }, "downloads": -1, "filename": "perseuspy-0.3.6.tar.gz", "has_sig": false, "md5_digest": "531d6b7a58d3cbbcfcc2aec40f508464", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12335, "upload_time": "2018-06-28T23:44:42", "url": "https://files.pythonhosted.org/packages/13/35/5e45be31902cf4fcc04265ab672bf35d23ab758b6f6409f262c69149e481/perseuspy-0.3.6.tar.gz" } ], "0.3.7": [ { "comment_text": "", "digests": { "md5": "ecd171a8b06cad853f0fad8bc9c7fc93", "sha256": "324d24c634e80118fd8082edd63751947dc05d52f758c3360c64734d62e2069a" }, "downloads": -1, "filename": "perseuspy-0.3.7.tar.gz", "has_sig": false, "md5_digest": "ecd171a8b06cad853f0fad8bc9c7fc93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12330, "upload_time": "2018-07-01T10:50:57", "url": "https://files.pythonhosted.org/packages/22/f8/af900b4adcdaeee239be8cff64b18e96937aae29ddbdbeac0d9a095bb611/perseuspy-0.3.7.tar.gz" } ], "0.3.8": [ { "comment_text": "", "digests": { "md5": "90374cf5eefaa90c66c35b0d6bbe5ea7", "sha256": "d7cbfe81859929f7c8e6bbf101bbb03f3692e88be006c947a2be7c756100541c" }, "downloads": -1, "filename": "perseuspy-0.3.8.tar.gz", "has_sig": false, "md5_digest": "90374cf5eefaa90c66c35b0d6bbe5ea7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12515, "upload_time": "2019-02-10T15:00:11", "url": "https://files.pythonhosted.org/packages/c5/e9/c35be0a54af966b12b5a0fce6c515f6661fdb88c87a51f78a6ac0a4cd956/perseuspy-0.3.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "90374cf5eefaa90c66c35b0d6bbe5ea7", "sha256": "d7cbfe81859929f7c8e6bbf101bbb03f3692e88be006c947a2be7c756100541c" }, "downloads": -1, "filename": "perseuspy-0.3.8.tar.gz", "has_sig": false, "md5_digest": "90374cf5eefaa90c66c35b0d6bbe5ea7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12515, "upload_time": "2019-02-10T15:00:11", "url": "https://files.pythonhosted.org/packages/c5/e9/c35be0a54af966b12b5a0fce6c515f6661fdb88c87a51f78a6ac0a4cd956/perseuspy-0.3.8.tar.gz" } ] }