split_file.py - split a file into parts¶
- Tags
Python
Purpose¶
Todo
describe purpose of the script.
Usage¶
Example:
python split_file.py --help
Type:
python split_file.py --help
for command line help.
Command line options¶
python /home/docs/checkouts/readthedocs.org/user_builds/cgat-apps/conda/latest/bin/cgat < stdin > stdout
split a file into chunks.
OPTIONS:
-h, --help print this message.
-v, --verbose= loglevel.
-r, --split-regex split at regular expression
-a, --after split after match
-s, --skip do not echo match
-p, --pattern-output pattern of output files (has to contain s)
-c, --column= split according to column
-m, --map= split according to map
-d, --dry-run echo files that would be created,
but do not create any.
-e, --header-names add header to each file
-r, --remove-key remove key column
-append append data to existing files.
--pattern-identifier if given, use this pattern to extract
id from column.
--chunk-size Number of matching records in each output file
--version output version information
option -? not recognized