{"id":22794824,"url":"https://github.com/menchelab/analytics_module","last_synced_at":"2025-04-19T03:20:36.546Z","repository":{"id":40956868,"uuid":"213907077","full_name":"menchelab/Analytics_Module","owner":"menchelab","description":"Flask-based server handling data requests from the UI Module (VRNetzer)","archived":false,"fork":false,"pushed_at":"2023-05-01T22:15:57.000Z","size":21538,"stargazers_count":2,"open_issues_count":11,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T06:43:22.570Z","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/menchelab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-09T12:02:54.000Z","updated_at":"2022-05-16T20:44:55.000Z","dependencies_parsed_at":"2024-12-12T04:10:43.524Z","dependency_job_id":"50b21ef4-8759-4d92-96ad-3c7d7d51bacb","html_url":"https://github.com/menchelab/Analytics_Module","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menchelab%2FAnalytics_Module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menchelab%2FAnalytics_Module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menchelab%2FAnalytics_Module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/menchelab%2FAnalytics_Module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/menchelab","download_url":"https://codeload.github.com/menchelab/Analytics_Module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249598452,"owners_count":21297464,"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-12-12T04:10:33.345Z","updated_at":"2025-04-19T03:20:36.530Z","avatar_url":"https://github.com/menchelab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"The Readme for the whole VRNetzer platform is [HERE](https://github.com/menchelab/vrnetzer)\n\n# Analytics Module\n\n*The Analytics Module is a flexible interface between the MySQL database\ncontaining network data and the VR-based front end. It is implemented\nin Flask, a minimalist Python-based framework for web development.*\n\n# Installing and running locally (mac/linux/windows)\n\n1. Make sure you are running Python 3 (we tested with 3.6 and up),\n   preferably in a virtual environment. If using Windows check out the guide at: https://flask.palletsprojects.com/en/1.1.x/installation/ for instructions about how to get a virtualenv set up right.\n1. Clone this repository `git clone git@github.com:menchelab/Analytics_Module.git`\n1. Navigate to the repo `cd dataserver`\n1. Install dependencies `pip install -r requirements.txt`\n1. Run the server with `python3 app.py`\n3. If it doesn't work set your flask environment `export FLASK_APP=app` (note that you can\n   also use app_lite if you don't want the API)\n1. Optionally, configure it as a development environment, which would\n   make the server reload with every code change. `export FLASK_ENV=development`\n1. Configure your database file. To do this, copy db_config_template.py\n   to db_config.py and fill in your database locations, usernames, and\n   passwords.\n1. Finally, spin up the server: `flask run`. The output message\n   in the console will tell you the web address for the server,\n   typically http://127.0.0.1:1337/.\n\n\n# Uploading a Layout / File structure\n\nThe file format for uploading a new layout into VR should be a .csv with the following structure.\nThe file should be composed of nine columns with the following content: ID | X | Y | Z | R | G | B | A | Layout type\n\n#### Data types of each column : \n- ID = string of gene IDs\n- X, Y, Z = floats of coordinates\n- R, G, B  = color values as integer in the range of 0 - 255\n- A = opacity values as integer (100 = full saturated; 128 - 200 = glowing)\n- Namespace of layout = string with layout type (same value for each row, for nodes in a layout) \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenchelab%2Fanalytics_module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmenchelab%2Fanalytics_module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmenchelab%2Fanalytics_module/lists"}