myillu_01.trimpe.sh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| myillu_01.trimpe.sh [2016/05/07 12:52] – hyjeong | myillu_01.trimpe.sh [2021/03/17 13:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Script myIllu_trimPE.sh ====== | + | ====== Script |
| #!/bin/bash | #!/bin/bash | ||
| Line 6: | Line 6: | ||
| # Trimmomatic v0.32 manual: | # Trimmomatic v0.32 manual: | ||
| # | # | ||
| + | # | ||
| + | # Latest version of ngopt (a5_miseq): 20150522 | ||
| | | ||
| TRIMMOMATIC=/ | TRIMMOMATIC=/ | ||
| Line 12: | Line 14: | ||
| THREADS=24 | THREADS=24 | ||
| MINLEN=75 | MINLEN=75 | ||
| + | # default MINLENG is 75 (for NGOPT, 36 bp) | ||
| | | ||
| if [ $# -ne 2 ] | if [ $# -ne 2 ] | ||
| Line 27: | Line 30: | ||
| done | done | ||
| | | ||
| - | | + | |
| + | # can be used as a output file prefix in " | ||
| BASE=$(basename " | BASE=$(basename " | ||
| BASE=${BASE%_*} | BASE=${BASE%_*} | ||
| - | # BASE=${1%%_*} makes difference. What is it? | + | # BASE=${1%%_*} makes difference. What is it? (longest match) |
| - | # BASE=${1/ | + | # BASE=${1/ |
| echo "File name base: $BASE" | echo "File name base: $BASE" | ||
| + | BASE=${BASE}-trim | ||
| + | echo "File name base will be changed into ${BASE}" | ||
| | | ||
| java -jar $TRIMMOMATIC PE -threads ${THREADS} -phred33 -baseout ${BASE}.fq.gz $1 $2 ILLUMINACLIP: | java -jar $TRIMMOMATIC PE -threads ${THREADS} -phred33 -baseout ${BASE}.fq.gz $1 $2 ILLUMINACLIP: | ||
myillu_01.trimpe.sh.1462593125.txt.gz · Last modified: (external edit)
