{"id":18479028,"url":"https://github.com/fasttrackorg/fastanalysis","last_synced_at":"2025-05-13T18:30:14.015Z","repository":{"id":43226013,"uuid":"275381016","full_name":"FastTrackOrg/FastAnalysis","owner":"FastTrackOrg","description":"FastAnalysis is a python module for analysing result from FastTrack tracking software.","archived":false,"fork":false,"pushed_at":"2022-06-10T15:57:12.000Z","size":2439,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-19T06:58:16.711Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FastTrackOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-27T13:46:32.000Z","updated_at":"2021-11-28T08:23:34.000Z","dependencies_parsed_at":"2022-09-02T18:30:21.915Z","dependency_job_id":null,"html_url":"https://github.com/FastTrackOrg/FastAnalysis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastTrackOrg%2FFastAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastTrackOrg%2FFastAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastTrackOrg%2FFastAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FastTrackOrg%2FFastAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FastTrackOrg","download_url":"https://codeload.github.com/FastTrackOrg/FastAnalysis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003089,"owners_count":21997834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T12:13:07.416Z","updated_at":"2025-05-13T18:30:13.994Z","avatar_url":"https://github.com/FastTrackOrg.png","language":"Python","readme":"# FastAnalysis\n FastAnalysis is a python module for analysing result from [FastTrack](http://www.fasttrack.sh) tracking software.\n \n ## Project info\n ![Linux tests](https://github.com/FastTrackOrg/FastAnalysis/workflows/Linux%20tests/badge.svg) ![Macos tests](https://github.com/FastTrackOrg/FastAnalysis/workflows/Macos%20tests/badge.svg) ![Windows tests](https://github.com/FastTrackOrg/FastAnalysis/workflows/Windows%20tests/badge.svg)\n \n ## Installation\n To install the module:\n\n### From PyPi\n  ```\n  pip install fastanalysis\n  ```\n\n### From source\n ```\n git clone https://github.com/FastTrackOrg/FastAnalysis.git\n cd FastAnalysis\n pip install .\n ```\n \n ## Development\n The project is under active development and do not have public API documentation, a more or less complete API documentation can be generated using Sphinx.\n \n ## Documentation\n \n ### Retrieve data from a tracking.txt file\n A tracking.txt file can be loaded and several method are available to select objects and frames:\n ```\n import fastanalysis as fa\n \n tracking = fa.Load(\"tracking.txt\")\n fa.isObjectsInFrame(0, 100) # Check if object with id 0 is in the 100th frame\n fa.isObjectsInFrame([0, 1], 100) # Check if object with id 0 and 1 is in the 100th frame\n a = tracking.getObjectsInFrames(0, 100) # Select data of the object with id 0 in the 100th frame\n b = tracking.getObjectsInFrames([0,1], [100,101]) # Select data of the object with id 0 and 1 in the 100th and 101th frames\n c = tracking.getObjects(0) # Select data of the object with id 0 for all the frames\n d = tracking.getObjects([0,1]) # Select data of the object with id 0 and 1 for all the frames\n e = tracking.getFrame(100) # Select data for all the objects in the 100th frame\n f = tracking.getFrame([100,101]) # Select data for all the objects in the 100th and 101th frames\n ```       \n \n ### Export data\n ```\n import fastanalysis as fa\n \n tracking = fa.Load(\"tracking.txt\")\n keys = fa.keys() # List export features\n fa.export(\"output.xlsx\", delimiter='\\t', keys=[\"xHead\", \"yHead\", \"imageNumber\", \"id\"], ids=None, indexes=None, format=\"excel\") # Export a list of features for all the frames and all the objects in an excel file.\n fa.export(\"output.txt\", delimiter='\\t', keys=None, ids=None, indexes=None, format=\"excel\") # Export all thefeatures for all the frames and all the objects in an csv file.\n ```\n Two format are supported: csv and excel.\n \n ### Plot metrics\n ```\n import fastanalysis as fa\n import matplotlib.pyplot as plt\n \n tracking = fa.Load(\"tracking.txt\")\n plotObj = fa.Plot(tracking)\n plotObj.velocityDistribution(ids=[0, 1], key=\"Body\", pooled=False, subplots=True) # Plot velocity distribution for objects 1 and 0 in 2 subplots\n plotObj.velocityDistribution(ids=[0, 1], key=\"Body\", pooled=False, subplots=False) # Plot velocity distribution for objects 1 and 0 in 1 plot\n plotObj.velocityDistribution(ids=[0, 1], key=\"Body\", pooled=True) # Plot velocity distribution for objects 1 and 0 pooled in 1 distribution\n ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasttrackorg%2Ffastanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasttrackorg%2Ffastanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasttrackorg%2Ffastanalysis/lists"}