Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbg
backmap_workflow
Commits
38fd1a6e
Commit
38fd1a6e
authored
Feb 15, 2021
by
Raphael Müller
Browse files
changed parsing from string to int to string to long
parent
32cd8a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
nextflow/backmap.nf
View file @
38fd1a6e
...
...
@@ -589,10 +589,10 @@ if (coverageHistogram) {
/*
* Print results
*/
chPeakAs
Integer
=
chPeak
.
map
{
num
->
[
num
[
0
],
Integer
.
parse
Int
(
num
[
1
])]
}
chTotalNucleotidesAs
Integer
=
chTotalNucleotidesResults
.
map
{
num
->
[
num
[
0
],
Integer
.
parse
Int
(
num
[
1
])]
}
chGenomeSizeEstimationResults
=
chTotalNucleotidesAs
Integer
.
join
(
chPeakAs
Integer
)
chPeakAs
Long
=
chPeak
.
map
{
num
->
[
num
[
0
],
Long
.
parse
Long
(
num
[
1
])]
}
chTotalNucleotidesAs
Long
=
chTotalNucleotidesResults
.
map
{
num
->
[
num
[
0
],
Long
.
parse
Long
(
num
[
1
])]
}
chGenomeSizeEstimationResults
=
chTotalNucleotidesAs
Long
.
join
(
chPeakAs
Long
)
.
join
(
chGenomeEstimationSortedBams
)
.
map
{
res
->
[
res
[
0
],
res
[
3
],
res
[
1
],
res
[
2
],
res
[
1
]
/
res
[
2
]]
}
...
...
@@ -605,7 +605,7 @@ if (coverageHistogram) {
}
}
// closure rfp
chAssemblyGenomeSize
.
map
{
num
->
Integer
.
parse
Int
(
num
)
}.
combine
(
chGenomeSizeEstimationResults
).
map
{
res
->
chAssemblyGenomeSize
.
map
{
num
->
Long
.
parse
Long
(
num
)
}.
combine
(
chGenomeSizeEstimationResults
).
map
{
res
->
assemblyLength
=
res
[
0
]
tech
=
res
[
1
]
file
=
res
[
2
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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