Mercurial > repos > yufei-luo > s_mart
diff SMART/Java/Python/clusterize.py @ 46:169d364ddd91
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 30 Sep 2013 03:19:26 -0400 |
parents | 44d5973c188c |
children | 90f4b29d884f |
line wrap: on
line diff
--- a/SMART/Java/Python/clusterize.py Wed Sep 18 08:51:22 2013 -0400 +++ b/SMART/Java/Python/clusterize.py Mon Sep 30 03:19:26 2013 -0400 @@ -104,8 +104,7 @@ else: progress = Progress(self.nbElementsPerChromosome[chromosome], "Checking chromosome %s" % (chromosome), self.verbosity) parser = NCListFileUnpickle(self.splittedFileNames[chromosome], self.verbosity) - transcripts = [] - self.nbElements = 0 + transcripts = [] for newTranscript in parser.getIterator(): newTranscripts = [] if newTranscript.__class__.__name__ == "Mapping": @@ -119,7 +118,6 @@ newTranscripts.append(oldTranscript) newTranscripts.append(newTranscript) transcripts = newTranscripts - self.nbElements += 1 progress.inc() for transcript in transcripts: self._write(transcript)