Skip to content

Commit 4e41e93

Browse files
committed
Reorganise code
1 parent be17cd8 commit 4e41e93

25 files changed

Lines changed: 68 additions & 117 deletions

MANIFEST.in

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Python Codon Tables
22
===================
33

4-
.. image:: https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables/actions/workflows/build.yml/badge.svg
5-
:target: https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables/actions/workflows/build.yml
4+
.. image:: https://github.com/Edinburgh-Genome-Foundry/python_codon_tables/actions/workflows/build.yml/badge.svg
5+
:target: https://github.com/Edinburgh-Genome-Foundry/python_codon_tables/actions/workflows/build.yml
66
:alt: GitHub CI build status
77

8-
Provides codon usage tables as dictionaries, for Python 3+.
8+
Provides codon usage tables as dictionaries, for Python.
99

10-
Tables for the following organisms are provided with the library (any other
11-
table can be downloaded using a TaxID):
10+
Tables for the following organisms are provided with the package
11+
(other tables can be downloaded using a TaxID):
1212

1313
- *B. subtilis*
1414
- *C. elegans*
@@ -20,15 +20,16 @@ table can be downloaded using a TaxID):
2020
- *M. musculus domesticus*
2121
- *S. cerevisiae*
2222

23-
All the tables are from `kazusa.or.jp <http://www.kazusa.or.jp/codon/readme_codon.html>`_
24-
and here is the original paper to cite:
23+
All tables are from `kazusa.or.jp <http://www.kazusa.or.jp/codon/readme_codon.html>`_
24+
(codon usages were computed using NCBI sequence data). The original publication:
2525

2626
.. code::
2727
2828
Codon usage tabulated from the international DNA sequence databases:
2929
status for the year 2000.
3030
Nakamura, Y., Gojobori, T. and Ikemura, T. (2000) Nucl. Acids Res. 28, 292.
3131
32+
3233
Usage
3334
-----
3435

@@ -58,10 +59,30 @@ Usage
5859

5960
- In ``get_codons_table`` you can also provide a "shorthand" notation ``b_subtilis``, which will be automatically extended to ``b_subtilis_1423`` as it appears so in the built-in table (use this feature at your own risks!)
6061

62+
63+
The package can also use codon usage data from a CSV file in the form:
64+
65+
```
66+
amino_acid,codon,relative_frequency
67+
*,UAA,0.64
68+
*,UAG,0.07
69+
*,UGA,0.29
70+
A,GCA,0.21
71+
A,GCC,0.27
72+
K,AAA,0.76
73+
K,AAG,0.24
74+
etc.
75+
```
76+
77+
6178
Contribute
6279
----------
6380

64-
This project was started at the Edinburgh Genome Foundry by Zulko and is released on `Github <https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables>`_ under a Public Domain licence (and no warranty whatsoever, please cross-check the codon usage with other sources if you are not sure). Feel free to add other tables if you think of more commonly used species.
81+
This project was started at the Edinburgh Genome Foundry by Zulko and is released on
82+
`Github <https://github.com/Edinburgh-Genome-Foundry/python_codon_tables>`_
83+
under the CC0 (Public Domain) license (and no warranty whatsoever, please cross-check the codon usage with other sources if you are not sure).
84+
Feel free to add other tables if you think of more commonly used species.
85+
6586

6687
Installation
6788
------------
@@ -78,6 +99,7 @@ Manual:
7899
79100
python setup.py install
80101
102+
81103
More biology software
82104
---------------------
83105

codon_usage_data/version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

pypi-readme.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Python Codon Tables
2+
===================
3+
4+
Provides codon usage tables as dictionaries, for Python.
5+
6+
7+
Infos
8+
-----
9+
10+
**PIP installation:**
11+
12+
.. code:: bash
13+
14+
pip install python_codon_tables
15+
16+
**Web documentation:** `<https://edinburgh-genome-foundry.github.io/python_codon_tables/>`_
17+
18+
**Github Page:** `<https://github.com/Edinburgh-Genome-Foundry/python_codon_tables>`_
19+
20+
**License:** CC0
21+
22+
23+
More biology software
24+
---------------------
25+
26+
.. image:: https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Edinburgh-Genome-Foundry.github.io/master/static/imgs/logos/egf-codon-horizontal.png
27+
:target: https://edinburgh-genome-foundry.github.io/
28+
29+
Python Codon Tables is part of the `EGF Codons <https://edinburgh-genome-foundry.github.io/>`_ synthetic biology software suite for DNA design, manufacturing and validation.

pyproject.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,18 @@ version = "0.1.16"
44
license = "CC0-1.0"
55
authors = [{ name = "Zulko" }]
66
description = "Codon Usage Tables for Python, from kazusa.or.jp"
7-
readme = "python_codon_tables/README.rst"
7+
readme = "pypi-readme.rst"
88
keywords = ["DNA", "codon", "usage"]
9-
dependencies = ["biopython"]
109

1110
[project.urls]
12-
Homepage = "https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables"
11+
Homepage = "https://github.com/Edinburgh-Genome-Foundry/python_codon_tables"
1312

1413
[build-system]
1514
requires = ["setuptools"]
1615
build-backend = "setuptools.build_meta"
1716

18-
[tool.setuptools]
19-
include-package-data = true
17+
[tool.setuptools.packages.find]
18+
exclude = ["docs*", "examples*", "tests*"]
2019

2120
[tool.setuptools.package-data]
22-
python_codon_tables = ["../codon_usage_data/*", "../codon_usage_data/**/*"]
23-
24-
[tool.setuptools.packages.find]
25-
exclude = ["docs"]
21+
python_codon_tables = ["codon_usage_data/*", "codon_usage_data/**/*"]

python_codon_tables/.gitignore

Lines changed: 0 additions & 53 deletions
This file was deleted.

python_codon_tables/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
get_all_available_codons_tables,
66
download_codons_table,
77
)
8+
9+
from .version import __version__
File renamed without changes.

0 commit comments

Comments
 (0)