{"id":15521353,"url":"https://github.com/andrewrosss/snip-tsv","last_synced_at":"2025-04-12T23:46:04.910Z","repository":{"id":57468961,"uuid":"464104456","full_name":"andrewrosss/snip-tsv","owner":"andrewrosss","description":"Crop tabular data files","archived":false,"fork":false,"pushed_at":"2022-03-22T05:04:29.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T05:42:04.905Z","etag":null,"topics":["cli","csv","plot","tsv"],"latest_commit_sha":null,"homepage":"","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/andrewrosss.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":"2022-02-27T10:30:04.000Z","updated_at":"2022-04-08T20:45:21.000Z","dependencies_parsed_at":"2022-09-19T09:30:24.939Z","dependency_job_id":null,"html_url":"https://github.com/andrewrosss/snip-tsv","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrosss%2Fsnip-tsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrosss%2Fsnip-tsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrosss%2Fsnip-tsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewrosss%2Fsnip-tsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewrosss","download_url":"https://codeload.github.com/andrewrosss/snip-tsv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647258,"owners_count":21139081,"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":["cli","csv","plot","tsv"],"created_at":"2024-10-02T10:34:03.414Z","updated_at":"2025-04-12T23:46:04.888Z","avatar_url":"https://github.com/andrewrosss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snip-tsv\n\nCrop tabular data files\n\n## Installation\n\n```bash\npip install snip-tsv\n```\n\n## Usage\n\n```text\n$ snip -h\nusage: snip [-h] [-v] [-H] [-d DELIMITER] [-o OUT_FILE] [-x PLOT_X]\n            [-y PLOT_Y] [-s START] [-e END] [-c COL]\n            [-p PICK | -r OMIT]\n            in_file\n\npositional arguments:\n  in_file               Input data file. (default: -)\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -v, --version         show program's version number and exit\n  -H, --header          When set assume the first row to be a\n                        header row. By default, no header row is\n                        assumed.\n  -d DELIMITER, --delimiter DELIMITER\n                        The delimiter used in the input data file.\n                        (default: '\\t')\n  -o OUT_FILE, --out-file OUT_FILE\n                        File to write the results to (either an\n                        image or TSV file. If not provided, a\n                        matplotlib plot is shown when plotting, and\n                        data is written to stdout when cropping.\n                        (default: -)\n\nplot options:\n  -x PLOT_X, --plot-x PLOT_X\n                        Column to use on the x-axis. A 0-indexed\n                        integer or a column heading string.\n                        (default: 0)\n  -y PLOT_Y, --plot-y PLOT_Y\n                        Column to use on the y-axis. A 0-indexed\n                        integer or a column heading string.\n                        (default: 1)\n\ncrop options:\n  -s START, --start START\n                        Start value to use for cropping\n                        (inclusive). If the column is numeric then\n                        the row with column entry closest to the\n                        given value is used.\n  -e END, --end END     End value to use for cropping (exclusive).\n                        If the column is numeric then the row with\n                        column entry closest to the given value is\n                        used. To specify a numeric value relative\n                        to --crop-start use the syntax ':\u003cnumber\u003e'.\n                        Omit this flag to crop from --crop-start to\n                        the end of the file.\n  -c COL, --col COL     Column to search in for --crop-\n                        start/--crop-end values. A 0-indexed\n                        integer or a column heading string.\n                        (default: 0)\n  -p PICK, --pick PICK  Comma separated list of columns to keep. If\n                        specified, only columns in this list will\n                        appear in the generated output. Columns can\n                        either be column heading strings or\n                        0-indexed integers (intermixing is\n                        allowed). By default all columns are\n                        retained.\n  -r OMIT, --omit OMIT  Comma separated list of columns to omit. If\n                        specified, columns in this list will be\n                        removed from the generated output. Columns\n                        can either be column heading strings or\n                        0-indexed integers (intermixing is\n                        allowed).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrosss%2Fsnip-tsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewrosss%2Fsnip-tsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrosss%2Fsnip-tsv/lists"}