{"id":18569458,"url":"https://github.com/timeu/geneviewer","last_synced_at":"2025-08-17T13:38:32.667Z","repository":{"id":57723634,"uuid":"1355487","full_name":"timeu/GeneViewer","owner":"timeu","description":"A GWT Canvas Widget to display genes ","archived":false,"fork":false,"pushed_at":"2020-10-13T10:09:54.000Z","size":1560,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T05:37:42.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"2011-02-11T15:25:23.000Z","updated_at":"2020-02-26T09:40:25.000Z","dependencies_parsed_at":"2022-08-29T23:01:44.371Z","dependency_job_id":null,"html_url":"https://github.com/timeu/GeneViewer","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/timeu/GeneViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FGeneViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FGeneViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FGeneViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FGeneViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timeu","download_url":"https://codeload.github.com/timeu/GeneViewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timeu%2FGeneViewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856563,"owners_count":24657688,"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-17T02:00:09.016Z","response_time":129,"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:12.431Z","updated_at":"2025-08-17T13:38:32.641Z","avatar_url":"https://github.com/timeu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is GeneViewer?\n\n\nGeneViewer is a Google Web Toolkit (GWT) widget containing a [processingjs][0] sketch for visualizing gene models.\n\n![GeneViewer](https://raw.githubusercontent.com/timeu/GeneViewer/master/geneviewer.png \"GeneViewer\")\n\n\n## How do I use it?\n\nFollowing steps are required:  \n\n```JAVA\nGeneViewer geneviewer = new GeneViewer();\ngeneviewer.load(new Runnable() {\n   @Override\n   public void run() {\n       GWT.log(\"GeneViewer loaded\");\n       // Interact with sketch\n       JsArrayMixed data = getData();\n       geneviewer.setGeneData(data);\n   }\n});\n```\nTo display the gene models the user has to call the `setGEneData(JsArrayMixed data)` function. \nThe `JsArrayMixed` data consists of a list of genes in JSON format. There are 2 visualization modes: \n 1. Simple gene models without any features (See [sample data][1]).\n 2. Gene Models with features (see [sample data][2] and screenshot).\n\n**Example of data with features:**\n\n```JSON\n   [\n     [10421840,10424113,1,\"AT2G24530.1\",\n       [\n         [10422416,10422596,1,\"five_prime_UTR\"],\n         [10422272,10422312,1,\"five_prime_UTR\"],\n         [10421840,10421930,1,\"five_prime_UTR\"],\n         [10422416,10424113,1,\"exon\"],\n         [10423820,10424113,1,\"three_prime_UTR\"],\n         [10422272,10422312,1,\"exon\"],\n         [10421840,10421930,1,\"exon\"],\n         [10422596,10423820,1,\"CDS\"]\n       ]\n     ],\n     [  \n       [\n         \n       ]\n     ]\n   ]\n```\n\nThe data can be loaded this way: \n \n```JAVA\nfinal String jsonData = GET_FROM_CLIENTBUNDLE OR AJAX CALL\nJsArrayMixed 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.geneviewer\u003c/groupId\u003e\n      \u003cartifactId\u003egeneviewer\u003c/artifactId\u003e\n      \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\nGeneViewer uses [GWT 2.8's][3] new [JSInterop feature][4] 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][5] directly or check out the source using git\nfrom \u003chttps://github.com/timeu/geneviewer.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.geneviewer.GeneViewer'/\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 GeneViewer.\n \n[0]: http://processingjs.org\n[1]: https://github.com/timeu/GeneViewer/blob/master/geneviewer-sample/src/main/resources/sample/client/data/genes.json\n[2]: https://github.com/timeu/GeneViewer/blob/master/geneviewer-sample/src/main/resources/sample/client/data/genes_with_features.json\n[3]: http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_BETA1\n[4]: https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.o7amqk9edhb9\n[5]: https://github.com/timeu/GeneViewer/releases\n[6]: http://timeu.github.io/GeneViewer\n[7]: https://github.com/timeu/GeneViewer/tree/master/geneviewer-sample \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeu%2Fgeneviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimeu%2Fgeneviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimeu%2Fgeneviewer/lists"}