def print_summary_logo(self, output=sys.stdout): """ Print the svg code of the corresponding summary logo (i.e. similar to a regular sequence logo). :arg output: Stream where to output the svg (defaut: :class:`sys.stdout`). :type output: file :note: The *output* argument is not a file name but it is an **already** open file stream. """ drawing.draw_logo(output, self, LOGO_TYPE.SUMMARY)
def print_dense_logo(self, output=sys.stdout): """ Print the svg code of the corresponding dense logo (i.e. displaying the dinucleotide dependencies captured by the TFFM). :arg output: Stream where to output the svg (defaut: :class:`sys.stdout`). :type output: file :note: The *output* argument is not a file name but it is an **already** open file stream. """ # No dependencies in 0order TFFMs if self.kind == TFFM_KIND.ZERO_ORDER: raise exceptions_errors.TFFMKindError(self.kind) drawing.draw_logo(output, self, LOGO_TYPE.DENSE)