File: bz2compact.sh

package info (click to toggle)
libgoby-java 3.3.1%2Bdfsg2-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 58,108 kB
  • sloc: java: 78,105; cpp: 5,011; xml: 3,170; python: 2,108; sh: 1,575; ansic: 277; makefile: 114
file content (23 lines) | stat: -rwxr-xr-x 758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

#
# Script to convert a fastq.bz2 file to compact format. The second argument must provide the quality encoding
# used in the fastq file.
# Example of use:
# foreach file (full-path/*.fastq.bz2)
#  bz2compact.sh $file (SANGER|ILLUMINA|SOLEXA)
# end
# The previous lines will convert each file with extension .fastq.bz2 to the compact-reads format, running
# in parallel on an SGE grid. The file bz2compact.sh must be on the path.


export WORKING_DIR=`dirname "$0"`
export GOBY=`which goby`
export BASENAME=`basename $1 .fastq.bz2`
export DATA_DIR=`dirname $1`
export QUALITY_ENCODING=$2

CMD=`qsub -terse -v GOBY=$GOBY -v BASENAME=$BASENAME -v DATA_DIR=$DATA_DIR -v QUALITY_ENCODING=$QUALITY_ENCODING ${WORKING_DIR}/bz2compact.qsub `
echo $CMD