Commit 38fd1a6e authored by Raphael Müller's avatar Raphael Müller
Browse files

changed parsing from string to int to string to long

parent 32cd8a0c
......@@ -589,10 +589,10 @@ if (coverageHistogram) {
/*
* Print results
*/
chPeakAsInteger = chPeak.map { num -> [num[0], Integer.parseInt(num[1])] }
chTotalNucleotidesAsInteger = chTotalNucleotidesResults.map { num -> [num[0], Integer.parseInt(num[1])] }
chGenomeSizeEstimationResults = chTotalNucleotidesAsInteger
.join(chPeakAsInteger)
chPeakAsLong = chPeak.map { num -> [num[0], Long.parseLong(num[1])] }
chTotalNucleotidesAsLong = chTotalNucleotidesResults.map { num -> [num[0], Long.parseLong(num[1])] }
chGenomeSizeEstimationResults = chTotalNucleotidesAsLong
.join(chPeakAsLong)
.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.parseInt(num) }.combine(chGenomeSizeEstimationResults).map { res ->
chAssemblyGenomeSize.map { num -> Long.parseLong(num) }.combine(chGenomeSizeEstimationResults).map { res ->
assemblyLength = res[0]
tech = res[1]
file = res[2]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment