set -e | set -e | ||||
nt=$(nproc) | nt=$(nproc) | ||||
if [ ${p} ]; then | if [ ${p} ]; then | ||||
seqkit sample --two-pass --threads ${nt} -s 100 -p ${p} ${fastq} -o ${sample_id}.fastq.gz | |||||
seqkit sample --two-pass --threads $nt -s 100 -p ${p} ${fastq} -o ${sample_id}.fastq.gz | |||||
else | else | ||||
seqkit sample --two-pass --threads ${nt} -s 100 -n ${n} ${fastq} -o ${sample_id}.fastq.gz | |||||
seqkit sample --two-pass --threads $nt -s 100 -n ${n} ${fastq} -o ${sample_id}.fastq.gz | |||||
fi | fi | ||||
>>> | >>> | ||||