{"id":15018137,"url":"https://github.com/m-osky/handle_edit_files","last_synced_at":"2026-04-09T03:31:48.481Z","repository":{"id":210705264,"uuid":"165866264","full_name":"M-Osky/handle_edit_files","owner":"M-Osky","description":"Miscelaneous scripts used to handle files, columns, rename, etc","archived":false,"fork":false,"pushed_at":"2021-10-08T11:58:24.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-19T17:34:07.692Z","etag":null,"topics":["bash-script","perl-script","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Perl","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/M-Osky.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,"governance":null}},"created_at":"2019-01-15T14:36:49.000Z","updated_at":"2021-10-08T11:58:27.000Z","dependencies_parsed_at":"2023-12-04T15:08:01.475Z","dependency_job_id":null,"html_url":"https://github.com/M-Osky/handle_edit_files","commit_stats":null,"previous_names":["m-osky/handle_edit_files"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M-Osky%2Fhandle_edit_files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M-Osky%2Fhandle_edit_files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M-Osky%2Fhandle_edit_files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M-Osky%2Fhandle_edit_files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M-Osky","download_url":"https://codeload.github.com/M-Osky/handle_edit_files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318751,"owners_count":20272137,"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":["bash-script","perl-script","shell-script"],"created_at":"2024-09-24T19:51:29.902Z","updated_at":"2025-12-30T04:22:45.132Z","avatar_url":"https://github.com/M-Osky.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Handle and Edit Files\nMiscelaneous scripts used to handle files, columns, rename, etc\nMost of them are quite old and can be done with a one liner in perl, or by using 'awk' or 'sed', but may be useful for someone else.\n\nThe more simple have a few lines explaining at the beginning of the script, other have --help information\n\nThe only ones I still use in order to no have to come up with a oneliner in Perl or similar are:\n- fixnumeration: If you have problem sorting samples because A2 is sorted after A19, this will add zeroes to the left (A02)\n- popmap_maker: if your file names include the sample and population code it will make a popmap for you - file with a column with sample IDs and another of population codes.\n  Lots of softwares (Stacks, FastStructure..) will ask for a popmap file with this format\n- rename_files: Use this script to rename a bunch of files (pictures) according to the directory name, check the help information (--h; -help; etc...) for more details.\n- row_multiplier: use this to duplicate as many times as needed the rows of a file, check its help information if needed\n- transpose: Will transpose any file in the folder. It's based in a script written by [Frederic PONT](https://sites.google.com/site/fredsoftwares/products/transpose-table)\n- extract_columns: this can be done with cut or similar commands, but may be helpful for someone starting. Use --help to check the options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-osky%2Fhandle_edit_files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-osky%2Fhandle_edit_files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-osky%2Fhandle_edit_files/lists"}