Giter Site home page Giter Site logo

algo_pa2's Introduction

algorithm PA2

23-2 Algorithm Project_2

Goal

Algorithm to implement multiple sequence alignment with k DNA sequences using Dynamic Programming.

TODO

  • four-letter alphabet {Adenine (A), Thymine (T), Guanine (G), Cytosine (C)}
  • measure the similarity of genetic sequences by the frequency of the exactly matched alphabets
  • align the k sequences, but we are permitted to insert gaps in either any sequence
  • C programming language to print out the sequence alignment result into the output file named ‘hw2 output.txt after finding the best sequence alignment from k DNA sequences in the input file named ‘hw2 input.txt’

Input file consists of

  • fisrt part : the number (k) of DNA sequences to be aligned
  • second part : the k DNA sequences to be aligned (each sequence appears on a separate line of text)
  • Each part is separated from the next part by a character $
  • 2 ≤ k ≤ 5, and 1 ≤ n ≤ 120 where n is the maximum length of each DNA sequence

Output file consist of

  • the sequence alignment results with marks representing matched alphabets
  • In the last line, mark “*” on the columns containing identical alphabets across all sequences

Example of input / output file

[Input file: hw2_input.txt] 
3
$
ATTGCCATT
ATGGCCATT 
ATCCAAT

[Output file: hw2_output.txt] 
ATTGCCA-TT
ATGGCCA-TT
AT--CCAAT-
**  *** * 

Judgement

  • the number of identical alphabets across all sequences returned by your submitted program
  • the actual running time
  • well-written document to explain your source code and the performance analysis of your algorithm

referece

algo_pa2's People

Contributors

racheliee avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.