{ "info": { "author": "Dominic White", "author_email": "dewhite4@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# shapes\n\nshapes is a Python package for traditional and geometric morphometrics.\n\nIt can be used in a Python interpretator, or in a GUI online at [PhyloNimbus.com](http://www.phylonimbus.com/morphometrics/), where you can also digitize landmarks.\n\nUses include:\n\n* Procrustes superimposition.\n* Missing landmark estimation.\n\n## Installation\n\nshapes can be installed from the Python Package Index:\n\n`pip install shapes`\n\n## Usage\n\nRead files from Landmark editor:\n\n```\nimport shapes\nlms = shapes.read('/path/to/file')\n```\n\nThis returns a Shape object for that specimen.\n\nShape objects can be combined into ShapeSets:\n\n```\nshapeset = shapes.ShapeSet(name=\"Theropod skulls\")\nshapeset.append_shape(lms)\n```\n\nOnce you've added all relevant Shapes to a ShapeSet, the landmarks can be\naligned using \n[Procrustes Analysis](https://en.wikipedia.org/wiki/Procrustes_analysis):\n\n```\naligned_shapeset = shapes.procrustes_align(shapeset)\n```\n\nNote that this Procrustes alignment will work even if some landmarks are missing\n (in which case alignment will be based solely on the non-missing landmarks). \nThis could lead to systematic biases in your dataset depending on the \ndistribution of missing data. *Caveat emptor...*\n\nOnce the data set has been aligned as in the previous step, missing data can \nbe interpolated using one of two methods.\n\nUsing symmetry (for landmarks that are part of symmetrical pairs):\n\n```\npaired_landmarks = [(1,4),(2,5),(3,6)]\nsymmetrically_reconstructed = shapes.missing.estimate_from_symmetry(\n aligned_shapeset,\n paired_landmarks)\n```\n\nOr using the mean of the aligned homologous landmark in specimens where it is \npresent:\n\n```\nmean_reconstructed = shapes.missing.estimate_from_mean(aligned_shapeset)\n```\n\nLandmarks from all Shapes in a ShapeSet can be exported to csv:\n\n```\naligned_shapeset.export('output_file.csv')\n```\n\n## License\n\nshapes is available under the MIT license.\n\n## More information and citation\n\nWhite, D.E. (2016) Chapter 3 *of* The Evolution and Phylogenetic Analysis of \nthe Dinosaur Axial Skeleton. PhD Dissertation, George Washington University.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/DominicWhite/shapes", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "shapes", "package_url": "https://pypi.org/project/shapes/", "platform": "", "project_url": "https://pypi.org/project/shapes/", "project_urls": { "Homepage": "http://github.com/DominicWhite/shapes" }, "release_url": "https://pypi.org/project/shapes/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Tools for analyzing geometric morphometic shape", "version": "0.1.3" }, "last_serial": 3938215, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "9c693588fac6be78951e63740e9d2902", "sha256": "ce1e6d3927588d0dd3a769f04944760b2af3471e31175b639dfddceed6e1185b" }, "downloads": -1, "filename": "shapes-0.1.3.tar.gz", "has_sig": false, "md5_digest": "9c693588fac6be78951e63740e9d2902", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8289, "upload_time": "2018-06-07T03:57:35", "url": "https://files.pythonhosted.org/packages/a9/41/9f657eb75d4de581fae12f108d506709cdd847a7edc9e67380182602261c/shapes-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c693588fac6be78951e63740e9d2902", "sha256": "ce1e6d3927588d0dd3a769f04944760b2af3471e31175b639dfddceed6e1185b" }, "downloads": -1, "filename": "shapes-0.1.3.tar.gz", "has_sig": false, "md5_digest": "9c693588fac6be78951e63740e9d2902", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8289, "upload_time": "2018-06-07T03:57:35", "url": "https://files.pythonhosted.org/packages/a9/41/9f657eb75d4de581fae12f108d506709cdd847a7edc9e67380182602261c/shapes-0.1.3.tar.gz" } ] }