Skip to content

Commit

Permalink
changed itmesiter() in estimateEscaleFactor to its python3 compatible…
Browse files Browse the repository at this point in the history
… items()
  • Loading branch information
Leily Rabbani committed Apr 16, 2020
1 parent 09963a0 commit 2db8ebd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/estimateScaleFactor
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,24 @@ def parseArguments(args=None):

def main(args):
"""
The algorithm samples the genome a number of times as specified
The algorithm samples the genome a number of times as specified
by the --numberOfSamples parameter to estimate scaling factors of
betweeen to samples
betweeen to samples
"""
if len(args.bamfiles) > 2:
print("SES method to stimate scale factors only works for two samples")
exit(0)

sys.stderr.write("{:,} number of samples will be computed.\n".format(args.numberOfSamples))
sizeFactorsDict = estimateScaleFactor(args.bamfiles, args.sampleWindowLength,
sizeFactorsDict = estimateScaleFactor(args.bamfiles, args.sampleWindowLength,
args.numberOfSamples,
args.normalizationLength,
numberOfProcessors=args.numberOfProcessors,
chrsToSkip=args.ignoreForNormalization,
verbose=args.verbose)

for k, v in sizeFactorsDict.iteritems():
for k, v in sizeFactorsDict.items():
print("{}: {}".format(k, v))


Expand Down

0 comments on commit 2db8ebd

Please sign in to comment.