@@ -1,7 +1,6 @@ | |||
{ | |||
"{{ project_name }}.sample_id": "{{ sample_id }}", | |||
"{{ project_name }}.fastq": "{{ fastq }}", | |||
"{{ project_name }}.p": "{{ p }}", | |||
"{{ project_name }}.n": "{{ n }}", | |||
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/seqkit:0.12.0", | |||
"{{ project_name }}.cluster_config": "{{ cluster_config }}", |
@@ -2,8 +2,7 @@ task DownSample { | |||
String sample_id | |||
File fastq | |||
Float? p | |||
Int? n | |||
Int n | |||
String docker | |||
String cluster_config | |||
String disk_size | |||
@@ -12,11 +11,8 @@ task DownSample { | |||
set -o pipefail | |||
set -e | |||
nt=$(nproc) | |||
if [ ${p} ]; then | |||
seqkit sample --two-pass --threads $nt -s 100 -p ${p} ${fastq} -o ${sample_id}.fastq.gz | |||
else | |||
seqkit sample --two-pass --threads $nt -s 100 -n ${n} ${fastq} -o ${sample_id}.fastq.gz | |||
fi | |||
# seqkit sample --two-pass --threads $nt -s 100 -p ${p} ${fastq} -o ${sample_id}.fastq.gz | |||
seqkit sample --two-pass --threads $nt -s 100 -n ${n} ${fastq} -o ${sample_id}.fastq.gz | |||
>>> | |||
runtime { |
@@ -4,8 +4,7 @@ workflow {{ project_name }} { | |||
String sample_id | |||
File fastq | |||
Float? p | |||
Int? n | |||
Int n | |||
String docker | |||
String cluster_config | |||
String disk_size | |||
@@ -14,7 +13,6 @@ workflow {{ project_name }} { | |||
input: | |||
sample_id=sample_id, | |||
fastq=fastq, | |||
p=p, | |||
n=n, | |||
docker=docker, | |||
cluster_config=cluster_config, |