metacherchant
metacherchant copied to clipboard
Syntax errors in metacherchant.sh
There appears to be something wrong in the metacherchant.sh script on lines 23 and 24. Not sure if this affects how it works (haven't tried it yet).
$ bash metacherchant.sh
metacherchant.sh: line 23: let: mem=: syntax error: operand expected (error token is "=")
metacherchant.sh: line 24: * 95 / 100: syntax error: operand expected (error token is "* 95 / 100")
MetaCherchant: genomic environment analysis tool, version 0.1.0 (revision 329e235)
Usage: metacherchant [<Launch options>] [<Input parameters>]
Tool: environment-finder
Description: Finds graphic environment for many genomic sequences in given metagenomic reads
Input parameters (only important):
-k, --k <arg> k-mer size (MANDATORY)
--seq <arg> FASTA file with sequences (MANDATORY)
-o, --output <arg> output directory (MANDATORY)
Launch options (only important):
-m, --memory <arg> memory to use (for example: 1500M, 4G, etc.) (optional, default: 2 Gb)
-w, --work-dir <arg> working directory (optional, default: workDir)
-c, --continue continue the previous run from last succeed stage, saved in working directory (optional)
--force force run with rewriting old results (optional)
-h, --help print short help message (optional)
To see all parameters and options add --help-all.
Hi! To get rid of this error, you have to set the mandatory parameters, such as --k, --seq, and --output. Bash script doesn't seem to work well when there's zero input parameters.