5356c93e2c5a5c349f59d50fb81849ed5b0aa556,lib/prody/sequence/plotting.py,,showShannonEntropy,#Any#Any#,31
Before Change
xlabel = kwargs.pop("xlabel", None)
if indices is None:
length = len(entropy)
if msa is not None and False:
try:
occ = calcMSAOccupancy(msa, "row")
except TypeError:
pass
else:
split, msa.split = msa.split, True
rows = (occ == 1.0).nonzero()[0]
for row in rows:
//try:
label, seq, start, end = msa[row]
//except:
// break
//else:
if end - start - 1 == length:
indices = arange(start, end + 1)
xlabel = "Residue number ({0:s})".format(label)
break
msa.split = split
if indices is None:
indices = arange(1, length + 1)
xlabel = xlabel or "MSA column index"
After Change
format = kwargs.pop("format", True)
import matplotlib.pyplot as plt
show = plt.bar(indices, entropy, **kwargs)
if format:
plt.xlabel(xlabel)
plt.ylabel(ylabel)
if title is None:
if msa is None:
title = "Conservation"
else:
title = "Conservation: " + str(msa)
plt.title(title)
return show
def showMutualInfo(mutinfo, *args, **kwargs):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: prody/ProDy
Commit Name: 5356c93e2c5a5c349f59d50fb81849ed5b0aa556
Time: 2012-11-19
Author: lordnapi@gmail.com
File Name: lib/prody/sequence/plotting.py
Class Name:
Method Name: showShannonEntropy
Project Name: home-assistant/home-assistant
Commit Name: db23320659a711637b5164fbe6ae6db15cc48e48
Time: 2016-07-06
Author: dale3h@gmail.com
File Name: homeassistant/components/sensor/apcupsd.py
Class Name:
Method Name: setup_platform
Project Name: streamlit/streamlit
Commit Name: 3e96b208fe5bc38223eb453b68a03dae51a33544
Time: 2018-10-22
Author: thiagot@gmail.com
File Name: lib/streamlit/caseconverters.py
Class Name:
Method Name: to_lower_camel_case
Project Name: nilearn/nilearn
Commit Name: 5d45f91146e9ee822ad3db651748d4bd1491fbc1
Time: 2013-08-26
Author: philippe.gervais@inria.fr
File Name: nisl/honorio_samaras.py
Class Name:
Method Name: