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

def Bio::Graphics::DisplayRepresentation::ChromosomeCounts::__init__ (   self,
  segment_names,
  color_scheme = RAINBOW_COLORS 
)

Initialize a representation of chromosome counts.

Arguments:

o segment_names - An ordered list of all segment names along
the chromosome. The count and other information will be added to
these.

o color_scheme - A coloring scheme to use in the counts. This should
be a dictionary mapping count ranges to colors (specified in
reportlab.lib.colors).

Definition at line 35 of file DisplayRepresentation.py.

00035                                                                     :
        """Initialize a representation of chromosome counts.

        Arguments:

        o segment_names - An ordered list of all segment names along
        the chromosome. The count and other information will be added to
        these.

        o color_scheme - A coloring scheme to use in the counts. This should
        be a dictionary mapping count ranges to colors (specified in
        reportlab.lib.colors).
        """
        self._names = segment_names
        self._count_info = {}
        self._label_info = {}
        self._scale_info = {}
        for name in self._names:
            self._count_info[name] = 0
            self._label_info[name] = None
            self._scale_info[name] = 1
        
        self._color_scheme = color_scheme

    def add_count(self, segment_name, count = 1):


Generated by  Doxygen 1.6.0   Back to index