Argument parsing and bwa scripting modules