Coder Social home page Coder Social logo

serverless-demo's Introduction

serverless-demo

Serverless Build Status License

Demo project of AWS serverless application

Application

Demo application is written in Kotlin and uses Serverless framework for enabling AWS serverless deployment. Smith–Waterman algorithm algorithm is implemented as an example:

The Smith–Waterman algorithm performs local sequence alignment; that is, for determining similar regions between two strings of nucleic acid sequences or protein sequences. Instead of looking at the entire sequence, the Smith–Waterman algorithm compares segments of all possible lengths and optimizes the similarity measure.

Powered by: BioJava

Requirements

  • Java 8
  • Maven
  • Node.js

Pre-requisites

Serverless CLI

npm install -g serverless

AWS credentials

export AWS_ACCESS_KEY_ID=<your-key-here>
export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>

Build

mvn install

Deploy

sls deploy --region <your-AWS-region>

Example

Let's take as an example aligment of Hemoglobin subunit alpha and Hemoglobin subunit beta.

serverless-demo alignment: https://7zjp8jut08.execute-api.eu-north-1.amazonaws.com/dev/alignment?uniProteinId1=P69905&uniProteinId2=P68871

Execution time: 848.49 ms

Result:

CLUSTAL W MSA from BioJava

P69905    LSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHF-DLS-----HGSAQV  56
          |.| .|. | | ||||  .  | | ||| |. . .| |. .|  | |||      |. .|
P68871    LTPEEKSAVTALWGKV--NVDEVGGEALGRLLVVYPWTQRFFESFGDLSTPDAVMGNPKV  61

P69905    KGHGKKVADALTNAVAHVDDMPNALSALSDLHAHKLRVDPVNFKLLSHCLLVTLAAHLPA 116
          | |||||  | .. .||.|..    . ||.||  || ||| ||.|| . |.  || |   
P68871    KAHGKKVLGAFSDGLAHLDNLKGTFATLSELHCDKLHVDPENFRLLGNVLVCVLAHHFGK 121

P69905    EFTPAVHASLDKFLASVSTVLTSKY 141
          |||| |.|.  | .| |.  |  ||
P68871    EFTPPVQAAYQKVVAGVANALAHKY 146

Available extra options:

Parameter Type Available values Default value
gapOpenPenalty Int 10
gapExtensionPenalty Int 1
format String ALN, CLUSTALW, FASTA, GCG, MSF, PDBWEB CLUSTALW

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.