GithubHelp home page GithubHelp logo

rohith-2 / chaos-game-representation_bioseq Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 91.69 MB

Representation of Bio Sequences via Chaos Game and using the same to find similarities

Python 82.01% MATLAB 17.99%
bioinformatics chaos chaos-game-representation sequence-to-sequence chaos-game bio-sequences gui similarity-measurement streamlit

chaos-game-representation_bioseq's Introduction

Chaos-Game-Representation_BioSeq

Representation of Bio Sequences via Chaos Game and using the same to find similarities.

Medium : https://rrohith2001.medium.com/chaos-game-representation-of-genetic-sequences-e0e6bdcfaf6c


Data

Each excel file is a collection of all sequences in the respective family.


GUI

https://share.streamlit.io/rohith-2/chaos-game-representation_bioseq/stream.py

Screenshot 2021-05-18 at 7 41 30 PM


Gene-Similarity

CGR Matrix is a 2D matrix => (x,y) which consists of normalised value ranging from 0 to 1, which depicts the intensity of a color at any given (x,y)
The first two rows are considered for similarity measurement:

cgr_vec = Empty Vector()
for i <- cgr matrix of SEQ_1 # i iterates row wise
  a = max(i)
  new_row = i/a # Element-Wise Division
  cgr_vector = cgr_vector + new_row
  
cgr_vec_2 = Empty Vector()
for i <- cgr matrix of SEQ_2 # i iterates row wise
  a = max(i)
  new_row = i/a # Element-Wise Division
  cgr_vector_2 = cgr_vector_2 + new_row

Correlation(cgr_vec,cgr_vec_2)

cgr_vec and cgr_vec_2 will be vectors which can be utilised for measuring similarity via Spearmans correlation.


Running the GUI

The GUI is universally accesible via the above mentioned link to run in locally :

git clone https://github.com/Rohith-2/Chaos-Game-Representation_BioSeq.git
pip install -r requirements.txt  
cd Chaos-Game-Representation_BioSeq/GUI/
streamlit run gui_v2.py 

chaos-game-representation_bioseq's People

Contributors

rohith-2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.