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

Before Change


    motif_scores=motif_scores.squeeze()
    f=plt.figure(figsize=figsize)
    plt.plot(motif_scores, "-o")
    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:

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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: scikit-optimize/scikit-optimize
Commit Name: 4a8d1ffcf12287d632fb25ef484344d68d987818
Time: 2016-07-20
Author: g.louppe@gmail.com
File Name: skopt/plots.py
Class Name:
Method Name: plot_convergence


Project Name: neurodsp-tools/neurodsp
Commit Name: 5196910e726c04648f5cffae5f50ecd3171539ce
Time: 2019-03-17
Author: tdonoghue@ucsd.edu
File Name: neurodsp/plts/filt.py
Class Name:
Method Name: plot_frequency_response