From 840f98868591b5fc95b04f0a3409d6f3d760d897 Mon Sep 17 00:00:00 2001 From: Xavier Robin <xavier.robin@unibas.ch> Date: Fri, 6 Mar 2020 15:21:59 +0100 Subject: [PATCH] fix DeprecationWarning: invalid escape sequence --- modules/base/pymod/table.py | 14 +++++++------- modules/bindings/pymod/clustalw.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/base/pymod/table.py b/modules/base/pymod/table.py index 4277edf94..6c9a039f9 100644 --- a/modules/base/pymod/table.py +++ b/modules/base/pymod/table.py @@ -835,7 +835,7 @@ Statistics for column %(col)s Operands have to be the name of a column or an expression that can be parsed to float, int, bool or string. - Valid operators are: and, or, !=, !, <=, >=, ==, =, <, >, +, -, \*, / + Valid operators are: and, or, !=, !, <=, >=, ==, =, <, >, +, -, \\*, / .. code-block:: python @@ -1137,7 +1137,7 @@ Statistics for column %(col)s :param z: column name for third dimension :type z: :class:`str` - :param style: symbol style (e.g. *.*, *-*, *x*, *o*, *+*, *\**). For a + :param style: symbol style (e.g. *.*, *-*, *x*, *o*, *+*, *\\**). For a complete list check (`matplotlib docu <http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot>`__). :type style: :class:`str` @@ -1203,7 +1203,7 @@ Statistics for column %(col)s 'linear') :type z_interpol: :class:`str` - :param \*\*kwargs: additional arguments passed to matplotlib + :param \\*\\*kwargs: additional arguments passed to matplotlib :returns: the ``matplotlib.pyplot`` module @@ -2360,7 +2360,7 @@ Statistics for column %(col)s deprecated in the future. Numpy itself suggests replacing numpy matrix by numpy array. - :param \*args: column names to include in numpy array + :param \\*args: column names to include in numpy array :warning: The function depends on *numpy* ''' @@ -2396,7 +2396,7 @@ Statistics for column %(col)s Only columns of type *int* or *float* are supported. *NA* values in the table will be converted to *None* values. - :param \*args: column names to include in numpy matrix + :param \\*args: column names to include in numpy matrix :warning: The function depends on *numpy* ''' @@ -2487,7 +2487,7 @@ Statistics for column %(col)s :math:`p` are the prefactors to optimize :math:`(a,b,c,...)` and :math:`z` is the vector containing the result of equation :eq:`op1`. - The parameter ref_col equals to :math:`z` in both equations, and \*args + The parameter ref_col equals to :math:`z` in both equations, and \\*args are columns :math:`u`, :math:`v` and :math:`w` (or :math:`A` in :eq:`op2`). All columns must be specified by their names. @@ -2499,7 +2499,7 @@ Statistics for column %(col)s The function returns a list containing the prefactors :math:`a, b, c, ...` in the correct order (i.e. same as columns were - specified in \*args). + specified in \\*args). Weighting: If the kwarg weights="columX" is specified, the equations are weighted by diff --git a/modules/bindings/pymod/clustalw.py b/modules/bindings/pymod/clustalw.py index aab374f07..f95422b79 100644 --- a/modules/bindings/pymod/clustalw.py +++ b/modules/bindings/pymod/clustalw.py @@ -72,8 +72,8 @@ def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False, nopgap=False, I isoleucine Y tyrosine K lysine Z glutamate or glutamine L leucine X any - M methionine \* translation stop - N asparagine \- gap of indeterminate length + M methionine \\* translation stop + N asparagine \\- gap of indeterminate length ======= ======================= ======= ============================ ''' -- GitLab