{ "info": { "author": "Rudolph Pienaar", "author_email": "rudolph.pienaar@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pl-freesurfer_pp\n================\n\n.. image:: https://badge.fury.io/py/freesurfer_pp.svg\n :target: https://badge.fury.io/py/freesurfer_pp\n\n.. image:: https://travis-ci.org/FNNDSC/freesurfer_pp.svg?branch=master\n :target: https://travis-ci.org/FNNDSC/freesurfer_pp\n\n.. image:: https://img.shields.io/badge/python-3.5%2B-blue.svg\n :target: https://badge.fury.io/py/pl-freesurfer_pp\n\n.. contents:: Table of Contents\n\n\nAbstract\n--------\n\n``freesurfer_pp.py`` is a *dummy* FreeSurfer plugin / container that is prepopulated with the results of several *a priori* FreeSurfer runs. For a given run, this script will simply copy elements of one of these prior runs to the output directory. \n\nSynopsis\n--------\n\n.. code::\n\n python freesurfer_pp.py \\\n [-v ] [--verbosity ] \\\n [--version] \\\n [--man] \\\n [--meta] \\\n [--copySpec ] \\\n [--ageSpec ] \\\n \\\n \n\nRun\n----\n\nThis ``plugin`` can be run in two modes: natively as a python package or as a containerized docker image. The PyPI mode is largely included for completeness sake and only useful if run against some pre-processed tree that exists in the filesystem. \n\nUsing PyPI\n~~~~~~~~~~\n\n*You probably do not want to run the PyPI version unless you are a developer! Mostly likely you want the docker containerized run -- see the next section.*\n\nTo run from PyPI, simply do a \n\n.. code:: bash\n\n pip install freesurfer_pp\n\nand run with\n\n.. code:: bash\n\n freesurfer.py --man /tmp /tmp\n\n\nUsing ``docker run``\n~~~~~~~~~~~~~~~~~~~~\n\nThe real utility of this package is to run it containerized against bundled data that is packed into the container.\n\nAssign an \"input\" directory to ``/incoming`` and an \"output\" directory to ``/outgoing``. Note that the \"input\" directory is effectively ignored by this plugin, but is required. Make sure that the host ``$(pwd)/out`` directory is world writable!\n\nIn the simplest sense, the plugin can be run with\n\n.. code:: bash\n\n mkdir in out && chmod 777 out\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-freesurfer_pp freesurfer_pp.py \\\n /incoming /outgoing\n\nwhich will copy **only** the internal `stats` directory from a ``10-yr/06-mo/01-da`` subject to the output. By specifying a ``--copySpec stats,3D,sag,cor,tra`` several additional directories containing png image frames through parcellated sagittal, coronal, and transverse (axial) planes as well as multiple 3D images are also copied.\n\nExamples\n--------\n\nCheck available pre-processed runs\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo get a listing of the internal tree of already processed and available FreeSurfer choices:\n\n.. code:: bash\n\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-freesurfer_pp freesurfer_pp.py \\\n -T ../preprocessed \\\n /incoming /outgoing\n\nThis will print a tree of the available choices of `preprocessed` data in a directory tree. \n\nCopy the default for a selected pre-processed run\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSelect one run, say the `08-yr/07-mo/16-da` and specify that to copy:\n\n.. code:: bash\n\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-freesurfer_pp freesurfer_pp.py \\\n -a 08-07-16 \\\n /incoming /outgoing\n\nSimulate a processing delay\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo simulate a processing delay, specify some time in seconds:\n\n.. code:: bash\n\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-freesurfer_pp freesurfer_pp.py \\\n -a 08-07-16 \\\n -P 20 \\\n /incoming /outgoing\n\nExplicitly copy all the data including images from a pre-processed run\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo copy all the image directories from the ``10-yr/06-mo/01-da`` subject, \n\n.. code:: bash\n\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-freesurfer_pp freesurfer_pp.py \\\n -a 10-06-01 \\\n -c stats,sag,cor,tra,3D \\\n /incoming /outgoing", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FNNDSC/pl-freesurfer_pp", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "freesurfer-pp", "package_url": "https://pypi.org/project/freesurfer-pp/", "platform": "", "project_url": "https://pypi.org/project/freesurfer-pp/", "project_urls": { "Homepage": "https://github.com/FNNDSC/pl-freesurfer_pp" }, "release_url": "https://pypi.org/project/freesurfer-pp/2.0.8/", "requires_dist": null, "requires_python": "", "summary": "A simple/dummy app that simulates a FreeSurfer run", "version": "2.0.8" }, "last_serial": 5309165, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "f6b1b7bff4ef7857458830c8e2d289b4", "sha256": "8879f715926446984303ea8f115b8850a7df9099c7bfce33bca56be0ae6e68a2" }, "downloads": -1, "filename": "freesurfer_pp-2.0.0.tar.gz", "has_sig": false, "md5_digest": "f6b1b7bff4ef7857458830c8e2d289b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6021, "upload_time": "2019-03-28T15:45:52", "url": "https://files.pythonhosted.org/packages/07/32/658d3761ddfe1b7ca426722c31644a0cb37196500ed0b6ca6476292768d1/freesurfer_pp-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "579ae0d91360c98bb0d5c590fb32936a", "sha256": "0670b127fc1375487a43abcc666b9cc1a2eb880db627080606dbf914b3b886c8" }, "downloads": -1, "filename": "freesurfer_pp-2.0.1.tar.gz", "has_sig": false, "md5_digest": "579ae0d91360c98bb0d5c590fb32936a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6019, "upload_time": "2019-03-28T15:55:51", "url": "https://files.pythonhosted.org/packages/2d/20/f247bed0e11f81a84c8206fc7f932c617d8e4857cfc431843ca818edcc21/freesurfer_pp-2.0.1.tar.gz" } ], "2.0.6": [ { "comment_text": "", "digests": { "md5": "af32a9fd1aaaaef590e3dd4521dd89ce", "sha256": "e8a24fae0f2496e7bc8e922265f7ce35f689942cccb01cb4e6a7dbe0bf1275c5" }, "downloads": -1, "filename": "freesurfer_pp-2.0.6.tar.gz", "has_sig": false, "md5_digest": "af32a9fd1aaaaef590e3dd4521dd89ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6026, "upload_time": "2019-05-23T19:48:00", "url": "https://files.pythonhosted.org/packages/7a/5f/0105cdb1a368353fb13f4b51a06b835b28150ef18a47ebac9f000a60cd01/freesurfer_pp-2.0.6.tar.gz" } ], "2.0.8": [ { "comment_text": "", "digests": { "md5": "49146a432a9cd40e75ef64ffa228cc98", "sha256": "6d9653008e7f2e81fc7e2204c5ebbac0a826dea1c504ad3c89a069cdd4198b3e" }, "downloads": -1, "filename": "freesurfer_pp-2.0.8.tar.gz", "has_sig": false, "md5_digest": "49146a432a9cd40e75ef64ffa228cc98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5952, "upload_time": "2019-05-23T19:50:20", "url": "https://files.pythonhosted.org/packages/09/03/53202ff6231a1de5e492e9fa7a0d9659253a5bf85c0d4196e3c638f50c6b/freesurfer_pp-2.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49146a432a9cd40e75ef64ffa228cc98", "sha256": "6d9653008e7f2e81fc7e2204c5ebbac0a826dea1c504ad3c89a069cdd4198b3e" }, "downloads": -1, "filename": "freesurfer_pp-2.0.8.tar.gz", "has_sig": false, "md5_digest": "49146a432a9cd40e75ef64ffa228cc98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5952, "upload_time": "2019-05-23T19:50:20", "url": "https://files.pythonhosted.org/packages/09/03/53202ff6231a1de5e492e9fa7a0d9659253a5bf85c0d4196e3c638f50c6b/freesurfer_pp-2.0.8.tar.gz" } ] }