# codon-bias
This package provides codon usage bias (CUB) analysis tools for genomic sequences, focusing on protein coding regions, translation efficiency and synonymous mutations. These include implementations of popular models from the past four decades of codon usage study, such as:
- [Nucleotide and codon k-mer statistics (GC, GC3, CpG, etc.)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#module-codonbias.stats)
- [Frequency of Optimal Codons (FOP)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.FrequencyOfOptimalCodons)
- [Relative Synonymous Codon Usage (RSCU)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.RelativeSynonymousCodonUsage)
- [Codon Adaptation Index (CAI)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.CodonAdaptationIndex), including extensions:
- Codon pair (and k-mers) adaptation
- [Effective Number of Codons (ENC)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.EffectiveNumberOfCodons), including extensions:
- Background correction
- Improved estimation
- Effective number of codon pairs (and k-mers) (ENcp)
- [tRNA Adaptation Index (tAI)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.TrnaAdaptationIndex)
- Download tRNA gene copy numbers from [GtRNAdb](http://gtrnadb.ucsc.edu/)
- Train tAI model parameters (s-values) using expression levels
- [Codon Pair Bias (CPB/CPS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.CodonPairBias)
- [Relative Codon Bias Score (RCBS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.RelativeCodonBiasScore)
- [Normalized Translational Efficiency (nTE)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.NormalizedTranslationalEfficiency)
- [Directional Codon Bias Score (DCBS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.RelativeCodonBiasScore)
- [Codon Usage Frequency Similarity (CUFS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.pairwise.CodonUsageFrequency)
This package also includes tools for sequence optimization based on these codon usage models, and generators of random sequence permutations that can be used to compute empirical p-values and z-scores.
## installation
```
pip install codon-bias
```
## documentation
Read on [Read the Docs](https://codon-bias.readthedocs.org).
## cite
Diament, A. (2022). codon-bias (python package). https://doi.org/10.5281/zenodo.8039451
## contributing
Contributions of additional models to the package are welcome! Please familiarize yourself with the existing classes, and try to conform to their style.
Raw data
{
"_id": null,
"home_page": "https://github.com/alondmnt/codon-bias",
"name": "codon-bias",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": null,
"keywords": null,
"author": "Alon Diament",
"author_email": "dev@alondmnt.com",
"download_url": "https://files.pythonhosted.org/packages/02/8f/ed4f408503f5be22f9f8608d73594476f6c6512c1b150ed81249f1610430/codon-bias-0.3.3.tar.gz",
"platform": null,
"description": "# codon-bias\n\nThis package provides codon usage bias (CUB) analysis tools for genomic sequences, focusing on protein coding regions, translation efficiency and synonymous mutations. These include implementations of popular models from the past four decades of codon usage study, such as:\n\n- [Nucleotide and codon k-mer statistics (GC, GC3, CpG, etc.)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#module-codonbias.stats)\n- [Frequency of Optimal Codons (FOP)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.FrequencyOfOptimalCodons)\n- [Relative Synonymous Codon Usage (RSCU)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.RelativeSynonymousCodonUsage)\n- [Codon Adaptation Index (CAI)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.CodonAdaptationIndex), including extensions:\n - Codon pair (and k-mers) adaptation\n- [Effective Number of Codons (ENC)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.EffectiveNumberOfCodons), including extensions:\n - Background correction\n - Improved estimation\n - Effective number of codon pairs (and k-mers) (ENcp)\n- [tRNA Adaptation Index (tAI)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.TrnaAdaptationIndex)\n - Download tRNA gene copy numbers from [GtRNAdb](http://gtrnadb.ucsc.edu/)\n - Train tAI model parameters (s-values) using expression levels\n- [Codon Pair Bias (CPB/CPS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.CodonPairBias)\n- [Relative Codon Bias Score (RCBS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.RelativeCodonBiasScore)\n- [Normalized Translational Efficiency (nTE)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.NormalizedTranslationalEfficiency)\n- [Directional Codon Bias Score (DCBS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.scores.RelativeCodonBiasScore)\n- [Codon Usage Frequency Similarity (CUFS)](https://codon-bias.readthedocs.io/en/latest/codonbias.html#codonbias.pairwise.CodonUsageFrequency)\n\nThis package also includes tools for sequence optimization based on these codon usage models, and generators of random sequence permutations that can be used to compute empirical p-values and z-scores.\n\n## installation\n\n```\npip install codon-bias\n```\n\n## documentation\n\nRead on [Read the Docs](https://codon-bias.readthedocs.org).\n\n## cite\n\nDiament, A. (2022). codon-bias (python package). https://doi.org/10.5281/zenodo.8039451\n\n## contributing\n\nContributions of additional models to the package are welcome! Please familiarize yourself with the existing classes, and try to conform to their style.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "codon usage bias analysis tools",
"version": "0.3.3",
"project_urls": {
"Documentation": "https://codon-bias.readthedocs.io/en/latest/",
"Homepage": "https://github.com/alondmnt/codon-bias"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "545dabeb6cc53b8ef788668fe4020ea93e27bab526bdcba6e9194a64775597ea",
"md5": "71aa79e8429a3d45ee79885807ead995",
"sha256": "d64c93728dace1b1920bb45b405c06a09dd44eb09c233f3ec9c139a4cde90e59"
},
"downloads": -1,
"filename": "codon_bias-0.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "71aa79e8429a3d45ee79885807ead995",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 27841,
"upload_time": "2025-02-11T02:02:16",
"upload_time_iso_8601": "2025-02-11T02:02:16.391648Z",
"url": "https://files.pythonhosted.org/packages/54/5d/abeb6cc53b8ef788668fe4020ea93e27bab526bdcba6e9194a64775597ea/codon_bias-0.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "028fed4f408503f5be22f9f8608d73594476f6c6512c1b150ed81249f1610430",
"md5": "677b15542b0a40e5cf008a949760b969",
"sha256": "5ee4632b2fe3b643a2cca6e8ed98e6faf6efe528f7e2a6a0d92b4c6e466c7217"
},
"downloads": -1,
"filename": "codon-bias-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "677b15542b0a40e5cf008a949760b969",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 103836,
"upload_time": "2025-02-11T02:02:20",
"upload_time_iso_8601": "2025-02-11T02:02:20.088225Z",
"url": "https://files.pythonhosted.org/packages/02/8f/ed4f408503f5be22f9f8608d73594476f6c6512c1b150ed81249f1610430/codon-bias-0.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-11 02:02:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "alondmnt",
"github_project": "codon-bias",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "nbsphinx",
"specs": []
},
{
"name": "sphinx-rtd-theme",
"specs": []
}
],
"lcname": "codon-bias"
}