Skip to content

Commit bd508b6

Browse files
committed
more docs
1 parent 791de69 commit bd508b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

python_codon_tables/README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,17 @@ Usage
7474
table = pct.download_codons_table(taxid=316407)
7575
print (table['*']['UGA']) # returns 0.29
7676
77+
If you have an internet connection you can also enter any taxid in
78+
``get_codons_table`` and the table will be downloaded from the Kasuza website.
79+
You can write for instance:
80+
81+
.. code:: python
82+
83+
table = get_codons_table(1423)
84+
table = get_codons_table("1423")
85+
table = get_codons_table("b_subtilis_1423")
86+
table = get_codons_table("b_subtilis")
87+
88+
In the last line above we provided a "shorthand" notation ``b_subtilis``, which
89+
will be automatically extended to b_subtilis_1423 as it appears so in the
90+
built-in table (use this feature at your own risks!)

0 commit comments

Comments
 (0)