Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD 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
Mirrors
biopet.biopet
Commits
922b3949
Commit
922b3949
authored
10 years ago
by
bow
Browse files
Options
Downloads
Patches
Plain Diff
Open and close handlers properly
parent
074a4fc6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/FastqSync.scala
+18
-12
18 additions, 12 deletions
.../src/main/scala/nl/lumc/sasc/biopet/tools/FastqSync.scala
with
18 additions
and
12 deletions
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/FastqSync.scala
+
18
−
12
View file @
922b3949
...
...
@@ -165,8 +165,6 @@ object FastqSync extends ToolCommand {
}
syncIter
(
pre
.
iterator
.
asScala
.
toStream
,
seqA
.
iterator
.
asScala
.
toStream
,
seqB
.
iterator
.
asScala
.
toStream
)
seqOutA
.
close
()
seqOutB
.
close
()
(
numDiscA
,
numDiscB
,
numKept
)
}
...
...
@@ -252,15 +250,23 @@ object FastqSync extends ToolCommand {
val
commandArgs
:
Args
=
parseArgs
(
args
)
val
(
numDiscA
,
numDiscB
,
numKept
)
=
syncFastq
(
new
FastqReader
(
commandArgs
.
refFastq
),
new
FastqReader
(
commandArgs
.
inputFastq1
),
new
FastqReader
(
commandArgs
.
inputFastq2
),
new
AsyncFastqWriter
(
new
BasicFastqWriter
(
commandArgs
.
outputFastq1
),
3000
),
new
AsyncFastqWriter
(
new
BasicFastqWriter
(
commandArgs
.
outputFastq2
),
3000
))
println
(
s
"Filtered $numDiscA reads from first read file."
)
println
(
s
"Filtered $numDiscB reads from second read file."
)
println
(
s
"Synced files contain $numKept reads."
)
val
refReader
=
new
FastqReader
(
commandArgs
.
refFastq
)
val
AReader
=
new
FastqReader
(
commandArgs
.
inputFastq1
)
val
BReader
=
new
FastqReader
(
commandArgs
.
inputFastq2
)
val
AWriter
=
new
AsyncFastqWriter
(
new
BasicFastqWriter
(
commandArgs
.
outputFastq1
),
3000
)
val
BWriter
=
new
AsyncFastqWriter
(
new
BasicFastqWriter
(
commandArgs
.
outputFastq2
),
3000
)
try
{
val
(
numDiscA
,
numDiscB
,
numKept
)
=
syncFastq
(
refReader
,
AReader
,
BReader
,
AWriter
,
BWriter
)
println
(
s
"Filtered $numDiscA reads from first read file."
)
println
(
s
"Filtered $numDiscB reads from second read file."
)
println
(
s
"Synced files contain $numKept reads."
)
}
finally
{
refReader
.
close
()
AReader
.
close
()
BReader
.
close
()
AWriter
.
close
()
BWriter
.
close
()
}
}
}
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