Git Product home page Git Product logo

tharindu-dasantha / find_gene_basic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

This is a java Application in order to learn the language of java. In this project I create a java project that looks for a dna codon in a dna sequence. This is a basic level dna project that means it only look for single stop coden which is the codons that only stop in "TAA" but it find all the codons in a sequences.

Java 100.00%

find_gene_basic's Introduction

Finding a Gene - A Simplified Algorithm

Description

In this code we will determine if a DNA strand has a gene in it by using a simplified algorithm.
And this project have two modes

Part 1

You can find this part inside the PartOne file In this file

The class has one parameter which is a string called dna, representing the string of DNA.
The method does the following.

Find the index position of the start codeon ATG. if there is no start codon return empty string.
Find the index of the first stop codon TAA and if the dna in the middle is a multiple of 3 then retun the dna codon in the middle.
else return empty string.

Part 2

You can find this part inside the PartTwo file In this file
In this project there is two methods to solve some problems using strings and third method to test these two methods.

  1. method twoOccurrences that has two parameters named stringa and stringb. The method returns true if stringa appears at least twice in the stringb, otherwise false.
  2. The method main is a void method that calls the twoOccurrences method and check the results are correct or not. Also check the lastPath with couple of inputs.
  3. The method lastPath has two parameters named stringa and stringb. The method finds the first occurrence of stringa in stringb and returns the part of stirngb follows the stringa. If stringa is not found in the stringb, return the stringb.

find_gene_basic's People

Contributors

tharindu-dasantha 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.