Skip to content

Commit

Permalink
Merge pull request #25 from martinghunt/sspace_sd_bug
Browse files Browse the repository at this point in the history
SSAPCE sd cannot exceed 1
  • Loading branch information
martinghunt committed Apr 16, 2015
2 parents ef781a1 + 755db83 commit f26abe5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ariba/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def _bam_to_clusters_reads(self):
def _set_insert_size_data(self):
assert len(self.insert_hist) > 0
(x, self.insert_size, pc95, self.insert_sspace_sd) = self.insert_hist.stats()
self.insert_sspace_sd = min(1, self.insert_sspace_sd)
self.insert_proper_pair_max = 1.1 * pc95
if self.verbose:
print('\nInsert size information from reads mapped to reference genes:')
Expand Down

0 comments on commit f26abe5

Please sign in to comment.