{ "info": { "author": "Arash Ash", "author_email": "arash.ashrafnejad@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# PyPRF\n[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/arash-ash/pRFsim/master?filepath=pRFsim_Tutorial.ipynb)\n\n\n\nA free & open source *python package* for *population receptive field (PRF) simulation*. This package is mainly developed for functional magnetic resonance imaging (fMRI) experiments.\n\n## Installation\nThe `prfsim` package can directly be installed from PyPI, in the following way:\n\n```bash\npip install prfsim\n```\n\n## Dependencies\n`prfsim` is implemented in [Python 3.6.4]\n\nIf you install `pyprf` using `pip` (as described above), all of the following dependencies are installed automatically - you do not have to take care of this yourself. Simply follow the above installation instructions.\n\n| pRFsim dependencies | Tested version |\n|-------------------------------------------------------|----------------|\n| [NumPy](http://www.numpy.org/) | 1.14.0 |\n| [Pandas](https://pandas.pydata.org/) | 0.22.0 |\n| [SciPy](http://www.scipy.org/) | 1.0.0 |\n| [Seaborn](https://seaborn.pydata.org/) \t\t| 0.8.1 |\n| [Pillow](https://pillow.readthedocs.io/) \t\t| 5.0.0 |\n\n## Contributions\n\nFor contributors, we suggest the following procedure:\n\n* Create your own branch (in the web interface, or by `git checkout -b new_branch`)\n * If you create the branch in the web interface, pull changes to your local repository (`git pull`)\n* Change to new branch: `git checkout new_branch`\n* Make changes\n* Commit changes to new branch (`git add .` and `git commit -m`)\n* Push changes to new branch (`git push origin new_branch`)\n* Create a pull request using the web interface\n\n## References\nThis application is based on the following work:\n\n[1] Dumoulin, S. O. & Wandell, B. A. (2008). Population receptive field estimates in human visual cortex. NeuroImage 39, 647\u2013660.\n\n## Support\nPlease use the [github issues](https://github.com/arash-ash/prfsim/issues) for questions or bug reports.\n\n## License\nThe project is licensed under [GNU General Public License Version 3](http://www.gnu.org/licenses/gpl.html).\n\n## How to use\n```bash\nimport prfsim.sim as psim\nimport numpy as np\n\n# experiment parameters\nradius = 10\nprecision = 0.1\nbarWidth = radius / 4\nangles = [-90, 45, -180, 315, 90, 225, 0, 135]\nnFrames = len(angles)*3\nTR = 3.0\nTRs = 5 # number of TRs for each frame\nduration = nFrames*TRs\n\nx, y = np.mgrid[-radius:radius:precision,\n -radius:radius:precision]\npos = np.dstack((x, y))\nlength = len(x[0])\nnVoxels = 6\n\n# parameters for double gamma distribution function hrf:\nn1 = 4\nlmbd1 = 2.0\nt01 = 0\nn2 = 7\nlmbd2 = 3\nt02 = 0\na = 0.3\n\nt = np.arange(0,nFrames*TRs*TR,TR)\nhrf_gen = psim.hrf_double_gamma(t, n1, n2, lmbd1, lmbd2, t01, t02, a)\nhrf_est = hrf_gen\n\nstim = psim.generateStim(radius=radius, precision=precision,\n barWidth=barWidth, angles=angles,\n nFrames=nFrames, length=length,\n\t\t TR=TR, TRs=TRs, isCheckerboard=False)\nprint('stimulus generated')\n\n\nneuronal_responses = psim.getNeuronalResponse(stim=stim, nVoxels=nVoxels,\n radius=radius, precision=precision,\n duration=duration)\nprint('Neuronal responses generated')\n\n\nbolds = psim.generateData(neuronal_responses=neuronal_responses,\n hrf=hrf_gen,\n duration=duration, nVoxels=nVoxels)\nprint('BOLD responses generated')\n\n\nprint('pRF estimations started...')\nresults = psim.estimateAll(bolds=bolds, stim=stim,\n hrf=hrf_est, radius=radius,\n precision=precision,\n nVoxels=nVoxels, margin = 1)\nprint('pRF estimation errors generated')\n```\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/arash-ash/prfsim/archive/v0.1.12.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/arash-ash/prfsim", "keywords": "pRF,fMRI,retinotopy,simulation", "license": "GNU General Public License Version 3", "maintainer": "", "maintainer_email": "", "name": "prfsim", "package_url": "https://pypi.org/project/prfsim/", "platform": "", "project_url": "https://pypi.org/project/prfsim/", "project_urls": { "Download": "https://github.com/arash-ash/prfsim/archive/v0.1.12.tar.gz", "Homepage": "https://github.com/arash-ash/prfsim" }, "release_url": "https://pypi.org/project/prfsim/0.1.12/", "requires_dist": [ "nibabel", "numpy", "pandas", "scipy", "seaborn" ], "requires_python": "", "summary": "A free & open source python tool for population receptive field simulation of fMRI data.", "version": "0.1.12" }, "last_serial": 3854159, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f0acdec69aa6a26d34a231f9f444e2e2", "sha256": "be999cad0a054f2bb4d45abfc39e991df08a4098f1c3cc028aee09020738a59a" }, "downloads": -1, "filename": "prfsim-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f0acdec69aa6a26d34a231f9f444e2e2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19956, "upload_time": "2018-05-04T12:45:27", "url": "https://files.pythonhosted.org/packages/34/87/9081a945cf68e3e71eea732bb1246508773b447c7932ff0ae8ada2fdcf8a/prfsim-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5ba22f366f163b3611f0e13deaa6ed2c", "sha256": "cf84f81ccec739fa0f91aa85cef6a291eea993d7f08fa10edd40bde8a6092fcf" }, "downloads": -1, "filename": "prfsim-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5ba22f366f163b3611f0e13deaa6ed2c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24508, "upload_time": "2018-05-04T13:20:07", "url": "https://files.pythonhosted.org/packages/d1/6c/0e5aef49fad1f50a3adee876c7bf824bf4d07cda113c072aae46a0f2179d/prfsim-0.1.1-py2.py3-none-any.whl" } ], "0.1.10": [ { "comment_text": "", "digests": { "md5": "911d42e63dedd4a248b9a1a2c9d89135", "sha256": "8545d8082ede6b81549764034c971d3b364a2c8e97b0a77f9ac8d1b4ff2020d1" }, "downloads": -1, "filename": "prfsim-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "911d42e63dedd4a248b9a1a2c9d89135", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17470, "upload_time": "2018-05-11T12:14:26", "url": "https://files.pythonhosted.org/packages/c0/e0/227464bcc9ee4b76b143906886dd8fe2a231f9b1b939a0078ea0f3090a1f/prfsim-0.1.10-py2.py3-none-any.whl" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "3b1cae8d699ddaea660e1d24ebbc9b82", "sha256": "dda6eecca783fceaebc039bc09be0abf18c6b8751989be2a6780f3b381f5b89c" }, "downloads": -1, "filename": "prfsim-0.1.11-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b1cae8d699ddaea660e1d24ebbc9b82", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26499, "upload_time": "2018-05-11T13:00:05", "url": "https://files.pythonhosted.org/packages/9a/ed/b77baa51a8e4b554453df734a5f32f0bd1aa0ccbff64132750f532c2a3c3/prfsim-0.1.11-py2.py3-none-any.whl" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "1539951ce51d854375d5385a5efc775f", "sha256": "606430ae78fa1ee0cdd77f4dee1748b185d7b9f9ed2e506ab04b437d8ddebbf2" }, "downloads": -1, "filename": "prfsim-0.1.12-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1539951ce51d854375d5385a5efc775f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17638, "upload_time": "2018-05-11T13:42:40", "url": "https://files.pythonhosted.org/packages/0b/25/1d4c5cc6845150a2e1d7db0c45b3ad9ed1c273bc9d452d4c86f13753f5d9/prfsim-0.1.12-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1746863adca64d571a61f9c1291e4845", "sha256": "6693bdcd15619b8211f4a8f82c5b290a206b3903aab955d54df8a0c48463ab44" }, "downloads": -1, "filename": "prfsim-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1746863adca64d571a61f9c1291e4845", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24508, "upload_time": "2018-05-04T13:37:48", "url": "https://files.pythonhosted.org/packages/14/63/576c9787fd04fef0351a2da2677e1e7d3632d5670e1bdfdb9071d2413e03/prfsim-0.1.2-py2.py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c4149df94ade576fed7264938f4a2adc", "sha256": "33b2fe7e029859bf5d762ba328d2af75d1fa9cf96f5f4debeed9f5528ebd1097" }, "downloads": -1, "filename": "prfsim-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c4149df94ade576fed7264938f4a2adc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24221, "upload_time": "2018-05-04T14:13:22", "url": "https://files.pythonhosted.org/packages/a9/f5/9eb726d61212ff38f8ea0ade78111196e74ba77b42b5c68e77060e951a74/prfsim-0.1.3-py2.py3-none-any.whl" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "7a8a169e394b0679e046e8eacf559b45", "sha256": "1557d76cda47ce48379123ae8d147c8ba7e828f206d4b40af74f486c94c1ca29" }, "downloads": -1, "filename": "prfsim-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7a8a169e394b0679e046e8eacf559b45", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26282, "upload_time": "2018-05-04T15:02:06", "url": "https://files.pythonhosted.org/packages/08/d7/fbaecc90c159124c3343f323982ece585b9f8326047f660dae4cb023ae3e/prfsim-0.1.4-py2.py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a4ee48e11ca476865b148d0a7f19e5b9", "sha256": "31c96b2debde79ddf922528df7dc5efc2c889f533b96e5587580791c83a56d2f" }, "downloads": -1, "filename": "prfsim-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a4ee48e11ca476865b148d0a7f19e5b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26281, "upload_time": "2018-05-04T15:03:54", "url": "https://files.pythonhosted.org/packages/3a/97/f1bb04c198508331bf6b51d407d12ef439e1ae2d6b12a14dbac6ac08cef5/prfsim-0.1.5-py2.py3-none-any.whl" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "f576f4577812634b55fe2d127e23e046", "sha256": "e4d010e6f1883f4d282e5cf6bb5ecd88298f31617f6af525d8558473495a8410" }, "downloads": -1, "filename": "prfsim-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f576f4577812634b55fe2d127e23e046", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26280, "upload_time": "2018-05-11T11:17:36", "url": "https://files.pythonhosted.org/packages/96/e4/2a828c350ddcb53dec1f5aeb9c64511c1d15d45c2d892cf323f5eda32e3f/prfsim-0.1.6-py2.py3-none-any.whl" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "7d91c28f81c62cce4ca704e09c5b857f", "sha256": "3d66d7a9026be58f11a8a919c8c1b68adea2e71890a7a37db6aea20c1f6b3216" }, "downloads": -1, "filename": "prfsim-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d91c28f81c62cce4ca704e09c5b857f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26314, "upload_time": "2018-05-11T11:36:40", "url": "https://files.pythonhosted.org/packages/7a/5d/1b046a785df7effa2e2823be50dbf25a3786f4221b66368c0120a50e9cce/prfsim-0.1.7-py2.py3-none-any.whl" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "95305c69e2d36d7cb5350e5d69321193", "sha256": "67ff348f2909fb46c4c77f38900f2f4b5fc4b121fe07eb1555f7a2e2edb73798" }, "downloads": -1, "filename": "prfsim-0.1.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "95305c69e2d36d7cb5350e5d69321193", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26311, "upload_time": "2018-05-11T11:46:06", "url": "https://files.pythonhosted.org/packages/dd/b2/c9cb2a763f8c378b7d607d6f745952ac40103c1b4c8707722f987641d4b3/prfsim-0.1.8-py2.py3-none-any.whl" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "aac9d48bdffddbe8fa39e5283422c9e9", "sha256": "570fca0092ad94883bc4b4b065613407f8ff7c3ef442aaa0c8bff956bde46a8e" }, "downloads": -1, "filename": "prfsim-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aac9d48bdffddbe8fa39e5283422c9e9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 26314, "upload_time": "2018-05-11T11:58:22", "url": "https://files.pythonhosted.org/packages/61/27/03a5dd9b00d80223cf1f9d035035dba8f8837dd8b1612ea1da591761ee5b/prfsim-0.1.9-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1539951ce51d854375d5385a5efc775f", "sha256": "606430ae78fa1ee0cdd77f4dee1748b185d7b9f9ed2e506ab04b437d8ddebbf2" }, "downloads": -1, "filename": "prfsim-0.1.12-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1539951ce51d854375d5385a5efc775f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17638, "upload_time": "2018-05-11T13:42:40", "url": "https://files.pythonhosted.org/packages/0b/25/1d4c5cc6845150a2e1d7db0c45b3ad9ed1c273bc9d452d4c86f13753f5d9/prfsim-0.1.12-py2.py3-none-any.whl" } ] }