From 6f23b84691cee1597694d7ae83ab9366a29b5437 Mon Sep 17 00:00:00 2001 From: dschride <41480286+dschride@users.noreply.github.com> Date: Tue, 7 Dec 2021 23:12:35 -0500 Subject: [PATCH] Fixed py2->py3 integer division snafu --- diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py b/diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py index 71d522a..de53aaa 100644 --- a/diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py +++ b/diploshic/makeFeatureVecsForChrArmFromVcfDiploid.py @@ -269,7 +269,7 @@ def readSampleToPopFile(sampleToPopFileName): outVec = [] for statName in statNames: outVec += normalizeFeatureVec(statVals[statName][-numSubWins:]) - midSubWinEnd = subWinEnd - subWinSize * (numSubWins / 2) + midSubWinEnd = int(subWinEnd - subWinSize * (numSubWins // 2)) midSubWinStart = midSubWinEnd - subWinSize + 1 outFile.write( "%s\t%d\t%d\t%d-%d\t"