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
9dac4f98
Commit
9dac4f98
authored
10 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
integrated cutadapt log parser into workflow
parent
f5a99481
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_master_template.sh
+2
-2
2 additions, 2 deletions
dge_workflow/dge_master_template.sh
dge_workflow/dge_utils.sh
+3
-0
3 additions, 0 deletions
dge_workflow/dge_utils.sh
dge_workflow/fastqc_summary.R
+10
-4
10 additions, 4 deletions
dge_workflow/fastqc_summary.R
with
15 additions
and
6 deletions
dge_workflow/dge_master_template.sh
+
2
−
2
View file @
9dac4f98
...
...
@@ -11,7 +11,7 @@ export PATH=$DGE_HOME:$DGE_HOME/../misc/:$PATH
########################################################################################################################
### QC
dge_fastqc *fastq.gz &
dge_fastqc
$(
ls
*
fastq.gz
)
&
########################################################################################################################
...
...
@@ -21,7 +21,7 @@ mcdir $baseDir/trimmed
dge_cutadapt
$(
ls
$baseDir
/treps_pooled/
*
fastq.gz
)
2>&1 | tee cutadapt.log
dge_fastqc
$(
ls
*
fastq.gz
)
dge_fastqc
$(
ls
*
fastq.gz
)
&
########################################################################################################################
...
...
This diff is collapsed.
Click to expand it.
dge_workflow/dge_utils.sh
+
3
−
0
View file @
9dac4f98
...
...
@@ -82,6 +82,9 @@ for fastqFile in $* ; do
done
wait4jobs .cajobs
spin.R
$DGE_HOME
/cutadapt_summary.R
.
ziprm cutadapt_logs
${
project
}
__ca__
*
.log
...
...
This diff is collapsed.
Click to expand it.
dge_workflow/fastqc_summary.R
+
10
−
4
View file @
9dac4f98
...
...
@@ -49,7 +49,10 @@ readCount <- function(statsFile){
readCounts
<-
fastqDataFiles
%>%
ldply
(
readCount
)
%>%
print_head
()
require.auto
(
scales
)
ggplot
(
readCounts
,
aes
(
run
,
num_reads
))
+
geom_bar
(
stat
=
"identity"
)
+
coord_flip
()
+
scale_y_continuous
(
labels
=
comma
)
gg
<-
ggplot
(
readCounts
,
aes
(
run
,
num_reads
))
+
geom_bar
(
stat
=
"identity"
)
+
coord_flip
()
+
scale_y_continuous
(
labels
=
comma
)
+
ggtitle
(
"read counts"
)
#+ results='asis'
gg
%>%
ggsave2
(
width
=
15
,
height
=
round
(
nrow
(
readCounts
)
/
4
),
limitsize
=
FALSE
)
%>%
paste0
(
"<img src='"
,
.
,
"'><br>"
)
%>%
cat
()
### Create a faill/pass matrix
...
...
@@ -68,10 +71,14 @@ readSummary <- function(statsFile){
qcSummary
<-
list.files
(
path
=
baseDir
,
pattern
=
"^summary.txt"
,
full.names
=
TRUE
,
recursive
=
T
)
%>%
ldply
(
readSummary
)
#+ fig.height=20
qcSummary
%>%
ggplot
(
aes
(
score
,
run
,
fill
=
tolower
(
flag
)))
+
gg
<-
qcSummary
%>%
ggplot
(
aes
(
score
,
run
,
fill
=
tolower
(
flag
)))
+
geom_tile
()
+
rotXlab
()
+
scale_fill_manual
(
values
=
c
(
fail
=
"darkred"
,
pass
=
"darkgreen"
,
warn
=
"orange"
))
scale_fill_manual
(
values
=
c
(
fail
=
"darkred"
,
pass
=
"darkgreen"
,
warn
=
"orange"
))
+
ggtitle
(
"fastqc passcodes"
)
#+ results='asis'
gg
%>%
ggsave2
(
width
=
15
,
height
=
round
(
nrow
(
readCounts
)
/
4
),
limitsize
=
FALSE
)
%>%
paste0
(
"<img src='"
,
.
,
"'><br>"
)
%>%
cat
()
#' # Base Quality Distribution Summary
...
...
@@ -98,7 +105,6 @@ baseQualities <- fastqDataFiles %>% ldply(readBaseQualDist)
#with(baseQualities, as.data.frame(table(run)))
#+ fig.height=20
baseQualities
%>%
ggplot
(
aes
(
reorder
(
Base
,
base_order
),
Mean
,
group
=
run
,
color
=
run
))
+
geom_line
()
+
scale_y_continuous
(
limits
=
c
(
2
,
40
))
...
...
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