Skip to content
Snippets Groups Projects
Commit 1e8d161e authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Don't donwload fastqs if overridden

parent 30abfb69
Branches
Tags
2 merge requests!76Develop,!71Seqwho
Pipeline #9322 failed with stages
in 13 minutes and 18 seconds
......@@ -29,6 +29,8 @@
* Add new CI py tests for override and integration
* Fix fastq file and species error status detail bub (#118)
* Make compatible with XPACK-DNANEXUS
* Don't download fastq's if fastq override present
* Override fastq count to override counts
*Known Bugs*
* Override params (inputBag, fastq, species) aren't checked for integrity
......
......@@ -264,9 +264,14 @@ process getData {
echo -e "LOG: unzipped" >> ${repRID}.getData.log
# bag fetch fastq's only and rename by repRID
echo -e "LOG: fetching replicate bdbag" >> ${repRID}.getData.log
fastqCount=\$(sh ${script_bdbagFetch} \${replicate::-13} ${repRID})
echo -e "LOG: fetched" >> ${repRID}.getData.log
if [ "${fastqsForce}" != "" ]
then
echo -e "LOG: fetching replicate bdbag" >> ${repRID}.getData.log
fastqCount=\$(sh ${script_bdbagFetch} \${replicate::-13} ${repRID})
echo -e "LOG: fetched" >> ${repRID}.getData.log
else
echo -e "LOG: fastq override detected, not fetching fastqs" >> ${repRID}.getData.log
fi
if [ "\${fastqCount}" == "0" ]
then
......@@ -277,9 +282,10 @@ process getData {
}
// Split fastq count into channel
fastqCountTemp = Channel.create()
fastqCount = Channel.create()
fastqCount_fl.splitCsv(sep: ",", header: false).separate(
fastqCount
fastqCountTemp
)
// Set raw fastq to downloaded or forced input and replicate them for multiple process inputs
......@@ -293,6 +299,9 @@ if (fastqsForce != "") {
fastqs_parseMetadata
fastqs_fastqc
}
fastqsForce.count().into{
fastqCount
}
} else {
fastqs.collect().into {
fastqs_seqwho
......@@ -300,6 +309,9 @@ if (fastqsForce != "") {
fastqs_parseMetadata
fastqs_fastqc
}
fastqCountTemp.into {
fastqCount
}
}
/*
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment