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
d0b89814
Commit
d0b89814
authored
9 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
migrated bc wrapper to jl
parent
749ddf64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dge_workflow/dge_utils.sh
+8
-7
8 additions, 7 deletions
dge_workflow/dge_utils.sh
dge_workflow/star_qc.R
+1
-1
1 addition, 1 deletion
dge_workflow/star_qc.R
dge_workflow/tophat_qc.R
+1
-1
1 addition, 1 deletion
dge_workflow/tophat_qc.R
with
10 additions
and
9 deletions
dge_workflow/dge_utils.sh
+
8
−
7
View file @
d0b89814
...
...
@@ -195,22 +195,23 @@ if [ $# -eq 0 ]; then
return
;
fi
local
bamDir
=
$1
if
[
$#
-e
1
]
;
then
bamFiles
=
$(
find
$
bamDir
|
grep
".bam$"
|
grep
-v
"unmapped"
|
sort
)
if
[
$#
-e
q
1
]
;
then
bamFiles
=
$(
find
$
1
|
grep
".bam$"
|
grep
-v
"unmapped"
|
sort
)
else
bamFiles
=
$*
fi
bamLabels
=
$(
echo
"
$bamFiles
"
| xargs
-n1
basename
|
sed
's!.*/!!'
|
sed
's/_mmf.bam//g'
|
sed
's/_ca.bam//g'
|
sed
's/.bam//g'
| xargs
echo
)
;
echo
$bamLabels
local
bamLabels
=
$(
echo
"
$bamFiles
"
| xargs
-n1
basename
|
sed
's!.*/!!'
|
sed
's/_mmf.bam//g'
|
sed
's/_ca.bam//g'
|
sed
's/.bam//g'
| xargs
echo
)
;
echo
"Used bam labels are:
$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"
echo
$bcCmd
bcCmd
=
"bamCorrelate bins --bamfiles
$(
echo
$bamFiles
| xargs
echo
)
--labels
$bamLabels
--plotFile=bc.pdf --outFileCorMatrix=bc.txt --numberOfProcessors=
4
--corMethod spearman --zMin 0.5 --zMax 1"
#
echo
"cmd is
$bcCmd
"
#mysub "${project}__bamcorrelate" "$bcCmd" -q long -n 4 -R span[hosts=1] | blockScript .bamcorrelate
#mailme "$project: bamcorrelate done in $(pwd)"
jl submit
--wait
--jl
.bamcorrelate
-q
long
-t
4
-n
"
${
project
}
__bamcorrelate"
"
$bcCmd
"
}
export
-f
dge_bam_correlate
...
...
This diff is collapsed.
Click to expand it.
dge_workflow/star_qc.R
+
1
−
1
View file @
d0b89814
...
...
@@ -120,7 +120,7 @@ algnSummaryLong %>% filter(str_detect(variable, "Uniquely_mapped_reads_Perc|Perc
#' ## Alignment Correlation
#' Without using any transcriptome as reference, the genome can be binned and alignment counts per bin can be used to perform a correlation analysis.
#'
Used tool
[deepTools](https://github.com/fidelram/deepTools)
#'
Created using
[deepTools](https://github.com/fidelram/deepTools)
## http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html
#+ results="asis"
...
...
This diff is collapsed.
Click to expand it.
dge_workflow/tophat_qc.R
+
1
−
1
View file @
d0b89814
...
...
@@ -79,7 +79,7 @@ ggplot(algnSummary, aes(condition, mapped_reads)) +
#' ## Alignment Correlation
#' Without using any transcriptome as reference, the genome can be binned and alignment counts per bin can be used to perform a correlation analysis.
#'
Used tool
[deepTools](https://github.com/fidelram/deepTools)
#'
Created using
[deepTools](https://github.com/fidelram/deepTools)
## http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html
#+ results="asis"
...
...
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