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
1ca59443
Commit
1ca59443
authored
Aug 18, 2014
by
Peter van 't Hof
Browse files
Change chunk directory
parent
c36fb267
Changes
1
Hide whitespace changes
Inline
Side-by-side
mapping/src/main/scala/nl/lumc/sasc/biopet/pipelines/mapping/Mapping.scala
View file @
1ca59443
...
...
@@ -144,11 +144,11 @@ class Mapping(val root: Configurable) extends QScript with BiopetQScript {
}
var
chunks
:
Map
[
String
,
(
String
,
String
)]
=
Map
()
if
(
chunking
)
for
(
t
<-
1
to
numberChunks
.
getOrElse
(
1
))
{
chunk
s
+=
(
"chunk_"
+
t
->
(
removeGz
(
output
Dir
+
"chunk
_
"
+
t
+
"/"
+
fastq_R1
.
getName
),
if
(
paired
)
removeGz
(
outputDir
+
"chunk_"
+
t
+
"/"
+
fastq_R
2
.
getName
)
else
""
))
}
else
chunks
+=
(
"flexiprep"
->
(
flexiprep
.
extractIfNeeded
(
fastq_R1
,
flexiprep
.
outputDir
),
flexiprep
.
extractIfNeeded
(
fastq_R2
,
flexiprep
.
outputDir
)))
val
chunkDir
=
"chunk
s/
"
+
t
+
"/"
chunks
+=
(
chunkDir
->
(
removeGz
(
chunkDir
+
fastq_R
1
.
getName
)
,
if
(
paired
)
removeGz
(
chunkDir
+
fastq_R2
.
getName
)
else
""
))
}
else
chunks
+=
(
"flexiprep
/
"
->
(
flexiprep
.
extractIfNeeded
(
fastq_R1
,
flexiprep
.
outputDir
),
flexiprep
.
extractIfNeeded
(
fastq_R2
,
flexiprep
.
outputDir
)))
if
(
chunking
)
{
val
fastSplitter_R1
=
new
FastqSplitter
(
this
)
...
...
@@ -172,7 +172,7 @@ class Mapping(val root: Configurable) extends QScript with BiopetQScript {
var
R1
=
fastqfile
.
_1
var
R2
=
fastqfile
.
_2
var
deps
:
List
[
File
]
=
Nil
val
chunkDir
=
if
(
chunking
)
outputDir
+
chunk
+
"/"
else
outputDir
val
chunkDir
=
if
(
chunking
)
outputDir
+
chunk
else
outputDir
if
(!
skipFlexiprep
)
{
val
flexiout
=
flexiprep
.
runTrimClip
(
R1
,
R2
,
chunkDir
+
"flexiprep/"
,
chunk
)
logger
.
debug
(
chunk
+
" - "
+
flexiout
)
...
...
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