Skip to content

Commit

Permalink
Added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Slugger70 committed Aug 3, 2017
1 parent 86cbd69 commit 83e43b2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VelvetOptimiser.pl
Expand Up @@ -2,7 +2,7 @@
#
# VelvetOptimiser.pl
#
# Copyright 2008, 2009, 2010 Simon Gladman <simon.gladman@monash.edu>
# Copyright 2008, 2009, 2010 Simon Gladman <simon.gladman@unimelb.edu.au>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
Binary file added test/data/test_long_R1.fq.gz
Binary file not shown.
Binary file added test/data/test_long_R2.fq.gz
Binary file not shown.
File renamed without changes.
File renamed without changes.
14 changes: 11 additions & 3 deletions test/run_test.sh
@@ -1,13 +1,21 @@
#!/bin/bash

echo "Running VelvetOptimiser on test data."
echo "Running VelvetOptimiser on short test data."

VelvetOptimiser.pl -s 55 -e 59 -f "-shortPaired -fastq.gz -separate mutant_R1.fastq.gz mutant_R2.fastq.gz" -d test_out
VelvetOptimiser.pl -s 55 -e 59 -f "-shortPaired -fastq.gz -separate data/test_short_R1.fq.gz data/test_short_R2.fq.gz" -d test_out

echo "Number of contigs in final assembly:"

grep -c ">" test_out/contigs.fa

echo "Running VelvetOptimiser on short and long test data."

VelvetOptimiser.pl -s 43 -e 91 -x 4 -f "-shortPaired -fastq.gz -separate data/test_short_R1.fq.gz data/test_short_R2.fq.gz -longPaired -fastq.gz -separate data/test_long_R1.fq.gz data/test_long_R2.fq.gz" -d test_out_2 -o "-long_mult_cutoff 3"

echo "Number of contigs in final assembly:"

grep -c ">" test_out_2/contigs.fa

echo "Estimation of memory test:"

VelvetOptimiser.pl -s 55 -e 59 -f "-shortPaired -fastq.gz -separate mutant_R1.fastq.gz mutant_R2.fastq.gz" -g 0.2
VelvetOptimiser.pl -s 55 -e 59 -f "-shortPaired -fastq.gz -separate mutant_R1.fq.gz mutant_R2.fq.gz -longPaired -fastq.gz -separate data/test_long_R1.fq.gz data/test_long_R2.fq.gz" -g 0.2

0 comments on commit 83e43b2

Please sign in to comment.