Skip to content

ambersus/ANALYZING-DNA-PATHWAYS-AND-THEIR-IMPACT-ON-CANCER-DEVELOPMENT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ANALYZING-DNA-PATHWAYS-AND-THEIR-IMPACT-ON-CANCER-DEVELOPMENT

This project demonstrates how to interact with a Neo4j graph database to analyze gene interactions and visualize the relationships between genes. The code performs the following tasks:

Connects to a Neo4j Database: Establishes a connection to a Neo4j graph database containing gene interaction data.

Fetches Gene Interaction Data: Queries the database to retrieve genes and their interactions.

Builds a NetworkX Graph: Converts the fetched data into a NetworkX graph representation.

Visualizes the Gene Interaction Network: Uses Matplotlib to visualize the gene interaction graph.

Performs BFS and DFS Traversals: Implements both Breadth-First Search (BFS) and Depth-First Search (DFS) to explore gene interaction networks.

Analyzes Mutations: Analyzes pathways affected by mutations in specific genes using BFS traversal.

How to Run the Code


Set up Neo4j Database:
Install and configure Neo4j. Import gene interaction data into your Neo4j database. Ensure that the nodes are labeled as Gene and the relationships are of type INTERACTS_WITH.

Update Connection Parameters:
In the script, update the uri, user, and password in the Neo4jConnection class to match your Neo4j instance. Run the Script

Execute the Python script to:
Query the Neo4j database for gene interactions. Build and visualize the interaction graph. Perform BFS and DFS traversals starting from a specified gene. Analyze pathways affected by mutations in specified genes.

Interpret the Output:
The script will display the gene interaction graph and print the visited genes during BFS and DFS traversals. It will also analyze and print the affected pathways for the mutated genes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages