Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
8c5573ad
Commit
8c5573ad
authored
Apr 14, 2017
by
Peter van 't Hof
Committed by
GitHub
Apr 14, 2017
Browse files
Merge pull request #71 from biopet/fix-BIOPET-651
Adding a adapter cutoff for fastqc -> cutadapt
parents
865f33cf
5e121141
Changes
1
Hide whitespace changes
Inline
Side-by-side
flexiprep/src/main/scala/nl/lumc/sasc/biopet/pipelines/flexiprep/Fastqc.scala
View file @
8c5573ad
...
...
@@ -206,7 +206,9 @@ class Fastqc(root: Configurable) extends nl.lumc.sasc.biopet.extensions.Fastqc(r
val
foundAdapters
=
modules
.
get
(
"Adapter Content"
).
map
{
x
=>
val
header
=
x
.
lines
.
head
.
split
(
"\t"
).
tail
.
zipWithIndex
val
lines
=
x
.
lines
.
tail
.
map
(
_
.
split
(
"\t"
).
tail
)
val
found
=
header
.
filter
(
h
=>
lines
.
exists
(
x
=>
x
(
h
.
_2
).
toFloat
>
0
)).
map
(
_
.
_1
)
val
found
=
header
.
filter
(
h
=>
lines
.
exists
(
x
=>
x
(
h
.
_2
).
toFloat
>
adapterCutoff
))
.
map
(
_
.
_1
)
adapterSet
.
filter
(
x
=>
found
.
contains
(
x
.
name
))
}
...
...
@@ -214,6 +216,8 @@ class Fastqc(root: Configurable) extends nl.lumc.sasc.biopet.extensions.Fastqc(r
}
else
Set
()
}
val
adapterCutoff
:
Float
=
config
(
"adapter_cutoff"
,
default
=
0.001
)
@Output
private
var
outputFiles
:
List
[
File
]
=
Nil
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment