Skip to content

Commit

Permalink
Merge pull request #89 from dufeiyu/syntax
Browse files Browse the repository at this point in the history
Fix syntax error
  • Loading branch information
dufeiyu authored Jun 10, 2023
2 parents 45ce322 + cd29752 commit b81a3e0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions MyeloseqHD.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ workflow MyeloseqHD {
task dragen_demux {
input {
String? Dir
String? SampleSheet
File? SampleSheet
String? DragenEnv
String OutputDir
String jobGroup
Expand All @@ -205,7 +205,7 @@ task dragen_demux {
String log = StagingDir + "log/" + batch + "_demux.log"
String DemuxReportDir = OutputDir + "/dragen_demux_reports"

command <<<
command {
/bin/cp ${SampleSheet} ${LocalSampleSheet} && \
/opt/edico/bin/dragen --bcl-conversion-only true --bcl-only-matched-reads true --strict-mode true --sample-sheet ${LocalSampleSheet} --bcl-input-directory ${Dir} --output-directory ${LocalFastqDir} &> ${log} && \
/bin/ls ${LocalFastqDir}/*_R1_001.fastq.gz > Read1_list.txt && \
Expand All @@ -218,8 +218,7 @@ task dragen_demux {
echo 'demux fastq size checking failed !' && \
exit 1
fi

>>>
}

runtime {
docker_image: DragenDockerImage
Expand All @@ -245,13 +244,13 @@ task prepare_samples {
}

command <<<
/bin/cp ${Fastq1} 1.tmp.txt
/bin/cp ${Fastq2} 2.tmp.txt
/bin/cp ~{Fastq1} 1.tmp.txt
/bin/cp ~{Fastq2} 2.tmp.txt
/usr/bin/perl -e 'open(R1,"1.tmp.txt"); @r1 = <R1>; \
chomp @r1; close R1;\
open(R2,"2.tmp.txt"); @r2 = <R2>; \
chomp @r2; close R2; \
open(SS,"${SampleSheet}");
open(SS,"~{SampleSheet}");
while(<SS>){
chomp;
my @l = split("\t",$_);
Expand Down

0 comments on commit b81a3e0

Please sign in to comment.