A Python-based tool for detecting point mutations, insertions, and deletions in DNA sequences by comparing reference and mutated sequences from FASTA files.
- 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
- Python 3.x
- FASTA format DNA sequence files
- Clone the repository:
git clone https://github.com/your-username/dna-mutation-detector.git
cd dna-mutation-detector- Make sure your FASTA files are in the
datadirectory:reference_sequence.fasta: Contains the reference DNA sequencemutated_sequences.fasta: Contains the mutated DNA sequence
Run the program:
python main.pyThe program will:
- Read both DNA sequences from the FASTA files
- Compare the sequences and detect mutations
- Display the results on screen
- Save a detailed report to a text file
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
Input FASTA files:
>reference
ATCGATCGATCG
>mutated
ATCGATCGATCA
Output:
Found Mutations:
------------------------------------------------------------
Position: 12
Original: G
Mutated: A
Type: Point Mutation
Description: G -> A change
------------------------------------------------------------
Feel free to submit issues and enhancement requests!
This project is licensed under the MIT License - see the LICENSE file for details.