The PeakShapeResult class is defined in bamtools.peakshape thus:
PeakShapeResult = collections.namedtuple(
"PeakShapeResult",
"interval_width npeaks "
"peak_center peak_width peak_height peak_relative_pos "
"nreads "
"median closest_half_height furthest_halfheight "
"bins counts" )
however, in several places bam2peakshape.py refers to the .hist property of a PeakShapeResult or PeakShapeCounts object. Looking at the code, I'm getting the feeling that what is now counts was once called hist, but when it was renamed, not all instances of hist were caught.
This means that if bam2peakshape is called with the argument --use-strand the error:
AttributeError: 'PeakShapeResult' object has no attribute 'hist'
will be thrown. The correction should be simple, but this really should also be covered by a test. I would do it now, but I've got a butt load of lectures to write before next week. Maybe I'll get round it later.
The PeakShapeResult class is defined in
bamtools.peakshapethus:however, in several places
bam2peakshape.pyrefers to the.histproperty of a PeakShapeResult or PeakShapeCounts object. Looking at the code, I'm getting the feeling that what is nowcountswas once calledhist, but when it was renamed, not all instances ofhistwere caught.This means that if bam2peakshape is called with the argument
--use-strandthe error:AttributeError: 'PeakShapeResult' object has no attribute 'hist'will be thrown. The correction should be simple, but this really should also be covered by a test. I would do it now, but I've got a butt load of lectures to write before next week. Maybe I'll get round it later.