# HG changeset patch # User petr-novak # Date 1587732831 14400 # Node ID a675b4534b199f4d8adca37a80e916897be1985b # Parent 62fefa28403670f27d97a9db2411986e989512fb Uploaded diff -r 62fefa284036 -r a675b4534b19 sampleFasta.xml --- a/sampleFasta.xml Fri Feb 07 06:06:47 2020 -0500 +++ b/sampleFasta.xml Fri Apr 24 08:53:51 2020 -0400 @@ -1,4 +1,4 @@ - + Tool for random sampling subsets of reads from larger dataset seqkit @@ -11,24 +11,25 @@ #if str($paired)=="true" ${__tool_directory__}/deinterlacer.py $input Afile Bfile && - seqkit sample -2 --number $number --rand-seed $seed -o Asample -w 0 Afile < /dev/null + NUMBER=\$(($(number) / 2)) && - seqkit sample -2 --number $number --rand-seed $seed -o Bsample -w 0 Bfile < /dev/null + seqkit sample -2 --number \$NUMBER --rand-seed $seed -o Asample -w 0 Afile < /dev/null + && + seqkit sample -2 --number \$NUMBER --rand-seed $seed -o Bsample -w 0 Bfile < /dev/null && ${__tool_directory__}/fasta_interlacer.py -a Asample -b Bsample -p $output -x tmpfile #else - seqkit sample -2 --number $number --rand-seed $seed -o $output -w 0 $input + seqkit sample -2 --number $number --rand-seed $seed -o $output -w 0 $input < /dev/null #end if ]]> - + + - - - +