File: queries.sh

package info (click to toggle)
genometools 1.6.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 50,412 kB
  • sloc: ansic: 271,241; ruby: 30,339; python: 4,880; sh: 3,193; makefile: 1,194; perl: 219; pascal: 159; haskell: 37; sed: 5
file content (19 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

if [ $# -eq 3 ]
then
  bn=$(basename $3)
  $GTDIR/bin/gt seqfilter -minlength $1 $3 | \
    $GTDIR/bin/gt shredder -sample 0.1 \
    -clipdesc \
    -minlength $1 \
    -maxlength $1 \
    -coverage $2 | \
    $GTDIR/bin/gt seqfilter -minlength $1 -width 70 > \
    ${bn%%.fas}_queries_$1_${2}x.fas
  exit 0
fi

echo "Usage: " $0 " SHREDDLEN COVERAGE INFILE"
exit 1