In segway/run.py, the function use_dinucleotide attempts to detect use of a dinucleotide track by comparing Track objects to a constant created Track object:
@memoized_property
def use_dinucleotide(self):
return TRACK_DINUCLEOTIDE in self.tracks
The TRACK_DINUCLEOTIDE is only instantiated once globally as an object:
Original report (BitBucket issue) by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).
In segway/run.py, the function
use_dinucleotide
attempts to detect use of a dinucleotide track by comparing Track objects to a constant created Track object:The
TRACK_DINUCLEOTIDE
is only instantiated once globally as an object:The constant track object will never be inside
self.tracks
since it is comparing objects, not the trackname itself.