hoffmangroup / segway

Application for semi-automated genomic annotation.
http://segway.hoffmanlab.org/
GNU General Public License v2.0
13 stars 7 forks source link

--dinucleotide option and "use_dinucleotide" doesn't seem to work #100

Open EricR86 opened 7 years ago

EricR86 commented 7 years ago

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:

    @memoized_property
    def use_dinucleotide(self):
        return TRACK_DINUCLEOTIDE in self.tracks

The TRACK_DINUCLEOTIDE is only instantiated once globally as an object:

TRACK_DINUCLEOTIDE = Track("dinucleotide", is_data=False)

The constant track object will never be inside self.tracks since it is comparing objects, not the trackname itself.