Close Menu
  • Breaking News
  • Business
  • Career
  • Sports
  • Climate
  • Science
    • Tech
  • Culture
  • Health
  • Lifestyle
  • Facebook
  • Instagram
  • TikTok
Categories
  • Breaking News (5,030)
  • Business (312)
  • Career (4,267)
  • Climate (213)
  • Culture (4,235)
  • Education (4,450)
  • Finance (202)
  • Health (854)
  • Lifestyle (4,121)
  • Science (4,137)
  • Sports (312)
  • Tech (174)
  • Uncategorized (1)
Hand Picked

Driver-led Safety Culture Cuts Fleet Insurance

October 29, 2025

Tales from the Archives: School of Education Celebrates 75 Years of Master’s Students  – Newsroom

October 29, 2025

Blue Jays rebound to even World Series after marathon Game 3

October 29, 2025

Lifestyle changes that can lower breast cancer risk

October 29, 2025
Facebook X (Twitter) Instagram
  • About us
  • Contact us
  • Disclaimer
  • Privacy Policy
  • Terms and services
Facebook X (Twitter) Instagram
onlyfacts24
  • Breaking News

    Blue Jays rebound to even World Series after marathon Game 3

    October 29, 2025

    North Korea test-fires cruise missiles as Trump visits South Korea | Nuclear Weapons News

    October 29, 2025

    Australia’s inflation tops forecasts at 3.2%, highest in over a year

    October 29, 2025

    Tony Dungy argues NFL’s replay rules hurts credibility

    October 28, 2025

    New Israeli strikes on Gaza threaten fragile ceasefire | Humanitarian Crises

    October 28, 2025
  • Business

    Google Business Profile New Report Negative Review Extortion Scams

    October 23, 2025

    Land Topic is Everybody’s Business

    October 20, 2025

    Global Topic: Air India selects Panasonic Avionics’ Astrova for 34 widebody aircraft | Business Solutions | Products & Solutions | Topics

    October 19, 2025

    Business Engagement | IUCN

    October 14, 2025

    10 ways artificial intelligence is transforming operations management | IBM

    October 11, 2025
  • Career

    News and Community

    October 29, 2025

    The youngest Denison students get career lessons | Texas Headlines

    October 29, 2025

    Building impact across oceans | News

    October 29, 2025

    Flying fellow Catholics to Rome a career highlight

    October 28, 2025

    CBS NewsLincoln-Way East QB Jonas Willams wants to cap record-setting career with championship winBefore Williams throws passes for Lincoln Riley, he's locked in on winning a few more games at Lincoln-Way East..6 hours ago

    October 28, 2025
  • Sports

    Raiders DE Maxx Crosby Weighs In on Sports’ Hottest Topic

    October 28, 2025

    Bye Week Off-Topic Thread – Yahoo Sports

    October 25, 2025

    This Thunder Rookie Guard Benefits from the Nikola Topic Injury

    October 23, 2025

    South Bend Topic Sports-betting | WSBT 22: News, Weather and Sports for Michiana

    October 21, 2025

    John Tesh’s iconic ‘Roundball Rock’ theme returns for NBA on NBC

    October 21, 2025
  • Climate

    PA Environment & Energy Articles & NewsClips By Topic

    October 26, 2025

    important environmental topics 2024| Statista

    October 21, 2025

    World BankDevelopment TopicsProvide sustainable food systems, water, and economies for healthy people and a healthy planet. Agriculture · Agribusiness and Value Chains · Climate-Smart….2 days ago

    October 20, 2025

    PA Environment & Energy Articles & NewsClips By Topic

    October 17, 2025

    World Bank Group and the Intergovernmental Negotiating Committee on Plastic Pollution Process

    October 14, 2025
  • Science
    1. Tech
    2. View All

    It is a hot topic as Grok and DeepSeek overwhelmed big tech AI models such as ChatGPT and Gemini in ..

    October 24, 2025

    Countdown to the Tech.eu Summit London 2025: Key Topics, Speakers, and Opportunities

    October 23, 2025

    The High-Tech Agenda of the German government

    October 20, 2025

    Texas Tech Universities Ban Teaching About Transgender and Other Gender Topics

    October 19, 2025

    Gravitational wave events hint at ‘second-generation’ black holes

    October 29, 2025

    SpaceX plans rocket launch today. Will Falcon 9 be visible in Arizona?

    October 29, 2025

    Glowing meteor trail photobombs Comet Lemmon in incredible telescope image

    October 29, 2025

    There is such a thing as ‘settled science’ — anyone who says otherwise is trying to manipulate you | Kit Yates

    October 28, 2025
  • Culture

    Driver-led Safety Culture Cuts Fleet Insurance

    October 29, 2025

    When politics shape corporate culture: How national leadership influences company messaging

    October 29, 2025

    Mānoa: VNR: Symphony of the Hawaiʻi Seas unites science, culture, art

    October 29, 2025

    Native American culture to be celebrated in Lacombe | One Tammany

    October 29, 2025

    Panda Fest Brings Asian Culture and Cuisine to Dallas: A Must-Visit Festival in the US

    October 28, 2025
  • Health

    Breast Cancer Awareness Month 2025

    October 26, 2025

    Hampton: Community Encouraged To Attend November Los Alamos County Health Council Meeting

    October 24, 2025

    Health Insurance vs. Nuclear Weapons

    October 23, 2025

    Health Care Coverage For Seniors Topic Of West Hartford Forum

    October 20, 2025

    Mental health & finance topic for women @Bromley conference

    October 17, 2025
  • Lifestyle
Contact
onlyfacts24
Home»Science»Creating 3D Protein Structure Networks Using Python and the RING Server: Part 1 | by David Foutch | Oct, 2024
Science

Creating 3D Protein Structure Networks Using Python and the RING Server: Part 1 | by David Foutch | Oct, 2024

October 8, 2024No Comments
Facebook Twitter Pinterest LinkedIn Tumblr Email
1wt9fmmklvqtsduxngm0zsa.jpeg
Share
Facebook Twitter LinkedIn Pinterest Email

Generating insights into protein function

David Foutch

Towards Data Science

Image generated using OpenArt

Part of communicating the significance of your research is having figures that tell your story. Coding allows the investigator the opportunity to create applications that not only facilitate research, but generate figures that tell a unique story. The intention of this blog is to make code available that I have collected over the years which I have found to help me to tell better stories. I hope that others will not only be able to use the tools here to further their research, but to also tell really interesting stories in structural biology. The bottom line for me is that even if it isn’t as useful as I might hope, it is still a lot of fun to play around with!

Parsing PDB Files with Biopython

When creating protein structure network (PSN) visualizations, I typically begin by extracting key components from the Protein Data Bank (PDB) structure file using PDBParser from the Biopython package. For clarification, the PDB archive is a publicly accessible database that stores 3D structural data of biological molecules, such as proteins and nucleic acids, for use in scientific research and education. For the purpose of demonstration I am using the PDB structure 4PLD which is a human liver receptor homolog (LRH-1). It is worth noting that the workflow presented here is based on research conducted as part of a drug screening study on LRH-1. Note that you will need to update the line pdb_file = '7tt8.pdb'to match the path where your PDB file is stored.

If you’re using a Jupyter Notebook, running this snippet should produce the following output:

This creates a Pandas DataFrame that contains basic atomic information from the crystal structure. To create a 3D network representation of the 4PLD protein structure, we need extract key information from the PDB file. When constructing PSNs I prefer to combine the residue number and name for each node so that on visual inspection the researcher can ‘get a feel’ for how the primary sequence structure is mapped to the network topology. In PSNs each residue is represented as a node. As a rule, I limit the network to chain A and only include C-alpha atoms. Therefore, each residue is represented by that residue’s C-alpha atom and corresponding x,y,z coordinates. The C-alpha coordinates are extracted as node features to construct the 3D network. It’s an exciting and insightful process!

Creating PSNs Using the Residue Interaction Network Generator

The Residue Interaction Network Generator (RING) is an online server that transforms protein structures into network representations. As mentioned earlier, residues are treated as nodes and interactions between them as edges. Generally, an interaction is interpreted in terms of proximity, i.e., Euclidean distances. However, other types of interactions are included, such as hydrogen bonds, salt bridges (ionic bonds), π-π stacking and van der Waals. The RING helps visualize and quantify the topological, or structural, features that emerges from residue-residue interaction network. Quantifying these structural features allows researchers to ask questions about functional hot spots, potential allosteric sites, and signaling pathways which may advance our understanding of protein dynamics and contribute to computational drug repurposing.

There are other methods for generating PSNs — residue-residue interactions. However, the RING server has been peer-reviewed and provides detailed documentation on how edges are calculated and what defines a connection. Below is a screenshot of a typical configuration I use for generating PSNs. I generally select parameters that I think are maximize edge inclusion. The RING server allows you to either retrieve a structure file from the PDB archive or upload a local file, which is what I have done in this case.

RING web server interface

Once the server is finished with its computations, you’ll see an output similar to the screenshot below. Rather than going through the details of the results here, I encourage readers to explore the RING server and become familiar with its output by simply tinkering around. There are three three files that are generated for download: a .cif_ringNodes, a .cif_ringEdges, and a .json file, which contain everything needed to build either a 2D or 3D network. The entire 3D network, including x,y,z coordinates, is contained in the .json file. In a separate post, I will demonstrate how to read the .json file and plot the 3D network using Plotly. Again, the reason I extract coordinates from the PDB file, rather than the coordinates available in the .json file, is to ensure that the edges between residues map to the C-alpha atoms. It is a convention that structural biologists easily recognize and understand.

RING server results

Next, we will import the .cif_ringEdges file downloaded from the RING server into a Pandas DataFrame, and then merge the residue-residue interactions (edges) with the C-alpha atom coordinates from the PDB file.

This should produce a data frame with ‘source’ and ‘target’ node columns, followed by the corresponding x, y, z coordinates for both the ‘source’ and ‘target’ nodes, similar to the example shown below.

Lastly, with the Plotly and NetworkX libraries, we can create a script to generate an interactive 3D network visualization.

Observe that the code creates a Networkx graph object from the edgelist_7tt8_coords data frame. Please, note that the graph object isn’t necessary to create the 3D network visualization. This code snippet is included for a future post, where the graph object will be used to calculate various measures of centrality which will be mapped to the network’s visual features. The data frame is parsed using standard Python operations. Coordinates for each residue are extracted and with duplicate nodes being removed. Each residue is linked to a text marker in the 3D plot displaying a residue names and sequence position label. Hover labels are also assigned, but note that the label information is redundant. This information was left as a place holder. In a future post I will demonstrate how the hover label can be used to annotate the network with other information such as centrality score, evolutionary conservation score, or links to other databases. The Plotly figure is easily customizable with figure title, axis grids, and node and edge properties. The result is an interactive 3D network that allows users to explore the relationships between residues in any PSN. Images of the 7TT8 PSN are displayed below.

3D protein structure network using Plotly

There’s a lot more we can do with this figure. We can enhance it by adding widgets that dynamically resize nodes based on different centrality measures, or include biological and analytical annotations in the hover information. I’ll explore these enhancements in a future post. You can find the Jupyter Notebook for this exercise on GitHub. If you have any questions, feel free to contact me at LastCodeBender42@gmail.com.

Unless otherwise noted, all images are created by the author.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

Gravitational wave events hint at ‘second-generation’ black holes

October 29, 2025

SpaceX plans rocket launch today. Will Falcon 9 be visible in Arizona?

October 29, 2025

Glowing meteor trail photobombs Comet Lemmon in incredible telescope image

October 29, 2025

There is such a thing as ‘settled science’ — anyone who says otherwise is trying to manipulate you | Kit Yates

October 28, 2025
Add A Comment
Leave A Reply Cancel Reply

Latest Posts

Driver-led Safety Culture Cuts Fleet Insurance

October 29, 2025

Tales from the Archives: School of Education Celebrates 75 Years of Master’s Students  – Newsroom

October 29, 2025

Blue Jays rebound to even World Series after marathon Game 3

October 29, 2025

Lifestyle changes that can lower breast cancer risk

October 29, 2025
News
  • Breaking News (5,030)
  • Business (312)
  • Career (4,267)
  • Climate (213)
  • Culture (4,235)
  • Education (4,450)
  • Finance (202)
  • Health (854)
  • Lifestyle (4,121)
  • Science (4,137)
  • Sports (312)
  • Tech (174)
  • Uncategorized (1)

Subscribe to Updates

Get the latest news from onlyfacts24.

Follow Us
  • Facebook
  • Instagram
  • TikTok

Subscribe to Updates

Get the latest news from ONlyfacts24.

News
  • Breaking News (5,030)
  • Business (312)
  • Career (4,267)
  • Climate (213)
  • Culture (4,235)
  • Education (4,450)
  • Finance (202)
  • Health (854)
  • Lifestyle (4,121)
  • Science (4,137)
  • Sports (312)
  • Tech (174)
  • Uncategorized (1)
Facebook Instagram TikTok
  • About us
  • Contact us
  • Disclaimer
  • Privacy Policy
  • Terms and services
© 2025 Designed by onlyfacts24

Type above and press Enter to search. Press Esc to cancel.