View on GitHub

DNA Sequencing

Scaffolding for student projects that involve evaluating string comparison algorithms in the context of DNA matching

DNA String Comparison Project

Scaffolding for student projects that involve evaluating string comparison algorithms in the context of DNA matching.

How shall we compare algorithms?

There are really two different comparisons we want to think about:

Test Data Provided

Implementations

These are the implementation and test classes provided:

- AlgorithmComparisonManager.java
- DNASearchComparison.java
- DNASearchDemo.java
- DNASequence.java
- ExamplePositionMatchAlgorithm.java
- MatchResult.java
- SequenceMatcher.java
- SequenceMatcherTest.java
- SequenceScoringAlgorithm.java

ExamplePositionMatchAlgorithm is a simple implementation of a SequenceScoringAlgorithm as an example.

(Note: In this project we capitalize the acronym DNA fully in identifiers.)

To add another algorithm:

Create a class implementing SequenceScoringAlgorithm.


Usage

To compile:

javac -cp junit17.jar:. *.java

To run:

java DNASearchComparison DNA_query.txt DNA_sequence_database.txt

To run unit tests:

java -jar junit17.jar --class-path . --select-class SequenceMatcherTest

To produce API documentation:

javadoc -cp junit17.jar:. -d docs *.java

DNA Sequencing, Copyright (C) 2026 Dr. Jody Paul

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

This README.md document © Dr. Jody Paul is licensed under CC-BY-SA 4.0