Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

is_in_bounds(self, value)

    o value   A base position

    Returns 1 if the value is within the region selected for drawing

Definition at line 495 of file _AbstractDrawer.py.

References Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.end, Bio.PDB.Dice.ChainSelector.start, Bio::CAPS::DifferentialCutsite.start, Bio.Motif.Parsers.MEME.MEMEInstance.start, Bio.Graphics.GenomeDiagram._Diagram.Diagram.start, Bio.SeqFeature.FeatureLocation.start, and Bio.Phylo.PhyloXML.ProteinDomain.start.

Referenced by Bio.Graphics.GenomeDiagram._CircularDrawer.CircularDrawer.draw_feature_set(), and Bio.Graphics.GenomeDiagram._LinearDrawer.LinearDrawer.draw_feature_set().

00495 
    def is_in_bounds(self, value):
        """ is_in_bounds(self, value)

            o value   A base position

            Returns 1 if the value is within the region selected for drawing
        """
        if value >= self.start and value <= self.end:
            return 1
        return 0


Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index