{ "info": { "author": "Pokey Rule", "author_email": "pokey.rule@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.6" ], "description": "Blind files\n===========\n\nGenerates a mapping from file names to blind but memorable file names. This\nscript assumes that you have a directory that contains files and / or\nsubdirectories with samples from an experiment. The names of these files and\ndirectories reveal which group the samples belong to, but the contents of the\nfiles do not.\n\nThe script will move these files to a new directory, renaming them so that the\nnew file names do not reveal which group the samples belong to. It will also\ngenerate a mapping file to indicate how the new files map to the original\nfiles.\n\nInstalling\n----------\n\nRun `pip3 install blind_files`.\n\nRunning\n-------\n\nThis script takes an input dir, and generates a directory containing a script,\n`blind.sh`, that can be used to blind the files in the input dir. It also\ngenerates a mapping csv, `mapping.csv`, that can be used after the user has\ndone the analysis to see how the original names map to blinded names.\n\nThe script has two modes of operation:\n\n### Using a delimiter\nIn the first mode of operation, you can specify a delimiter to use such that\nall the text before the delimiter in each file name will be replaced. For\nexample:\n\n```sh\nblind_files \\\n --mode delimiter \\\n --delimiter _foo \\\n --input-dir input_dir \\\n --output-dir output_dir \\\n --mapping-dir mapping_dir\n```\n\nIn this case, if `input_dir` contains the following files:\n\n```\nsample_1_foo.txt\nsample_1_foo-bar.csv\nsample_2_foo.txt\nhello.txt\n```\n\nThen after running `mapping_dir/blind.sh`, `output_dir` will contain\n\n```\ngolf_elbow_foo.txt\ngolf_elbow_foo-bar.csv\nco-producer_reputation_foo.txt\nhello.txt\n```\n\nIn `mapping_dir` you will also find a file `mapping.csv` with the contents:\n\n```\noriginal,blinded\nsample_1,golf_elbow\nsample_2,co-producer_reputation\n```\n\n#### Limitations\nThis will only replace names at the top level of the input directory. If you\nhave a more complex nested directory structure, where the identifer names may\nbe buried in the directory tree, use identifier list approach described below.\n\n### Using a list of identifiers\nIn the second mode of operation, you can specify list of identifiers that\nshould be blinded whenever they are encountered in the input directory tree.\nFor example, if `identifiers.txt` contains the following:\n\n```\ngroup_a_1\ngroup_b_1\n```\n\nthen running\n\n```sh\nblind_files \\\n --mode identifiers \\\n --identifiers identifiers.txt \\\n --input-dir input_dir \\\n --output-dir output_dir \\\n --mapping-dir mapping_dir\n```\n\nIn this case, if `input_dir` contains the following files:\n\n```\ngroup_a_1/group_a_1/foo.txt\ngroup_b_1/group_b_1/foo.txt\nhello.txt\n```\n\nThen after running `mapping_dir/blind.sh`, `output_dir` will contain\n\n```\nhead_bottle/head_bottle/foo.txt\neponym_curtain/eponym_curtain/foo.txt\nhello.txt\n```\n\nIn `mapping_dir` you will also find a file `mapping.csv` with the contents:\n\n```\noriginal,blinded\ngroup_a_1,head_bottle\ngroup_b_1,eponym_curtain\n```\n\n#### Limitations\nNo identifier can be a substring of any other identifier. For example, it is\nnot allowed to have identifiers `sample_1` and `sample_11`. However,\n`sample_01` and `sample_11` would be fine.\n\nGeneral limitations\n-------------------\n- This script should work on any platform, but has only been tested on Mac OS.\n- This script should handle symlinks by simply moving the symlink, without\n following it, but this behavior has not been tested.\n\nCredits\n-------\nThis package was created with\n[Cookiecutter](https://github.com/audreyr/cookiecutter-pypackage).\n\nnounlist from [here](http://www.desiquintans.com/downloads/nounlist/nounlist.txt).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pokey/blind_files", "keywords": "blind_files", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "blind-files", "package_url": "https://pypi.org/project/blind-files/", "platform": "", "project_url": "https://pypi.org/project/blind-files/", "project_urls": { "Homepage": "https://github.com/pokey/blind_files" }, "release_url": "https://pypi.org/project/blind-files/0.2.4/", "requires_dist": [ "Click (>=6.0)", "pyahocorasick (>=1.1.8)" ], "requires_python": "", "summary": "Relabel files in order to work on them blind", "version": "0.2.4" }, "last_serial": 4288789, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "7ab14c9835cc684ba0be1bf8185971f9", "sha256": "0a11912e648a838d280eb0fc6c5fa9691e8623b14cd362aae49409164015ff5d" }, "downloads": -1, "filename": "blind_files-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7ab14c9835cc684ba0be1bf8185971f9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6519, "upload_time": "2018-09-19T14:20:04", "url": "https://files.pythonhosted.org/packages/6a/2a/ee11da0989b7cf702f8e6f6b3a1be3e87ecadb56d83b9e5e5d88488a4389/blind_files-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "320bbd342eec96853ef9577a7e583cdf", "sha256": "66b96aa3e01e549340fdf1778ff2bbefbb97eb7bfd380a14ea4783aeae20df1e" }, "downloads": -1, "filename": "blind_files-0.2.1.tar.gz", "has_sig": false, "md5_digest": "320bbd342eec96853ef9577a7e583cdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15317, "upload_time": "2018-09-19T14:20:05", "url": "https://files.pythonhosted.org/packages/e5/ae/73eb253c381779d58179eec58238e19fe468e84da5166cfb54057e55342e/blind_files-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "37a6a5c366f1141e54ab132bf8b96b6a", "sha256": "a819f640ba44357e7c48e9cf85ef39800d260afadc92e5b14d93134eb0d28551" }, "downloads": -1, "filename": "blind_files-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "37a6a5c366f1141e54ab132bf8b96b6a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6462, "upload_time": "2018-09-19T14:26:20", "url": "https://files.pythonhosted.org/packages/e8/d1/16efade7d5363a3e7c6ebb581d15115baf746d969751a5e43ca59ed6e5c7/blind_files-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0b7ff3ba5b5fc73539ed8d21d25dc1f", "sha256": "d78ebafb2374dfb27c722996ac11470bd5a069ecf1970bb889d1b6372456d873" }, "downloads": -1, "filename": "blind_files-0.2.2.tar.gz", "has_sig": false, "md5_digest": "b0b7ff3ba5b5fc73539ed8d21d25dc1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15216, "upload_time": "2018-09-19T14:26:22", "url": "https://files.pythonhosted.org/packages/ba/c8/c271c10e451f30a62fb4c66d791d9e8447af913cad84d5bdc5711513431f/blind_files-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "27c450e126e19b1e3f0281032e2e2d72", "sha256": "7b7b7a688986438d50425b08d79bd7e7b180afd3faa0219fe83e7a6463c737c4" }, "downloads": -1, "filename": "blind_files-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "27c450e126e19b1e3f0281032e2e2d72", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6592, "upload_time": "2018-09-19T14:37:08", "url": "https://files.pythonhosted.org/packages/35/a7/4f60163cb5df8361ba94c1eab4e35e86793d976e3ce86ecb9f490486489a/blind_files-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d7df24b5721de3b4bfe23893bc34287", "sha256": "f6d6876765bfaf449b34f00a2b8f713b863fa8f5c59f16352c7dee4e39f34e7b" }, "downloads": -1, "filename": "blind_files-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0d7df24b5721de3b4bfe23893bc34287", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15328, "upload_time": "2018-09-19T14:37:09", "url": "https://files.pythonhosted.org/packages/4a/97/60eddac769913499c05e3e99f85d37f1678fa7d17bc35ae7edef27613e04/blind_files-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "5489ba24934f4cb8e1fb7610e6244c3a", "sha256": "3e509bcea8d15bd50513d744020b0d75d2458e7fee24aadb1df117a20818f5a5" }, "downloads": -1, "filename": "blind_files-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5489ba24934f4cb8e1fb7610e6244c3a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6682, "upload_time": "2018-09-19T14:43:48", "url": "https://files.pythonhosted.org/packages/48/aa/0124dcc9a525f7b2a817e950602e172dc84076546b696e3717e056c90b63/blind_files-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "300abbbd4c3feb13e5d6ea070778bfa1", "sha256": "1271313b68e5ab7a7fb6c6ca768f17cf1e7f58954a2f773a30baa784d3231ab0" }, "downloads": -1, "filename": "blind_files-0.2.4.tar.gz", "has_sig": false, "md5_digest": "300abbbd4c3feb13e5d6ea070778bfa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15537, "upload_time": "2018-09-19T14:43:49", "url": "https://files.pythonhosted.org/packages/8a/13/ebd06089f1a4f68cbc7ff5b99616ea5f2b1b65b3fbbb498f16d477edace4/blind_files-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5489ba24934f4cb8e1fb7610e6244c3a", "sha256": "3e509bcea8d15bd50513d744020b0d75d2458e7fee24aadb1df117a20818f5a5" }, "downloads": -1, "filename": "blind_files-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5489ba24934f4cb8e1fb7610e6244c3a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6682, "upload_time": "2018-09-19T14:43:48", "url": "https://files.pythonhosted.org/packages/48/aa/0124dcc9a525f7b2a817e950602e172dc84076546b696e3717e056c90b63/blind_files-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "300abbbd4c3feb13e5d6ea070778bfa1", "sha256": "1271313b68e5ab7a7fb6c6ca768f17cf1e7f58954a2f773a30baa784d3231ab0" }, "downloads": -1, "filename": "blind_files-0.2.4.tar.gz", "has_sig": false, "md5_digest": "300abbbd4c3feb13e5d6ea070778bfa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15537, "upload_time": "2018-09-19T14:43:49", "url": "https://files.pythonhosted.org/packages/8a/13/ebd06089f1a4f68cbc7ff5b99616ea5f2b1b65b3fbbb498f16d477edace4/blind_files-0.2.4.tar.gz" } ] }