{"id":22313609,"url":"https://github.com/ctb/sourmash_plugin_commonhash","last_synced_at":"2025-07-29T10:32:37.092Z","repository":{"id":184890720,"uuid":"672519001","full_name":"ctb/sourmash_plugin_commonhash","owner":"ctb","description":"sourmash plugin to filter hashes/k-mers by presence across many sketches","archived":false,"fork":false,"pushed_at":"2023-08-27T03:39:03.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T17:15:39.046Z","etag":null,"topics":["sourmash"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctb.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}},"created_at":"2023-07-30T11:11:59.000Z","updated_at":"2023-08-26T03:57:54.000Z","dependencies_parsed_at":"2023-07-30T19:52:48.132Z","dependency_job_id":null,"html_url":"https://github.com/ctb/sourmash_plugin_commonhash","commit_stats":null,"previous_names":["ctb/sourmash_plugin_commonhash"],"tags_count":0,"template":false,"template_full_name":"sourmash-bio/sourmash_plugin_template","purl":"pkg:github/ctb/sourmash_plugin_commonhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctb%2Fsourmash_plugin_commonhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctb%2Fsourmash_plugin_commonhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctb%2Fsourmash_plugin_commonhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctb%2Fsourmash_plugin_commonhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctb","download_url":"https://codeload.github.com/ctb/sourmash_plugin_commonhash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctb%2Fsourmash_plugin_commonhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267670363,"owners_count":24125130,"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-07-29T02:00:12.549Z","response_time":2574,"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":["sourmash"],"created_at":"2024-12-03T22:07:43.503Z","updated_at":"2025-07-29T10:32:36.651Z","avatar_url":"https://github.com/ctb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sourmash_plugin_commonhash\n\nIf you have sketched many samples and you want to remove \"rare\" k-mers\n(present in 1, or only a few samples), this plugin is for you!  This\nprocedure helps reduce noise in Jaccard comparisons between samples.\n\nSee\n[sourmash#2383](https://github.com/sourmash-bio/sourmash/issues/2383)\nfor an extended discussion!\n\nThanks to Taylor Reiter and Jessica Lumian for all their work on this!\n\n## Installation\n\n```\npip install sourmash_plugin_commonhash\n```\n\n## Usage\n\n```\nsourmash scripts commonhash \u003cmultiple sketches\u003e -o commonhashes.zip\n```\n\ncommonhash will output one filtered sketch for _each_ input sketch.\nYou can then use the various `sourmash sig` commands to union these\nsketches, extract individual ones, etc.\n\n### Example\n\n```\nsourmash scripts commonhash examples/*.sig.gz -o commonhash.zip\n```\n\nshould yield:\n\n```\n...\n\nSelecting k=31, DNA\nLoaded 10587 hashes from 3 sketches in 3 files.\nOf 10587 hashes, keeping 2529 that are in 2 or more samples.\nSaved 3 signatures to 'commonhash.zip'\n```\n\n## Support\n\nWe suggest filing issues in [the main sourmash issue tracker](https://github.com/dib-lab/sourmash/issues) as that receives more attention!\n\n## Dev docs\n\n`commonhash` is developed at https://github.com/ctb/sourmash_plugin_commonhash.\n\n### Generating a release\n\nBump version number in `pyproject.toml` and push.\n\nMake a new release on github.\n\nThen pull, and:\n\n```\npython -m build\n```\n\nfollowed by `twine upload dist/...`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctb%2Fsourmash_plugin_commonhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctb%2Fsourmash_plugin_commonhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctb%2Fsourmash_plugin_commonhash/lists"}