Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

DNA Sequence Analyzer 🧬

A Python-based bioinformatics project that analyzes DNA sequences through a menu-driven interface. The program can read a DNA sequence from a text file or accept user input and perform several common DNA sequence analyses.

Features

  • Menu-driven interface
  • Analyze DNA from:
    • DNA_Sequence.txt
    • User input
  • DNA sequence validation
  • Nucleotide counting (A, T, G, C)
  • GC content calculation
  • AT content calculation
  • DNA → RNA transcription
  • Complementary DNA generation
  • Reverse complementary DNA generation
  • Analyze all properties at once

Technologies Used

  • Python 3

Project Structure

dna-sequence-analyzer/
│
├── main.py
├── DNA_Sequence.txt
├── README.md
└── .gitignore

How to Run

Clone the repository:

git clone https://github.com/ruhiprasad25-art/dna-sequence-analyzer.git

Move into the project directory:

cd dna-sequence-analyzer

Run the program:

python main.py

Follow the on-screen menu to analyze either the sample DNA sequence or your own DNA sequence.

Sample Output

Number of A: 3
Number of T: 3
Number of G: 4
Number of C: 2

GC Content: 50.00%
AT Content: 50.00%

RNA Sequence:
AUGCGAUUCGGA

Complementary DNA:
TACGCTAAGCCT

Reverse Complementary DNA:
TCCGAATCGCAT

Concepts Practiced

  • Python functions
  • File handling
  • User input
  • Loops and conditionals
  • String manipulation
  • Modular programming
  • Basic bioinformatics concepts

Future Improvements

  • DNA to protein translation
  • FASTA file support
  • Export results to a text file
  • Graphical user interface (GUI)

Author

Ruhi Prasad

About

A beginner-friendly Python project for basic DNA sequence analysis.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages