Exemplo n.º 1
0
def show_multiple_uverskyPlot2(
        SeqParam_list,
        label_list=[],
        title="Uversky plot",
        legendOn=True,
        xLim=1,
        yLim=1,
        fontSize=10,
        getFig=False):
    """
    Plots multiple sequences on the Uversky plot (hydropathy vs. mean net charge) and shows the plot on the screen.
    This function takes a list of SequenceParameter objects instead of the actual values

    INPUT:
    --------------------------------------------------------------------------------
    SeqParam_list        | List of sequence parameter objects

    label_list           | List of labels for each sequence (empty = no list)
    title                | Plot title (DEFAULT = "Uversky plot")
    legendOn             | Include the phase diagram region legend (DEFAULT = True)
    xLim                 | Set upper limit for the x axis (DEFAULT = 1)
    yLim                 | Set upper limit for the y axis (DEFAULT = 1)
    fontSize             | Set font size for the point labels (DEFAULT = 10)
    getFig               | Returns a matplotlib figure object instead of simply displaying the
                         | plot on the screen (DEFAULT = False)


    OUTPUT:
    --------------------------------------------------------------------------------
    Nothing, but a Uversky plot with multiple points should appear on the screen

    """

    # construct the fraction positive and negative vectors
    hydropathy_list = []
    mean_net_charge_list = []
    for seq in SeqParam_list:

        hydropathy_list.append(seq.get_uversky_hydropathy())
        mean_net_charge_list.append(seq.get_mean_net_charge())

    return plotting.show_multiple_uverskyPlot(
        hydropathy_list,
        mean_net_charge_list,
        label_list,
        title,
        legendOn,
        xLim,
        yLim,
        fontSize,
        getFig)
Exemplo n.º 2
0
def show_multiple_uverskyPlot2(SeqParam_list,
                               label_list=[],
                               title="Uversky plot",
                               legendOn=True,
                               xLim=1,
                               yLim=1,
                               fontSize=10,
                               getFig=False):
    """
    Plots multiple sequences on the Uversky plot (hydropathy vs. mean net charge) and shows the plot on the screen.
    This function takes a list of SequenceParameter objects instead of the actual values

    INPUT:
    --------------------------------------------------------------------------------
    SeqParam_list        | List of sequence parameter objects

    label_list           | List of labels for each sequence (empty = no list)
    title                | Plot title (DEFAULT = "Uversky plot")
    legendOn             | Include the phase diagram region legend (DEFAULT = True)
    xLim                 | Set upper limit for the x axis (DEFAULT = 1)
    yLim                 | Set upper limit for the y axis (DEFAULT = 1)
    fontSize             | Set font size for the point labels (DEFAULT = 10)
    getFig               | Returns a matplotlib figure object instead of simply displaying the
                         | plot on the screen (DEFAULT = False)


    OUTPUT:
    --------------------------------------------------------------------------------
    Nothing, but a Uversky plot with multiple points should appear on the screen

    """

    # construct the fraction positive and negative vectors
    hydropathy_list = []
    mean_net_charge_list = []
    for seq in SeqParam_list:

        hydropathy_list.append(seq.get_uversky_hydropathy())
        mean_net_charge_list.append(seq.get_mean_net_charge())

    return plotting.show_multiple_uverskyPlot(hydropathy_list,
                                              mean_net_charge_list, label_list,
                                              title, legendOn, xLim, yLim,
                                              fontSize, getFig)
Exemplo n.º 3
0
def show_multiple_uverskyPlot(
        hydropathy_list,
        mean_net_charge_list,
        label_list=[],
        title="Uversky plot",
        legendOn=True,
        xLim=1,
        yLim=1,
        fontSize=10,
        getFig=False):
    """
    Plots multiple sequences on the Uversky plot (hydropathy vs. mean net charge) and shows the plot on the screen.

    INPUT:
    --------------------------------------------------------------------------------
    hydropathy_list      | List of proteins' mean hydropathy
    mean_net_charge_list | List of the absolute magnitude of the protein's net charge divided by sequence length

    label_list           | List of labels for each sequence (empty = no list)
    title                | Plot title (DEFAULT = "Uversky plot")
    legendOn             | Include the phase diagram region legend (DEFAULT = True)
    xLim                 | Set upper limit for the x axis (DEFAULT = 1)
    yLim                 | Set upper limit for the y axis (DEFAULT = 1)
    fontSize             | Set font size for the point labels (DEFAULT = 10)
    getFig               | Returns a matplotlib figure object instead of simply displaying the
                         | plot on the screen (DEFAULT = False)


    OUTPUT:
    --------------------------------------------------------------------------------
    Nothing, but a Uversky plot with multiple points should appear on the screen

    """
    return plotting.show_multiple_uverskyPlot(
        hydropathy_list,
        mean_net_charge_list,
        label_list,
        title,
        legendOn,
        xLim,
        yLim,
        fontSize,
        getFig)
Exemplo n.º 4
0
def show_multiple_uverskyPlot(hydropathy_list,
                              mean_net_charge_list,
                              label_list=[],
                              title="Uversky plot",
                              legendOn=True,
                              xLim=1,
                              yLim=1,
                              fontSize=10,
                              getFig=False):
    """
    Plots multiple sequences on the Uversky plot (hydropathy vs. mean net charge) and shows the plot on the screen.

    INPUT:
    --------------------------------------------------------------------------------
    hydropathy_list      | List of proteins' mean hydropathy
    mean_net_charge_list | List of the absolute magnitude of the protein's net charge divided by sequence length

    label_list           | List of labels for each sequence (empty = no list)
    title                | Plot title (DEFAULT = "Uversky plot")
    legendOn             | Include the phase diagram region legend (DEFAULT = True)
    xLim                 | Set upper limit for the x axis (DEFAULT = 1)
    yLim                 | Set upper limit for the y axis (DEFAULT = 1)
    fontSize             | Set font size for the point labels (DEFAULT = 10)
    getFig               | Returns a matplotlib figure object instead of simply displaying the
                         | plot on the screen (DEFAULT = False)


    OUTPUT:
    --------------------------------------------------------------------------------
    Nothing, but a Uversky plot with multiple points should appear on the screen

    """
    return plotting.show_multiple_uverskyPlot(hydropathy_list,
                                              mean_net_charge_list, label_list,
                                              title, legendOn, xLim, yLim,
                                              fontSize, getFig)