Fraction of Native Contacts¶
An error occurred while executing the following cell: ------------------ # pull a random protein from the PDB # (The unitcell info happens to be wrong) traj = md.load_pdb('http://www.rcsb.org/pdb/files/2MI7.pdb') # just for example, use the first frame as the 'native' conformation q = best_hummer_q(traj, traj[0]) ------------------ [0;31m---------------------------------------------------------------------------[0m [0;31mConnectionRefusedError[0m Traceback (most recent call last) [0;32m/usr/lib/python3.8/urllib/request.py[0m in [0;36mdo_open[0;34m(self, http_class, req, **http_conn_args)[0m [1;32m 1349[0m [0;32mtry[0m[0;34m:[0m[0;34m[0m[0;34m[0m[0m [0;32m-> 1350[0;31m h.request(req.get_method(), req.selector, req.data, headers, [0m[1;32m 1351[0m encode_chunked=req.has_header('Transfer-encoding')) [0;32m/usr/lib/python3.8/http/client.py[0m in [0;36mrequest[0;34m(self, method, url, body, headers, encode_chunked)[0m [1;32m 1254[0m [0;34m"""Send a complete request to the server."""[0m[0;34m[0m[0;34m[0m[0m [0;32m-> 1255[0;31m [0mself[0m[0;34m.[0m[0m_send_request[0m[0;34m([0m[0mmethod[0m[0;34m,[0m [0murl[0m[0;34m,[0m [0mbody[0m[0;34m,[0m [0mheaders[0m[0;34m,[0m [0mencode_chunked[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 1256[0m [0;34m[0m[0m [0;32m/usr/lib/python3.8/http/client.py[0m in [0;36m_send_request[0;34m(self, method, url, body, headers, encode_chunked)[0m [1;32m 1300[0m [0mbody[0m [0;34m=[0m [0m_encode[0m[0;34m([0m[0mbody[0m[0;34m,[0m [0;34m'body'[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0;32m-> 1301[0;31m [0mself[0m[0;34m.[0m[0mendheaders[0m[0;34m([0m[0mbody[0m[0;34m,[0m [0mencode_chunked[0m[0;34m=[0m[0mencode_chunked[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 1302[0m [0;34m[0m[0m [0;32m/usr/lib/python3.8/http/client.py[0m in [0;36mendheaders[0;34m(self, message_body, encode_chunked)[0m [1;32m 1249[0m [0;32mraise[0m [0mCannotSendHeader[0m[0;34m([0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0;32m-> 1250[0;31m [0mself[0m[0;34m.[0m[0m_send_output[0m[0;34m([0m[0mmessage_body[0m[0;34m,[0m [0mencode_chunked[0m[0;34m=[0m[0mencode_chunked[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 1251[0m [0;34m[0m[0m [0;32m/usr/lib/python3.8/http/client.py[0m in [0;36m_send_output[0;34m(self, message_body, encode_chunked)[0m [1;32m 1009[0m [0;32mdel[0m [0mself[0m[0;34m.[0m[0m_buffer[0m[0;34m[[0m[0;34m:[0m[0;34m][0m[0;34m[0m[0;34m[0m[0m [0;32m-> 1010[0;31m [0mself[0m[0;34m.[0m[0msend[0m[0;34m([0m[0mmsg[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 1011[0m [0;34m[0m[0m [0;32m/usr/lib/python3.8/http/client.py[0m in [0;36msend[0;34m(self, data)[0m [1;32m 949[0m [0;32mif[0m [0mself[0m[0;34m.[0m[0mauto_open[0m[0;34m:[0m[0;34m[0m[0;34m[0m[0m [0;32m--> 950[0;31m [0mself[0m[0;34m.[0m[0mconnect[0m[0;34m([0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 951[0m [0;32melse[0m[0;34m:[0m[0;34m[0m[0;34m[0m[0m [0;32m/usr/lib/python3.8/http/client.py[0m in [0;36mconnect[0;34m(self)[0m [1;32m 920[0m [0;34m"""Connect to the host and port specified in __init__."""[0m[0;34m[0m[0;34m[0m[0m [0;32m--> 921[0;31m self.sock = self._create_connection( [0m[1;32m 922[0m (self.host,self.port), self.timeout, self.source_address) [0;32m/usr/lib/python3.8/socket.py[0m in [0;36mcreate_connection[0;34m(address, timeout, source_address)[0m [1;32m 807[0m [0;32mtry[0m[0;34m:[0m[0;34m[0m[0;34m[0m[0m [0;32m--> 808[0;31m [0;32mraise[0m [0merr[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 809[0m [0;32mfinally[0m[0;34m:[0m[0;34m[0m[0;34m[0m[0m [0;32m/usr/lib/python3.8/socket.py[0m in [0;36mcreate_connection[0;34m(address, timeout, source_address)[0m [1;32m 795[0m [0msock[0m[0;34m.[0m[0mbind[0m[0;34m([0m[0msource_address[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0;32m--> 796[0;31m [0msock[0m[0;34m.[0m[0mconnect[0m[0;34m([0m[0msa[0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m [0m[1;32m 797[0m [0;31m# Break explicitly a reference cycle[0m[0;34m[0m[0;34m[0m[0;34m[0m[0m [0;31mConnectionRefusedError[0m: [Errno 111] Connection refused During handling of the above exception, another exception occurred: [0;31mURLError[0m Traceback (most recent call last) [0;32m(native-contact.ipynb; native-contact_eval.ipynb; native-contact.py)