Skip to content

hacersule/DNA-Mutation-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNA Mutation Detection Tool

A Python-based tool for detecting point mutations, insertions, and deletions in DNA sequences by comparing reference and mutated sequences from FASTA files.

Features

  • Reads DNA sequences from FASTA files
  • Detects different types of mutations:
    • Point mutations (single nucleotide changes)
    • Insertions
    • Deletions
  • Generates detailed mutation reports
  • Saves analysis results to a text file

Requirements

  • Python 3.x
  • FASTA format DNA sequence files

Installation

  1. Clone the repository:
git clone https://github.com/your-username/dna-mutation-detector.git
cd dna-mutation-detector
  1. Make sure your FASTA files are in the data directory:
    • reference_sequence.fasta: Contains the reference DNA sequence
    • mutated_sequences.fasta: Contains the mutated DNA sequence

Usage

Run the program:

python main.py

The program will:

  1. Read both DNA sequences from the FASTA files
  2. Compare the sequences and detect mutations
  3. Display the results on screen
  4. Save a detailed report to a text file

Output

The program generates a report file named dna_analysis_YYYYMMDD_HHMMSS.txt containing:

  • Original and mutated DNA sequences
  • List of detected mutations
  • Position of each mutation
  • Type of mutation
  • Detailed description of changes

Example

Input FASTA files:

>reference
ATCGATCGATCG
>mutated
ATCGATCGATCA

Output:

Found Mutations:
------------------------------------------------------------
Position: 12
Original: G
Mutated:  A
Type:     Point Mutation
Description: G -> A change
------------------------------------------------------------

Contributing

Feel free to submit issues and enhancement requests!

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages