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

set_bounds(self, start, end)

    o start     The first base (or feature mark) to draw from

    o end       The last base (or feature mark) to draw to

    Sets start and end points for the drawing as a whole

Definition at line 472 of file _AbstractDrawer.py.

References Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.end, Bio.Emboss.PrimerSearch.Amplifier.length, Bio.CAPS.CAPSMap.length, Bio.Blast.Record.Alignment.length, Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.length, 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._AbstractDrawer.AbstractDrawer.__init__().

00472 
    def set_bounds(self, start, end):
        """ set_bounds(self, start, end)

            o start     The first base (or feature mark) to draw from

            o end       The last base (or feature mark) to draw to

            Sets start and end points for the drawing as a whole
        """
        low, high = self._parent.range()  # Extent of tracks

        if start is not None and end is not None and start > end:
            start, end = end, start

        if start is None or start < 1:  # Check validity of passed args and 
            start = 1   # default to 1
        if end is None or end < 1:
            end = high + 1  # default to track range top limit
        
        self.start, self.end = int(start), int(end)
        self.length = self.end - self.start + 1


Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index