コード例 #1
0
ファイル: tffm_module.py プロジェクト: sakatani/TFFM
    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)
コード例 #2
0
ファイル: tffm_module.py プロジェクト: sakatani/TFFM
    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)