Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofonseca committed Jul 29, 2019
1 parent 765fdc5 commit 8bdddc2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ must_fail " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot.bam --ucou
must_succeed " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot5.bam --ucounts xx -x TX --not_sorted_by_cell"

must_succeed " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot5.bam --ucounts xx -x GX --not_sorted_by_cell"

must_fail " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot5.bam --ucounts /xx -x GX --not_sorted_by_cell"

must_fail " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot5.bam --ucounts /xx -x GX --not_sorted_by_cell -X"

must_fail " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot5.bam --ucounts xx -x TX --not_sorted_by_cell --10x"
must_fail " ./src/bam_umi_count --min_reads 1 --bam tests/test_annot5.bam --ucounts xx -x GX --not_sorted_by_cell --10x"

Expand Down Expand Up @@ -343,6 +348,8 @@ must_fail "./src/fastq_filterpair --help"
echo "*** fastq_pre_barcodes"
must_succeed ./src/fastq_pre_barcodes --index1 tests/barcode_test_1.fastq.gz --phred_encoding 33 --min_qual 10 --umi_read index1 --umi_offset 0 --umi_size 16 --read1_offset 0 --read1_size -1 --read1 tests/barcode_test_2.fastq.gz --outfile1 test.fastq.gz

must_succeed ./src/fastq_pre_barcodes --index1 tests/barcode_test_1.fastq.gz --phred_encoding 33 --min_qual 10 --umi_read index1 --umi_offset 0 --umi_size 16 --read1_offset 0 --read1_size -1 --read1 tests/barcode_test_2.fastq.gz --outfile1 test.fastq.gz -X

must_succeed "./src/fastq_pre_barcodes --index1 tests/barcode_test2_1.fastq.gz --phred_encoding 33 --min_qual 10 --umi_read index1 --umi_offset 0 --umi_size 16 --read1_offset 0 --read1_size -1 --read1 tests/barcode_test2_2.fastq.gz --outfile1 test.fastq.gz && diff -q <(zcat test.fastq.gz) <(zcat tests/pre1.fastq.gz)"

rm -f test.fastq.gz
Expand Down

0 comments on commit 8bdddc2

Please sign in to comment.