38512d92a8682a62e73c5b9e86366888be374532,dragonn/vis/__init__.py,,plot_motif_scores,#,48

Before Change


    plt.xlabel("Sequence base")
    //threshold motif scores at 0; any negative scores are noise that we do not need to visualize
    if plt.ylim!=None:
        plt.ylim(ylim)
    if xlim!=None:
        plt.xlim(xlim)
    plt.title(title)
    if show==True:

After Change


def plot_motif_scores(motif_scores,title="",figsize=(20,3),ylim=(0,20),xlim=None,axes=None):
    //remove any redundant axes
    motif_scores=motif_scores.squeeze()
    if axes is None:
        f,axes=plt.subplots(1,dpi=80,figsize=figsize)
        show=True
    else:
        show=False
    axes.plot(motif_scores, "-o")
    axes.set_xlabel("Sequence base")
    //threshold motif scores at 0; any negative scores are noise that we do not need to visualize
    if ylim!=None:
        axes.set_ylim(ylim)
    if xlim!=None:
        axes.set_xlim(xlim)
    axes.set_title(title)
    if show==True:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: kundajelab/dragonn
Commit Name: 38512d92a8682a62e73c5b9e86366888be374532
Time: 2019-05-29
Author: annashcherbina@gmail.com
File Name: dragonn/vis/__init__.py
Class Name:
Method Name: plot_motif_scores


Project Name: aertslab/pySCENIC
Commit Name: 2ddf94e48476ff253260a3364f76ee13a932e252
Time: 2018-06-15
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/binarization.py
Class Name:
Method Name: plot_binarization


Project Name: rasbt/mlxtend
Commit Name: 209663123a5a96c62267e10556c3d90716a39c6f
Time: 2015-05-28
Author: se.raschka@me.com
File Name: mlxtend/matplotlib/enrichment_plot.py
Class Name:
Method Name: enrichment_plot