{"id":15628957,"url":"https://github.com/pwwang/pyppl_require","last_synced_at":"2025-03-29T18:14:03.444Z","repository":{"id":57456302,"uuid":"227684491","full_name":"pwwang/pyppl_require","owner":"pwwang","description":"Process requirement manager for PyPPL","archived":false,"fork":false,"pushed_at":"2020-06-06T04:42:06.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T19:41:22.546Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwwang.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}},"created_at":"2019-12-12T19:50:11.000Z","updated_at":"2021-09-10T00:10:24.000Z","dependencies_parsed_at":"2022-09-14T05:10:55.726Z","dependency_job_id":null,"html_url":"https://github.com/pwwang/pyppl_require","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fpyppl_require","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fpyppl_require/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fpyppl_require/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fpyppl_require/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwwang","download_url":"https://codeload.github.com/pwwang/pyppl_require/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223323,"owners_count":20743167,"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-03T10:25:00.482Z","updated_at":"2025-03-29T18:14:03.421Z","avatar_url":"https://github.com/pwwang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyppl_require\n\nRequirement manager for [PyPPL](https://github.com/pwwang/PyPPL).\n\n## Installation\nIt requires [pyppl_annotate](https://github.com/pwwang/pyppl_annotate).\n```shell\npip install pyppl_require\n```\n\n## Usage\n```shell\n\u003e pyppl require\nDescription:\n  Process requirement manager\n\nUsage:\n  pyppl require \u003c--pipe AUTO\u003e [OPTIONS]\n\nRequired options:\n  -p, --pipe \u003cAUTO\u003e     - The pipeline script.\n\nOptional options:\n  --install \u003cAUTO\u003e      - Install the requirements.\n                          You can specify a directory (default: $HOME/bin) to install the \\\n                          requirements.\n                          Default: None\n  -h, -H, --help        - Show help message and exit.\n```\n\nTo allow your processes to be analyzed, you have to put a section in annotate using `toml` format:\n```python\npXXX.config.annotate = \"\"\"\n@requires:\n  [bedtools]\n  validate: \"bedtools --version\"\n  install: \"conda install -c bioconda bedtools\"\n  # other annotations\n\"\"\"\n```\n\nIf you want define those commands using process properties and aggrs:\n```python\npXXX.config.annotate = \"\"\"\n@requires:\n  [bedtools]\n  validate: \"{{args.bedtools}} --version\"\n  install: \"conda install -c bioconda bedtools\"\n  # other annotations\n\"\"\"\n```\n\nInstall to a specify directory:\n\n```python\npXXX.config.annotate = \"\"\"\n@requires:\n  [bedtools]\n  validate: \"{{args.bedtools}} --version\"\n  install: \"conda install -c bioconda bedtools; ln -s $(which bedtools) {{bindir}}/bedtools\"\n  # other annotations\n\"\"\"\n```\n\n`{{bindir}}` will be the directory passed to the command line.\n```shell\npyppl require --pipe \u003cyour pipeline\u003e --install \u003c/path/to/bin\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwwang%2Fpyppl_require","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwwang%2Fpyppl_require","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwwang%2Fpyppl_require/lists"}