Giter Site home page Giter Site logo

kfwins2022 / ant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mengqvist/ant

0.0 0.0 0.0 349 KB

Ambiguous Nucleotide Tool (ANT), software for generating and evaluating degenerate codons for natural and expanded genetic codes.

License: GNU General Public License v3.0

Python 100.00%

ant's Introduction

#ANT ###Ambiguous Nucleotide Tool (ANT) is a software for generating and evaluating degenerate codons for natural and expanded genetic codes.

=====

The code is free to use, modify and re-distribute under a GPL license. If you use this tool in your research we ask that you kindly cite the following paper:

"ANT: Software for Generating and Evaluating Degenerate Codons for Natural and Expanded Genetic Codes", ACS Synth. Biol., 2015, 4 (8), pp 935–938, DOI: 10.1021/acssynbio.5b00018

ANT comes with a GUI and a defined API. To use the API a working installation of Python is needed. To use the GUI a working installation of wxPython is additionally needed. To use the API simply import ANT.py into your python shell. To use the gui simply run ANT_GUI.py.

GUI: ANT GUI

API Commands:

Instantiation can be done using a list of amino acids:

>>> import ANT
>>> codon_object = ANT.DegenerateCodon(input=['S', 'T', 'A', 'G'], table=1)

Alternatively, instantiation can be done using a degerate codon:

>>> import ANT
>>> codon_object = ANT.DegenerateCodon(input='RSC', table=1)

To retreive the degenerate triplet:

>>>codon_object.getTriplet()
‘RSC’

To get all encoded amino acids (targets and off-targets):

>>> codon_object.getEncoded()
['S', 'T', 'A', 'G']

To get target amino acids:

>>> codon_object.getTarget()
['S', 'T', 'A', 'G']

To get off-target amino acids:

>>> codon_object.getOffTarget()
[]

To get which amino acids may still be chosen without further off-targets:

>>> codon_object.getPossible()
['C', 'R']

To get which genetic code was used:

>>> codon_object.getTable()
1

To get which codons are specified by the degenerate codon:

>>> codon_object.getCodons()
['ACC', 'GCC', 'AGC', 'GGC'] 

To get how many times each amino acid is encoded:

>>> codon_object.getCodonsPerAA()
{'*': 0, 'A': 1, 'C': 0, 'E': 0, 'D': 0, 'G': 1, 'F': 0, 'I': 0, 'H': 0, 'K': 0,
 'M': 0, 'L': 0, 'N': 0, 'Q': 0, 'P': 0, 'S': 1, 'R': 0, 'U': 0, 'T': 1, 'W': 0,
 'V': 0, 'Y': 0}

To get altenative codons with the same number of off-target amino acids:

>>> codon_object.getAlternatives()
[['RSC', 'A', 'S', 'T', 'G'], ['RST', 'A', 'S', 'T', 'G']]

To get a more extensive list of altenative codons (some with more off-target amino acids):

>>> codon_object.getExtendedAlternatives()
[['RSC', 'A', 'S', 'T', 'G'], ['RST', 'A', 'S', 'T', 'G'], ['DSC', 'A', 'S', 'T'
, 'G', 'C'], ['DST', 'A', 'S', 'T', 'G', 'C'], ['DSA', 'A', 'S', 'T', 'G', '*',
'R'], ['DSG', 'A', 'S', 'T', 'G', 'R', 'W']]

To get a full report:

>>> codon_object.getReport()
Degenerate codon: RSC
Genetic code: 1
Real codons: ['ACC', 'GCC', 'AGC', 'GGC']
Target amino acids: ['A', 'S', 'T', 'G']
Off-target amino acids: []
Amino acids that can be added w/o further off-targets: ['C', 'R']
Codons for each amino acid: {'*': 0, 'A': 1, 'C': 0, 'E': 0, 'D': 0, 'G': 1, 'F': 0, 'I': 0, 'H': 0, 'K': 0, 'M': 0, 'L': 0, 'N': 0, 'Q': 0, 'P': 0, 'S': 1, 'R': 0, 'U': 0, 'T': 1, 'W': 0, 'V': 0, 'Y': 0}
Library size (number of codons): 4
Clones to screen for 95% confidence: 11
Alternate codons with same number of off-target amino acids: [['RSC', 'A', 'S', 'T', 'G'], ['RST', 'A', 'S', 'T', 'G']]

ant's People

Contributors

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