{"id":18569468,"url":"https://github.com/timeu/ldviewer","last_synced_at":"2025-08-08T06:08:19.516Z","repository":{"id":3563581,"uuid":"4625311","full_name":"timeu/LDViewer","owner":"timeu","description":"GWT visualization widget for display ld plots","archived":false,"fork":false,"pushed_at":"2020-10-13T05:26:11.000Z","size":15884,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T11:24:49.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/timeu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2012-06-11T13:36:42.000Z","updated_at":"2020-02-26T08:18:56.000Z","dependencies_parsed_at":"2022-09-26T22:00:40.701Z","dependency_job_id":null,"html_url":"https://github.com/timeu/LDViewer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/timeu/LDViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FLDViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FLDViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FLDViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FLDViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timeu","download_url":"https://codeload.github.com/timeu/LDViewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FLDViewer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269373109,"owners_count":24406321,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06T22:34:13.434Z","updated_at":"2025-08-08T06:08:19.494Z","avatar_url":"https://github.com/timeu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is LDViewer?\n\n\nLDViewer is a Google Web Toolkit (GWT) widget containing a [processingjs][0] sketch for visualizing [LD triangle plots][1].\n\n![LDViewer](https://raw.githubusercontent.com/timeu/LDViewer/master/ldviewer.png \"LDViewer\")\n\n\n## How do I use it?\n\nFollowing steps are required:  \n\n```JAVA\nLDViewer ldviewer = new LDViewer();\nldviewer.load(new Runnable() {\n   @Override\n   public void run() {\n       GWT.log(\"LDViewer loaded\");\n       // Interact with sketch\n       ldviewer.showLDValues();\n   }\n});\n```\nTo display data users have to call the `showLDValues(int[] positions,float[][] r2Values, int start, int end)` function with following parameters:\n - `positions`: Array of integer \n - `r2Values`: multi-dimensional array of floats in a [triangular matrix][2] form.\n - `start`: start position (should be the first position of the position array)\n - `end`: end position (should be the last position of the position array)\n\nAn [example of this data][3] can be found in the sample application and one could load it this way: \n \n```JAVA\nfinal String jsonData = GET_FROM_CLIENTBUNDLE OR AJAX CALL\nLDData data = JsonUtils.safeEval(jsonData);\n```\n\n## How do I install it?\n\nIf you're using Maven, you can add the following to your `\u003cdependencies\u003e`\nsection:\n\n```xml\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.timeu.gwtlibs.ldviewer\u003c/groupId\u003e\n      \u003cartifactId\u003eldviewer\u003c/artifactId\u003e\n      \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\nLDViewer uses [GWT 2.8's][4] new [JSInterop feature][5] and thus it has to be enabled in the GWT compiler args.\nFor maven:\n```xml\n\u003ccompilerArgs\u003e\n    \u003ccompilerArg\u003e-generateJsInteropExports\u003c/compilerArg\u003e\n\u003c/compilerArgs\u003e\n```\nor passing it to the compiler via `-generateJsInteropExports`\n\nYou can also download the [jar][1] directly or check out the source using git\nfrom \u003chttps://github.com/timeu/ldviewer.git\u003e and build it yourself. Once\nyou've installed LDViewer, be sure to inherit the module in your .gwt.xml\nfile like this:\n\n```xml\n    \u003cinherits name='com.github.timeu.gwtlibs.ldviewer.LDViewer'/\u003e\n```\n\n## Where can I learn more?\n\n * Check out the [sample app][6] ([Source Code][7]) for a full example of using LDViewer.\n \n[0]: http://processingjs.org\n[1]: http://www.nature.com/nrg/journal/v4/n8/fig_tab/nrg1123_F1.html\n[4]: http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_BETA1\n[5]: https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.o7amqk9edhb9\n[2]: https://en.wikipedia.org/wiki/Triangular_matrix\n[3]: https://github.com/timeu/LDViewer/blob/master/ldviewer-sample/src/main/resources/sample/client/data/ld_sample_data.json\n[6]: http://timeu.github.io/LDViewer\n[7]: https://github.com/timeu/LDViewer/tree/master/ldviewer-sample \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeu%2Fldviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimeu%2Fldviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeu%2Fldviewer/lists"}