echo>&2 " -l splits/ DIR = genome splits DIR for job parallelization (pre-processing)."
echo>&2 " -c INT = minimum coverage per position to call a SNV (default: 4)."
echo>&2 " -t INT = minimum number of non-reference reads per position (across samples) to call a SNV (default: 4)."
echo>&2 " -p NUM[0,1] = minimum fraction of non-reference reads per position (across samples) to call a SNV (default: 0.01)."
echo>&2 " -d INT = maximum depth per position, as passed to samtools mpileup (default: 20.000)."
echo>&2 " -D 1/0 = run in debug mode (y/n)."
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."
echo>&2 ""
...
...
@@ -80,20 +65,6 @@ db_missing() {
exit 1
}
param_non_integer(){
echo>&2 ""
echo>&2 "ERROR: $1 is not an integer."
display_usage
exit 1
}
error_fraction_range(){
echo>&2 ""
echo>&2 "ERROR: value for minimum SNV fraction ('$1') is not in range [0,1]."
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."
...
...
@@ -109,7 +80,7 @@ make_dir() {
# Parse args using getopt (instead of getopts) to allow arguments before options