{"id":25843067,"url":"https://github.com/incatools/term-expando","last_synced_at":"2025-10-06T04:59:51.029Z","repository":{"id":66914565,"uuid":"271097739","full_name":"INCATools/term-expando","owner":"INCATools","description":"Command line expansion of IDs and controlled terms in documents","archived":false,"fork":false,"pushed_at":"2021-02-04T02:50:33.000Z","size":77,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T06:39:19.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/INCATools.png","metadata":{"files":{"readme":"README.rst","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":"2020-06-09T20:00:59.000Z","updated_at":"2021-02-04T02:50:35.000Z","dependencies_parsed_at":"2023-06-18T17:16:15.351Z","dependency_job_id":null,"html_url":"https://github.com/INCATools/term-expando","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/INCATools/term-expando","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Fterm-expando","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Fterm-expando/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Fterm-expando/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Fterm-expando/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/INCATools","download_url":"https://codeload.github.com/INCATools/term-expando/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Fterm-expando/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278561279,"owners_count":26006954,"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-10-06T02:00:05.630Z","response_time":65,"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":"2025-03-01T06:37:56.782Z","updated_at":"2025-10-06T04:59:51.024Z","avatar_url":"https://github.com/INCATools.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"term-expando\n============\n\nDumb python library and CLI for performing expansion of IDs and\ncontrolled terms in TSVs and other documents.\n\nFor example, given a TSV with an identifier column, insert an extra\ncolumn with the corresponding label from the identifier.\n\nAnother example: expand an ID with the reflexive transitive ancestors\nin an ontology graph; the resulting document is optimized for lookups\nby ontology term (the \"golr closure pattern\")\n\nIt is also possible to a weak form of concept recognition: provide a\nlookup table of name or synonym -\u003e ID, and use this to expand a column\nwith names.\n\nExpansions can come from pre-made lookup tables, or an ontology can be\nused as source.\n\nSee the tests folder for more information\n\nThe data model is deliberately simple. There can be any number of\nnamed lookup tables. A lookup table is a mapping between a string and\na list of strings. The list of strings is stored internally as a\npipe-separated string. The lookup tables can be loaded from a TSV, or\nconstructed from an ontology (requires obojson).\n\nCommand Line\n============\n\nHelp:\n\n.. code-block:: sh\n\n    expando --help\n\n\nCurrently there are two main commands: tsv and text, for expanding a\ntsv doc and a general text doc\n\nExpand a GPAD file, using a gene product ID (non-CURIE) to name lookup table:    \n\n.. code-block:: sh\n\n    expando -t tests/data/gp2name.tsv -l tests/data/go-small.json  -e id2name tsv -x  tests/data/pombase-small.gpad\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincatools%2Fterm-expando","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincatools%2Fterm-expando","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincatools%2Fterm-expando/lists"}