GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FathimaNufla2000/DNA-Transition-Transversion-Analysis-Python: A Python-based bioinformatics project that analyzes DNA sequence mutations by calculating transitions, transversions, and transition/transversion ratio using two different implementation methods.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
TransitionTransversion.py
TransitionTransversion.py
 
 

Repository files navigation

# DNA Transition and Transversion Analysis Using Python

## Overview

This project performs DNA mutation analysis using Python by comparing two DNA sequences and identifying nucleotide substitutions.

The program calculates:

- Number of transitions
- Number of transversions
- Transition/Transversion ratio

Two different programming approaches are implemented to analyze DNA sequence mutations.

## Features

- Compare two DNA sequences
- Detect nucleotide substitutions
- Calculate transition mutations
- Calculate transversion mutations
- Calculate transition/transversion ratio
- Implement mutation analysis using two methods

## Technologies Used

- Python 3
- Bioinformatics Algorithms
- DNA Sequence Analysis
- Computational Biology

## Input DNA Sequences

### Sequence 1

GCAACGCACAACGAAAACCCTTAGGGACTGGATTATTTCGTGATCGTTGTAGTTATTGGAAGTACGGGCATCAACCCAGTT


### Sequence 2

TTATCTGACAAAGAAAGCCGTCAACGGCTGGATAATTTCGCGATCGTGCTGGTTACTGGCGGTACGAGTGTTCCTTTGGGT


## Bioinformatics Concepts

## 1. Transition Mutation

Transitions are substitutions between nucleotides of the same chemical group.

Purines:

A ↔ G


Pyrimidines:

C ↔ T


Examples:

A → G G → A C → T T → C


## 2. Transversion Mutation

Transversions are substitutions between different chemical groups.

Purine and pyrimidine changes:

A ↔ C A ↔ T G ↔ C G ↔ T


Examples:

A → C C → A A → T T → A G → C C → G G → T T → G


## Methods Implemented

## Method 1: Direct Condition Checking

The first approach checks every nucleotide position individually and identifies whether the mutation is a transition or transversion.

Example:

```python
if s1[i]=='A' and s2[i]=='G':
    transition += 1

Method 2: Optimized Comparison

The second approach stores each nucleotide pair into variables and compares possible mutation combinations.

Example:

first = s1[x]
second = s2[x]

This method improves code readability and reduces repetition.

Transition/Transversion Ratio

The ratio is calculated using:

Transition / Transversion

Formula:

Ratio = Number of Transitions / Number of Transversions

This ratio helps measure evolutionary changes between DNA sequences.

How to Run

  1. Clone the repository:
git clone https://github.com/FathimaNufla2000/DNA-Transition-Transversion-Analysis-Python.git
  1. Navigate to the project directory:
cd DNA-Transition-Transversion-Analysis-Python
  1. Run the Python file:
python transition_transversion.py

Output

The program displays:

  • Total number of transition mutations
  • Total number of transversion mutations
  • Transition/transversion ratio

Example output:

No of Transition : X

No of Transversion : Y

Ratio : Z

Learning Outcomes

Through this project, the following concepts are demonstrated:

  • DNA sequence comparison
  • Mutation classification
  • Evolutionary sequence analysis
  • Python conditional statements
  • Loop-based sequence processing
  • Basic bioinformatics programming

Applications

Transition and transversion analysis is useful in:

  • Molecular evolution studies
  • Genetic variation analysis
  • Phylogenetic research
  • Comparative genomics

Author

Fathima Nufla

GitHub: https://github.com/FathimaNufla2000

License

This project is developed for educational purposes and bioinformatics learning.

About

A Python-based bioinformatics project that analyzes DNA sequence mutations by calculating transitions, transversions, and transition/transversion ratio using two different implementation methods.

Topics

bioinformaticscomputational-biologydna-analysisdna-sequencesgenomicsmolecular-biologymutation-analysispythonpython-bioinformaticstransitiontransversions

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.