echo>&2 " -l splits/ DIR = genome splits DIR for job parallelization (pre-processing)."
echo>&2 ""
echo>&2 "Note: Alternatively, use the '-l splits' option to call SNPs for specific species, contig regions (BED) or single positions (contig_id pos). Unlisted contigs/pos are skipped."
...
...
@@ -61,13 +60,26 @@ db_missing() {
echo>&2 ""
echo>&2 "ERROR: No reference database or annotation file found!"
echo>&2 "ERROR: '$1' is not a file."
echo>&2 "SOLUTION: run getRefDB.sh or set up a custom database before running metaSNP caller"
echo>&2 "SOLUTION: run getRefDB.sh or set up a custom database before running metaSNP caller"
display_usage
exit 1
}
make_dir(){
echo>&2 ""
echo>&2 "WARNING '$1' is not an initialized metaSNP project. Subdirectory '$(basename$2)' (output DIR) is missing."
echo>&2 "RUN:"
echo>&2 " mkdir $2"
echo>&2 ""
echo>&2 "Then rerun '$0$ARGA'"
echo>&2 ""
# display_usage
# mkdir $OUT_DIR
exit 1
}
# Parse args using getopt (instead of getopts) to allow arguments before options