Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngs_tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo
ngs_tools
Commits
2c2c4606
Commit
2c2c4606
authored
10 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
workflow refinements
parent
81479ce8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dge_workflow/dge_master.sh
+1
-1
1 addition, 1 deletion
dge_workflow/dge_master.sh
dge_workflow/dge_utils.sh
+49
-3
49 additions, 3 deletions
dge_workflow/dge_utils.sh
misc/naha_bam_correlation.sh
+0
-0
0 additions, 0 deletions
misc/naha_bam_correlation.sh
with
50 additions
and
4 deletions
dge_workflow/dge_master.sh
+
1
−
1
View file @
2c2c4606
...
...
@@ -12,7 +12,7 @@ DGE_HOME=/projects/bioinfo/holger/bioinfo_templates/dge_workflow
source <(curl https://dl.dropboxusercontent.com/u/113630701/datautils/bash/lsf_utils.sh 2>&1 2>/dev/null)
source <(curl https://dl.dropboxusercontent.com/u/113630701/datautils/R/utils/spinr.sh 2>&1 2>/dev/null)
source
$DGE_HOME
/
lsf_rna_seq
.sh
source
$DGE_HOME
/
dge_utils
.sh
export PATH=/projects/bioinfo/holger/bin/bowtie2-2.2.2:
$PATH
...
...
This diff is collapsed.
Click to expand it.
dge_workflow/
lsf_rna_seq
.sh
→
dge_workflow/
dge_utils
.sh
+
49
−
3
View file @
2c2c4606
## docs
## http://blog.joncairns.com/2013/08/what-you-need-to-know-about-bash-functions/
source
<
(
curl https://dl.dropboxusercontent.com/u/113630701/datautils/bash/lsf_utils.sh 2>&1 2>/dev/null
)
source
<
(
curl https://dl.dropboxusercontent.com/u/113630701/datautils/R/utils/spinr.sh 2>&1 2>/dev/null
)
export
PATH
=
/projects/bioinfo/holger/bin/bowtie2-2.2.2:
$PATH
export
PATH
=
/projects/bioinfo/holger/bin/tophat-2.0.13.Linux_x86_64:
$PATH
export
PATH
=
/home/brandl/bin/cufflinks-2.2.1.Linux_x86_64:
$PATH
export
PATH
=
/sw/apps/python/current/bin:
$PATH
export
PATH
=
/home/brandl/bin/deepTools/bin:
$PATH
export
R_LIBS
=
/tmp/r_index
## export to make sure that packages are load from local repository, otherwise sqlite won't work
## create fastq report for all fastq and fastq.gz files in the current directory
dge_fastqc
(){
...
...
@@ -44,10 +57,12 @@ done
wait4jobs .fastqc_jobs
ziprm fastqc_logs fastqc__
*
ziprm fastqc_logs fastqc__
*
.log
spin.R
$DGE_HOME
/fastqc_summary.R
$outputDir
mailme
"
$project
: fastqc done in
$(
pwd
)
"
}
export
-f
dge_fastqc
...
...
@@ -66,7 +81,7 @@ for fastqFile in $* ; do
done
wait4jobs .cajobs
ziprm cutadapt_logs
${
project
}
__ca__
*
ziprm cutadapt_logs
${
project
}
__ca__
*
.log
## todo do a small report here about what has been trimmed away and why
...
...
@@ -135,13 +150,42 @@ done
wait4jobs .tophatjobs
ziprm tophat_logs
${
project
}
__tophat__
*
.log
dge_bam_correlate
.
## create tophat mapping report
spin.R
$DGE_HOME
/bam_qc.R
.
mailme
"
$project
: tophat done in
$(
pwd
)
"
}
export
-f
dge_tophat_se
dge_bam_correlate
(){
if
[
$#
-ne
1
]
;
then
echo
"Usage: dge_bam_correlate <bam_directory>"
>
&2
;
return
;
fi
local
bamDir
=
$1
bamFiles
=
$(
find
$bamDir
|
grep
".bam$"
|
grep
-v
"unmapped"
|
sort
)
bamLabels
=
$(
echo
"
$bamFiles
"
|sed
's!.*/!!'
|
sed
's/_ca.bam//g'
|
sed
's/.bam//g'
| xargs
echo
)
;
echo
$bamLabels
## see how well bam files correlate using untrimmed data
bcCmd
=
"bamCorrelate bins --bamfiles
$(
echo
$bamFiles
| xargs
echo
)
--labels
$bamLabels
--plotFile='bc.pdf' --outFileCorMatrix='bc.txt' --numberOfProcessors=6 --corMethod spearman --zMin 0.5 --zMax 1"
mysub
"
${
project
}
__bamcorrelate"
"
$bcCmd
"
-q
long
-n
4
-R
span[hosts
=
1] | blockScript
mailme
"
$project
: bamcorrelate done in
$(
pwd
)
"
}
export
-f
dge_bam_correlate
dge_cuffdiff
(){
local
gtfFile
=
$1
...
...
@@ -149,7 +193,7 @@ local bamDir=$2
local
labels
=
$3
if
[
$#
-ne
3
]
;
then
echo
"Usage: dge_fastqc <gtf_file> <bam
directory> <labels>"
>
&2
;
return
;
echo
"Usage: dge_fastqc <gtf_file> <bam
_
directory> <labels>"
>
&2
;
return
;
fi
if
[
-z
"
$(
which cuffdiff
)
"
]
;
then
...
...
@@ -209,5 +253,7 @@ fi
cp
$tmpDbDir
/cuffData.db
.
rm
-rf
$tmpDbDir
## because it's no longer needed
mailme
"
$project
: cuffdiff done in
$(
pwd
)
"
}
export
-f
dge_cuffdiff
This diff is collapsed.
Click to expand it.
misc/bam_correlation.sh
→
misc/
naha_
bam_correlation.sh
+
0
−
0
View file @
2c2c4606
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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