Git Product home page Git Product logo

sequencealignments's Introduction

Sequence Alignments

Introduction

In this project the following are implemented

  1. Global alignment
  2. Local alignment
  3. End space free (dove-tail) alignment

according to Needleman-Wunsch and Smith-Waterman methods.

Inputs

This program will get the following as input:

  1. an integer that denotes which alignment method will be used. Use 1, 2, and 3 for global, local, and dove-tail alignment respectively.
  2. name of the file that contains query sequences in Fasta format.
  3. name of the file that contains database sequences in Fasta format.
  4. name of the file that contains the alphabet.
  5. name of the file that contains the scoring matrix for the given alphabet.
  6. a positive integer k that indicates the number of nearest neighbors.
  7. a negative integer m that indicates the gap penalty.

Sample input files: Sample query, database, alphabet, and scoring matrix files are on the e-learning website.

Output

This program will output the top k alignments over all query/database sequence pairs along with their score. Each alignment in the output contains the score, ids of the sequences, and the starting positions of the alignment. It will look like the following:
Score = 47
id1 36 AQT..KNGQGWVPSNYITPV
id2 39 ARLNDKEGYVPRNLLGLYP.
Here id1 and id2 are ids, 36 and 39 are starting positions.

Execution

javac hw1.java
java hw1 1 queryfile datafile alphabet scorematrix 10 -3
to run global alignment and return top 10 results with a gap penalty of -3.

sequencealignments's People

Contributors

meghanamadineni avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tasneemmoustafa

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.