Coder Social home page Coder Social logo

raymondkiu / cfml-maskrc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kwongj/cfml-maskrc

0.0 2.0 0.0 16 KB

Masks recombinant regions in an alignment based on ClonalFrameML output

License: GNU General Public License v2.0

Python 100.00%

cfml-maskrc's Introduction

cfml-maskrc

Masks recombinant regions in an alignment based on ClonalFrameML output
Option to draw SVG of recombinant regions

Author

Jason Kwong (@kwongjc)
GitHub: kwongj

Dependencies

Usage

$ cfml-maskrc.py -h

usage: 
  cfml-maskrc.py --aln FASTA --out OUTFILE <CFML_PREFIX>

Script to mask recombination from ClonalFrameML output and draw SVG of recombinant regions

positional arguments:
  CFML_PREFIX          prefix used for CFML output files (required)

optional arguments:
  -h, --help           show this help message and exit
  --aln FASTA          multiFASTA alignment used as input for CFML (required)
  --out OUTFILE        output file for masked alignment (default="maskrc.aln")
  --symbol ?           symbol to use for masking (default="?")
  --regions FILE       output recombinant regions to file
  --svg FILE           draw SVG output of recombinant regions and save as specified file
  --svgsize WIDExHIGH  specify width and height of SVG in pixels (default="800x600")
  --svgorder FILE      specify file containing list of taxa (1 per line) in desired order
  --svgcolour COLOUR   specify colour of recombination regions in HEX format (default=black)
  --consensus          add consensus row of recombination hotspots
  --version            show program's version number and exit

Requires:

  • Output from ClonalFrameML (specify prefix used to name output files)
  • MultiFASTA alignment used as input for ClonalFrameML

Options:

  • Specify output file using --out OUTFILE
  • Specify symbol to use in the alignment for masking --symbol ?
  • Save tab-separated file of recombinant region coordinates --regions FILE
  • Draw SVG of recombinant regions --svg FILE
  • Specify size of SVG in pixels eg. 800x600 --svgsize WIDTHxHEIGHT
  • Specify desired order of taxa in SVG --svgorder FILE
  • Specify colour to show extant recombination --svgcolour COLOUR
  • Add consensus row of recombination hotspots to SVG --consensus

Bugs

Please submit via the GitHub issues page: https://github.com/kwongj/cfml-maskrc/issues

Software Licence

GPLv2: https://github.com/kwongj/cfml-maskrc/blob/master/LICENSE

Other links

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.