Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m-osky/handle_edit_files
Miscelaneous scripts used to handle files, columns, rename, etc
https://github.com/m-osky/handle_edit_files
bash-script perl-script shell-script
Last synced: about 2 months ago
JSON representation
Miscelaneous scripts used to handle files, columns, rename, etc
- Host: GitHub
- URL: https://github.com/m-osky/handle_edit_files
- Owner: M-Osky
- Created: 2019-01-15T14:36:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T11:58:24.000Z (about 3 years ago)
- Last Synced: 2024-10-13T11:43:08.851Z (3 months ago)
- Topics: bash-script, perl-script, shell-script
- Language: Perl
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Handle and Edit Files
Miscelaneous scripts used to handle files, columns, rename, etc
Most 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.The more simple have a few lines explaining at the beginning of the script, other have --help information
The only ones I still use in order to no have to come up with a oneliner in Perl or similar are:
- fixnumeration: If you have problem sorting samples because A2 is sorted after A19, this will add zeroes to the left (A02)
- 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.
Lots of softwares (Stacks, FastStructure..) will ask for a popmap file with this format
- 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.
- row_multiplier: use this to duplicate as many times as needed the rows of a file, check its help information if needed
- 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)
- extract_columns: this can be done with cut or similar commands, but may be helpful for someone starting. Use --help to check the options.