sequencing / isaac_aligner

Isaac Genome Alignment Software
Other
37 stars 8 forks source link

isaac-aligner: too many positional options have been specified on the command line #12

Closed sklages closed 10 years ago

sklages commented 10 years ago

Hi, for testing Isaac aligner I put the command into a bash script:

#!/bin/bash

## Isaac Version: iSAAC-01.14.07.17

## Read naming
# lane3_read1.fastq.gz -> ../PhiX_S1_L003_R1_001.fastq.gz
# lane3_read2.fastq.gz -> ../PhiX_S1_L003_R2_001.fastq.gz

## Reference
## PhiX_NC_001422.1.fasta ==>
## isaac-sort-reference --genome-file $(pwd)/PhiX_NC_001422.1.fasta --jobs 12 --output-directory iSAACIndex.PhiX.20140901 --annotate
##

START_DIR=$(pwd)

BIN='isaac-align'
CPU=12
MEM=128000 # GB

GENOME="/path/to/PhiX/iSAACIndex.PhiX.20140901/sorted-reference.xml"
PROJ='PhiX-Test'
NAME='PhiX_NC_001422'
OUT="${PROJ}_Aligned_${NAME}"
TMP="$START_DIR/temp"

PARAM="\
 --base-calls $START_DIR \
 --base-calls-format fastq-gz \
 --default-adapters Standard \
 --description 'Erster Isaac Test Run (PhiX)' \
 --jobs $CPU \
 --memory-limit $MEM \
 --output-directory $OUT \
 --realign-dodgy \
 --realign-gaps all \
 --reference-genome $GENOME \
 --reference-name $NAME \
 --scatter-repeats \
 --single-library-samples \
 --temp-directory $TEMP \
 --verbosity 3 \
"

## execution
$BIN $PARAM 2>&1 | tee "${OUT}.log"

to align a pair of fastq files against sorted phix.

I always get:

Failed to parse the options: Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::too_many_positional_options_error> >
std::exception::what: too many positional options have been specified on the command line

Version iSAAC-01.14.07.17 compiled from GIT.

Any idea what goes wrong there?

best, Sven

sklages commented 10 years ago

OMG, embarassing :-) Closed.

Added 1 to boolean args, main issue was TMP is not equal to TEMP :-(