{"id":17347110,"url":"https://github.com/konapun/dotplot","last_synced_at":"2025-03-27T11:19:28.272Z","repository":{"id":8376282,"uuid":"9946948","full_name":"konapun/dotplot","owner":"konapun","description":"A fast, lightweight C program and library for generating dot plots","archived":false,"fork":false,"pushed_at":"2013-08-07T16:59:03.000Z","size":244,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T15:44:57.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/konapun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-08T22:03:11.000Z","updated_at":"2013-09-30T17:31:11.000Z","dependencies_parsed_at":"2022-07-31T00:17:56.672Z","dependency_job_id":null,"html_url":"https://github.com/konapun/dotplot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konapun%2Fdotplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konapun%2Fdotplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konapun%2Fdotplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konapun%2Fdotplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konapun","download_url":"https://codeload.github.com/konapun/dotplot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832746,"owners_count":20679702,"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-10-15T16:47:39.040Z","updated_at":"2025-03-27T11:19:28.248Z","avatar_url":"https://github.com/konapun.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Dotplot Generator\r\nA small, fast program and API to generate a dotplot\r\n\r\n![small](example/test.png \"Small dotplot\")\r\n![large](example/twi_sprt.png \"Large dotplot\")\r\n\r\n## Standalone\r\nTo generate a dotplot from the command line, enter\r\n`genplot SEQUENCE1 SEQUENCE2 OUTPUT.PNG`\r\nwhere SEQUENCE1 is any string, SEQUENCE2 is the string to compare it against, and OUTPUT.PNG is the file the image is written to.\r\nNote that genplot filters to 5mers by default.\r\n\r\n### options\r\n  * -n \u003cint\u003e: number of bases to use as a minimum for the filter (default: 5)\r\n  * -w \u003cint\u003e: maximum width (in pixels) of image to generate (default: 2000)\r\n  * -h \u003cint\u003e: maximum height (in pixels) of image to generate (default: 2000)\r\n\r\n## API\r\n### Creating the dotplot\r\n\r\n```c\r\nchar *seq1 = \"ACCGATCGTATCG\";\r\nchar *seq2 = \"ACCTAGTCTAG\";\r\ndotplot *dp = create_dotplot(seq1, seq2);\r\n```\r\n\r\n### Filtering the dotplot\r\n\r\n```c\r\nint minMatchLength = 5; // remove any matches that are not at least 5 contiguous bases (gaps not allowed)\r\ndotplot *filtered = filter_dotplot(dp, minMatchLength); // create a new dotplot with the filter applied\r\n```\r\n\r\n### Rendering the dotplot\r\n\r\n```c\r\n\r\ngdImagePtr image = render_dotplot(filtered, 200, 200); // create an image with a maximum size of 200x200px. If your x and y sequences have fewer than 200 bases, their size will be used instead for 1base/px\r\n\r\n// you will now have an image you can write to a file\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonapun%2Fdotplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonapun%2Fdotplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonapun%2Fdotplot/lists"}