Coder Social home page Coder Social logo

donut-diagram's Introduction

Donut Diagram

File: donut.py
Author: Vincent Beaulieu
Date: 14 September 2022

Suggestion from Dr. Nawwaf Kharma - Concordia University

Info:

Display in a circular diagram the folding probabilities of an RNA sequence using a coolwarm colormap. The generated output can then be used to detect genotypic patterns from a population displaying similar phenotypes by overlaying their diagrams.

Requirements:

  • The probability matrix ".prob" generated by VARNA RNA.
  • The whole rna sequence used for the folding (eg.: a fasta/txt/csv/etc. file containing the sequence).
  • The networkx library available at https://networkx.org.
  • The csv, matplotlib, and numpy libraries.

Comments:

This code is mostly generalized and may require minimal modification to adapt it to your particular file input.
These modifications are:

  • The filepath.
  • The line number at which the whole RNA sequence is situated in the input file.
  • The styles parameters:
    • Relative edge thickness enabled/disabled (parameter: edge_thickness_control)
    • Edge thickness multiplier (parameter: weight)
    • Plot style white/grey/black

Output Example:

Black/White/Grey background with Relative Edges Thickness

Grey background with Constant Edges Thickness

This software is licensed under the MIT license. See the "LICENSE" file for more details.

donut-diagram's People

Contributors

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