{ "info": { "author": "FNNDSC", "author_email": "dev@babymri.org", "bugtrack_url": null, "classifiers": [], "description": "pfdicomtag\n==========\n\nQuick Overview\n--------------\n\n- Extract DICOM tags.\n\nOverview\n--------\n\npfdicomtag is a dir-based DICOM file tag extractor. By 'dir-based' is understood that input DICOMs exist in a nested directory tree, and results of the tag extraction are written an output tree. This tree mimics the structure of the input data tree.\n\nDependencies\n------------\n\nMake sure that the following dependencies are installed on your host\nsystem/python3 virtual env:\n\n- pydicom (to read DICOM files)\n- matplotlib (to save data in various image formats)\n- pillow (to save data in jpg format)\n\nInstallation\n~~~~~~~~~~~~\n\nThe best method of installing this script and all of its dependencies is\nby fetching it from PyPI\n\n.. code:: bash\n\n pip3 install pydicomtag\n\nYou migh get an error about `python3-tk` not installed. So you should install that package.\nFor example on Ubuntu:\n\n.. code:: bash\n\n sudo apt-get update\n sudo apt-get install -y python3-tk\n\n\nCommand line arguments\n----------------------\n\n::\n -I|--inputDir \n Input DICOM directory to examine. By default, the first file in this\n directory is examined for its tag information. There is an implicit\n assumption that each contains a single DICOM series.\n\n -i|--inputFile \n An optional specified relative to the . If \n specified, then do not perform a directory walk, but convert only \n this file.\n\n -e|--extension \n An optional extension to filter the DICOM files of interest from the \n .\n\n [-O|--outputDir ]\n The directory to contain all output files.\n\n NOTE: If neither -F nor -T are specified, a '-r raw' is\n assumed.\n\n -F|--tagFile \n Read the tags, one-per-line in , and print the\n corresponding tag information in the DICOM .\n\n -T|--tagList \n Read the list of comma-separated tags in , and print the\n corresponding tag information parsed from the DICOM .\n\n -m|--image <[:]imageFile>\n If specified, also convert the to . If the\n name is preceded by an index and colon, then convert this indexed \n file in the particular .\n\n -o|--outputFileStem \n The output file stem to store data. This should *not* have a file\n extension, or rather, any \".\" in the name are considered part of \n the stem and are *not* considered extensions.\n\n [-t|--outputFileType ]\n A comma specified list of output types. These can be:\n\n o \n o raw -raw.txt the raw internal dcm structure to string\n o json .json a json representation\n o html .html an html representation with optional image\n o dict -dict.txt a python dictionary\n o col -col.txt a two-column text representation (tab sep)\n o csv .csv a csv representation\n\n [-p|--printToScreen]\n If specified, will print tags to screen.\n\n [-x|--man]\n Show full help.\n\n [-y|--synopsis]\n Show brief help.\n\n -v|--verbosity \n Set the app verbosity level. \n\n -1: No internal output.\n 0: All internal output.\n\nExamples\n~~~~~~~~\n\nReplicate a tree and for each DICOM series dir, create multiple reports, including an html output with an embedded image of the center (middle file) of the series:\n\n.. code:: bash\n\n pfdicomtag -I /var/www/html/normative \\\n -m m:out.jpg -e dcm \\\n -o %PatientAge-%md5PatientID \\\n -O /var/www/html/tag \\\n -t raw,json,col,csv,html,dict", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FNNDSC/med2image", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pfdicomtag", "package_url": "https://pypi.org/project/pfdicomtag/", "platform": "", "project_url": "https://pypi.org/project/pfdicomtag/", "project_urls": { "Homepage": "https://github.com/FNNDSC/med2image" }, "release_url": "https://pypi.org/project/pfdicomtag/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "(Python) utility to extract meta data from trees of organized DICOM files.", "version": "1.0.0" }, "last_serial": 3997826, "releases": { "0.9.9": [ { "comment_text": "", "digests": { "md5": "2516815804d995e08d7dfaa96ab4b753", "sha256": "94c71f44ba9934074cde84701af5f72d279cb0c9d6e3d256fa8cb228ab305504" }, "downloads": -1, "filename": "pfdicomtag-0.9.9.tar.gz", "has_sig": false, "md5_digest": "2516815804d995e08d7dfaa96ab4b753", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10925, "upload_time": "2018-06-22T21:15:04", "url": "https://files.pythonhosted.org/packages/27/42/b4a90f810fbc89680f16174162028f695e08644e0e0c42bbc538e0c38002/pfdicomtag-0.9.9.tar.gz" } ], "0.99.99": [ { "comment_text": "", "digests": { "md5": "3c14ba04826dcee12e382379f4084e7d", "sha256": "356372c545ed9ad18111ff15e9825fe75f7eb67196fba6bc2cd258ab266ea08e" }, "downloads": -1, "filename": "pfdicomtag-0.99.99.tar.gz", "has_sig": false, "md5_digest": "3c14ba04826dcee12e382379f4084e7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10628, "upload_time": "2018-06-24T22:47:25", "url": "https://files.pythonhosted.org/packages/e6/d6/ec2746f8bf1400b32942beceac27f68d531b86b85a6777c18026731c185f/pfdicomtag-0.99.99.tar.gz" } ], "0.99.999": [ { "comment_text": "", "digests": { "md5": "07842650c7f1465536dc61279c8d36dc", "sha256": "9bc2028d5a9287ed70d8e320880533f9a3493b6083d36cf2ae095cf13c7af416" }, "downloads": -1, "filename": "pfdicomtag-0.99.999.tar.gz", "has_sig": false, "md5_digest": "07842650c7f1465536dc61279c8d36dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10628, "upload_time": "2018-06-24T22:49:42", "url": "https://files.pythonhosted.org/packages/54/2a/d8d12ded726c4081e6d68de3d8b32438174cdbfb9051d05b5f182e69728a/pfdicomtag-0.99.999.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "65d001f846d14d890385116c77f365aa", "sha256": "f6c267fe215ebad9b5f4c56fa31aa3cc17d81d8748227c3de1e8de70620373d6" }, "downloads": -1, "filename": "pfdicomtag-1.0.0.tar.gz", "has_sig": false, "md5_digest": "65d001f846d14d890385116c77f365aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10620, "upload_time": "2018-06-24T22:51:15", "url": "https://files.pythonhosted.org/packages/1e/76/81a543bcd6da11ab992af2af95c1b0f8c8cd3e2315f0d4129ddc699c4860/pfdicomtag-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "65d001f846d14d890385116c77f365aa", "sha256": "f6c267fe215ebad9b5f4c56fa31aa3cc17d81d8748227c3de1e8de70620373d6" }, "downloads": -1, "filename": "pfdicomtag-1.0.0.tar.gz", "has_sig": false, "md5_digest": "65d001f846d14d890385116c77f365aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10620, "upload_time": "2018-06-24T22:51:15", "url": "https://files.pythonhosted.org/packages/1e/76/81a543bcd6da11ab992af2af95c1b0f8c8cd3e2315f0d4129ddc699c4860/pfdicomtag-1.0.0.tar.gz" } ] }