GithubHelp home page GithubHelp logo

anastasiyaprymolenna / motif-mark Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5 KB

motif-mark is a program that searches introns and exons in a genetic sequence for motifs of interest in order to output an image that highlights the present motifs on a simple model of the gene.

Python 100.00%

motif-mark's Introduction

motif-mark

Description

motif-mark is a program that searches introns and exons in a genetic sequence for motifs of interest in order to output an image that highlights the present motifs on a simple model of the gene.

Required

  • python 3+
  • pycairo
  • re
  • matplotlib

How to use this tool:

User needs to supply two input files:

  1. A FASTA formatted file of gene sequences with exons denoted in uppercase letters and introns in lowercase
  2. A text file of motifs with 1 motif per line and no spaces

Example files of fasta and motifs can be found on github (listed as <example.file>).

Input on the command line requires the user to specify "-f" flag for the name of fasta file to be used and the "-m" flag for the name of the motif file to be used.

Example of how to run this script from terminal:

./motif_mark.py -f example.fasta -m example.motif

The script will generate a single-line fasta file as the program assumes the input was a multi-line fasta. This output can be disregarded if the input is already a single-line fasta.

The output of the script will be an SVG image outputted to the directory from which the script was run and be titled "motif_mark.svg".

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.