Skip to content

Commit

Permalink
Add temporary directory to picard tools
Browse files Browse the repository at this point in the history
  • Loading branch information
tavareshugo committed Jan 4, 2018
1 parent 7d2b770 commit 45c9227
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mapping_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ OUTPUT=$outdir/temp2_$outprefix.$mapper.sort.reorder.bam \
REFERENCE=$ref \
QUIET=true \
VERBOSITY=ERROR \
CREATE_INDEX=true;
CREATE_INDEX=true \
TMP_DIR=$outdir;

if [[ $keep = "no" ]]
then
Expand All @@ -192,7 +193,8 @@ then
OUTPUT=$outdir/temp3_$outprefix.$mapper.sort.reorder.markdup.bam \
METRICS_FILE=$outdir/stats/$outprefix.$mapper.sort.reorder.markdup_metrics \
MAX_FILE_HANDLES_FOR_READ_ENDS_MAP=1000 \
CREATE_INDEX=true
CREATE_INDEX=true \
TMP_DIR=$outdir

# Remove temporary file
if [[ $keep = "no" ]]
Expand Down Expand Up @@ -258,7 +260,8 @@ echo "Checking errors in bam file"

java -jar $picard ValidateSamFile \
INPUT=$outdir/${output}.bam \
O=$outdir/stats/${output}.validate
O=$outdir/stats/${output}.validate \
TMP_DIR=$outdir


#
Expand All @@ -270,7 +273,8 @@ java -jar $picard CollectInsertSizeMetrics \
INPUT=$outdir/${output}.bam \
OUTPUT=$outdir/stats/${output}.insert_size.hist \
HISTOGRAM_FILE=$outdir/stats/${output}.insert_size.pdf \
REFERENCE_SEQUENCE=$ref &
REFERENCE_SEQUENCE=$ref \
TMP_DIR=$outdir &


#
Expand Down

0 comments on commit 45c9227

Please sign in to comment.