Skip to content

ganbnuray/Genealogy-Tree-Reconstruction-Using-DNA-sequences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Gene Genealogy Tree Construction Using Longest Common Subsequence (LCS)

This project implements the Longest Common Subsequence (LCS) algorithm and applies it to construct gene genealogy trees using both local and global approaches.

🧬 Project Overview

Genetic sequences are analyzed to infer evolutionary relationships. The project uses the LCS method to compute similarity matrices and builds hierarchical relationships (trees) based on the resulting scores.

πŸ“ Contents

  • LCS Implementation: Calculates the length matrix for gene sequences.
  • Local Approach: Constructs genealogy trees using pairwise similarity and a bottom-up strategy.
  • Global Approach: Constructs trees using a global similarity matrix and dynamic programming techniques.
  • Visualization: Displays hierarchical trees and similarity matrices for interpretation.
  • Probability Calculation: Calculates the probabilities of insertion, deletion, and mutation in gene sequences using the edit distance algorithm.

πŸ“Œ Features

  • Efficient LCS matrix computation.
  • Dynamic programming-based similarity inference.
  • Modular code with a focus on clarity and tree construction logic.
  • Includes annotated explanations in markdown cells.

πŸ› οΈ Technologies

  • Python 3
  • Jupyter Notebook
  • matplotlib (for visualization)
  • Standard libraries like itertools and numpy

πŸš€ Getting Started

  1. Clone the repository:
    git clone https://github.com/ganbnuray/Genealogy-Tree-Reconstruction-Using-DNA-sequences.git
  2. Install required packages (if not already available):
    pip install matplotlib numpy
  3. Open the notebook:
    jupyter notebook genetreereconstruction.ipynb

About

a Python-based application for constructing gene genealogy trees using the Longest Common Subsequence (LCS) algorithm. It includes both local and global strategies for tree construction, supported by dynamic programming and matrix analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors