Skip to content

Commit ec96f36

Browse files
authored
update a functional test
1 parent 1a4cf4a commit ec96f36

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

func_tests/runtests.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,24 @@ echo ";;;" >> $test_dir/remove_input.fastq
519519

520520
checkcmdoutput "$splitcode --trim-only -c $test_dir/config_with_remove.txt --mod-names --out-fasta --nFastqs=1 --pipe $test_dir/remove_input.fastq" d41d8cd98f00b204e9800998ecf8427e
521521

522+
# Check barcode-encode in config file
523+
524+
echo "@assign" > $test_dir/bcencode.txt
525+
echo "@barcode-encode X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X" >> $test_dir/bcencode.txt
526+
echo "" >> $test_dir/bcencode.txt
527+
echo "tags groups" >> $test_dir/bcencode.txt
528+
echo "A X" >> $test_dir/bcencode.txt
529+
echo "T X" >> $test_dir/bcencode.txt
530+
echo "C X" >> $test_dir/bcencode.txt
531+
echo "G X" >> $test_dir/bcencode.txt
532+
533+
echo "@read1" > $test_dir/bcencode.fastq
534+
echo "AAAAAAAAAAAAAAAA" >> $test_dir/bcencode.fastq
535+
echo "+" >> $test_dir/bcencode.fastq
536+
echo "AAAAAAAAAAAAAAAA" >> $test_dir/bcencode.fastq
537+
538+
checkcmdoutput "$splitcode -m /dev/null --bclen=30 -c $test_dir/bcencode.txt --mod-names --out-fasta --nFastqs=1 --pipe $test_dir/bcencode.fastq" 6c300074e39d272b4fee6a75fae3e8b4
539+
522540
# Check extract ^...^ and ^^...^^
523541

524542
checkcmdoutput "$splitcode --trim-only -x \"0:1<^AAA^umi[3]>\" -p $test_dir/test_bound.fa" 5827f14f608ed69bd38b12602c8fdeea

0 commit comments

Comments
 (0)