2e19f878707e04da7d9a4ccbe0cceb515b433124,dragonn/vis/__init__.py,,plot_ism,#,12

Before Change


def plot_ism(ism_mat,title,vmin=None,vmax=None):
    // create discrete colormap of ISM scores
    extent = [0, ism_mat.shape[0], 0, 100*ism_mat.shape[1]]
    plt.figure(figsize=(20,3))
    if vmin==None:
        vmin=np.amin(ism_mat)
    if vmax==None:
        vmax=np.amax(ism_mat)

After Change


    ymin=np.amin(ism_mat)
    ymax=np.amax(ism_mat)
    axes[1].imshow(ism_mat.T,extent=extent,vmin=ymin, vmax=ymax, interpolation="nearest",aspect="auto")
    axes[1].set_xlabel("Sequence base")
    axes[1].set_ylabel("ISM Score")
    axes[1].set_title(title)
    axes[1].set_yticks(np.arange(50,100*ism_mat.shape[1],100),("A","C","G","T"))
    plt.set_cmap("RdBu")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kundajelab/dragonn
Commit Name: 2e19f878707e04da7d9a4ccbe0cceb515b433124
Time: 2019-04-30
Author: annashcherbina@gmail.com
File Name: dragonn/vis/__init__.py
Class Name:
Method Name: plot_ism


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: neurodsp-tools/neurodsp
Commit Name: 858b460aeab7d80e6d67da022ccca1cf11efe89a
Time: 2020-06-14
Author: tdonoghue@ucsd.edu
File Name: neurodsp/plts/spectral.py
Class Name:
Method Name: plot_spectral_hist