Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RNA-seq
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
GUDMAP_RBK
RNA-seq
Commits
821a0f05
Commit
821a0f05
authored
4 years ago
by
Gervaise Henry
Browse files
Options
Downloads
Patches
Plain Diff
Move fastq count before cp
parent
785c4858
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!76
Develop
,
!70
Dnanexus
Pipeline
#9242
failed with stages
in 2 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rna-seq.nf
+2
-9
2 additions, 9 deletions
rna-seq.nf
workflow/scripts/bdbag_fetch.sh
+2
-0
2 additions, 0 deletions
workflow/scripts/bdbag_fetch.sh
with
4 additions
and
9 deletions
rna-seq.nf
+
2
−
9
View file @
821a0f05
...
...
@@ -257,12 +257,6 @@ process getData {
hostname > ${repRID}.getData.log
ulimit -a >> ${repRID}.getData.log
# link deriva cookie for authentication
#echo -e "LOG: linking deriva cookie" >> ${repRID}.getData.log
#mkdir -p ~/.bdbag
#cp `readlink -e cookies.txt` ~/.bdbag/deriva-cookies.txt
#echo -e "LOG: linked" >> ${repRID}.getData.log
# get bag basename
replicate=\$(basename "${inputBag}")
echo -e "LOG: bag replicate name \${replicate}" >> ${repRID}.getData.log
...
...
@@ -274,10 +268,9 @@ process getData {
# bag fetch fastq's only and rename by repRID
echo -e "LOG: fetching replicate bdbag" >> ${repRID}.getData.log
sh ${script_bdbagFetch} \${replicate::-13} ${repRID}
fastqCount=\$(
sh ${script_bdbagFetch} \${replicate::-13} ${repRID}
)
echo -e "LOG: fetched" >> ${repRID}.getData.log
fastqCount=\$(find . -name '*.fastq.gz' | wc -l)
if [ "\${fastqCount}" == "0" ]
then
touch dummy.R1.fastq.gz
...
...
This diff is collapsed.
Click to expand it.
workflow/scripts/bdbag_fetch.sh
+
2
−
0
View file @
821a0f05
...
...
@@ -18,8 +18,10 @@ if [ "${validate}" != "is valid" ]
then
exit
1
fi
count
=
$(
find
*
/
-name
"*[_.]R[1-2].fastq.gz"
|
wc
-l
)
for
i
in
$(
find
*
/
-name
"*[_.]R[1-2].fastq.gz"
)
do
path
=
${
2
}
.
$(
echo
${
i
##*/
}
|
grep
-o
"R[1,2].fastq.gz"
)
cp
${
i
}
./
${
path
}
done
echo
${
count
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment