view srf2fastq/io_lib-1.12.2/tests/srf_filter.test @ 0:d901c9f41a6a default tip

Migrated tool version 1.0.1 from old tool shed archive to new tool shed repository
author dawe
date Tue, 07 Jun 2011 17:48:05 -0400
parents
children
line wrap: on
line source

#!/bin/sh

# Filter out raw data from both.srf and we should get something similar to
# proc.srf. Hard to verify this fully.
$top_builddir/progs/srf_filter -m PROC $srcdir/data/both.srf $outdir/f_proc.srf
$top_builddir/progs/srf_dump_all $srcdir/data/proc.srf > $outdir/proc.dump
$top_builddir/progs/srf_dump_all $outdir/f_proc.srf > $outdir/f_proc.dump
cmp $outdir/proc.dump $outdir/f_proc.dump || exit 1

# Also check with srf_info to see that we have the expected number of
# ZTR chunks
$top_builddir/progs/srf_info $srcdir/data/proc.srf|tail -n +2|grep -v 'null index' > $outdir/proc.info
$top_builddir/progs/srf_info $outdir/f_proc.srf|tail -n +2|grep -v 'null index' > $outdir/f_proc.info
cmp $outdir/proc.info $outdir/f_proc.info || exit 1