Skip to content

Commit

Permalink
Merge pull request #12 from padix-key/master
Browse files Browse the repository at this point in the history
Cosmetic scheme changes
  • Loading branch information
padix-key authored Aug 16, 2019
2 parents c8fd6a7 + 65717f5 commit ec9e5d1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ blue, both with a lightness of ``70``:

.. code-block:: console
$ gecos -c A 70 0 0 -c W 70 -10 -40 --lmin 60 --lmax 75 -f constrained_scheme.json
$ gecos -c A 70 0 0 -c W 70 -10 -45 --lmin 60 --lmax 75 -f constrained_scheme.json
.. image:: /plots/constrained_scheme_alignment.png

Expand Down Expand Up @@ -284,7 +284,7 @@ option.

In order to demonstrate this, the following example will generate a color scheme
for the *protein blocks* (PB) alphabet
(`de Brevern et al., 2000 <https://doi.org/10.1002/1097-0134(20001115)41:3\<271::AID-PROT10\>3.0.CO;2-Z>`_ ).
(`de Brevern et al., 2000 <https://doi.org/10.1002/1097-0134(20001115)41:3\<271::AID-PROT10\>3.0.CO;2-Z>`_).
The *Protein blocks* alphabet consists of 16 symbols, from ``a`` to ``p``,
where each one represents another protein backbone conformation.
In a nutshell, PBs can be used to encode a molecular 3D structure into a
Expand Down
35 changes: 32 additions & 3 deletions doc/plotgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def plot_generator(function):
def plot_main_example_alignment():
scheme_file = biotite.temp_file("json")
gecli.main(args=[
"--seed", "1",
"--seed", "0",
"--matrix", "BLOSUM62",
"--lmin", "60",
"--lmax", "75",
Expand Down Expand Up @@ -95,7 +95,7 @@ def plot_no_constraints_scheme_alignment():
def plot_no_green_scheme_alignment():
scheme_file = biotite.temp_file("json")
gecli.main(args=[
"--seed", "0",
"--seed", "1",
"--amin", "0",
"--lmin", "50",
"--lmax", "80",
Expand All @@ -121,7 +121,7 @@ def plot_constrained_scheme_alignment():
gecli.main(args=[
"--seed", "0",
"-c", "A", "70", "0", "0",
"-c", "W", "70", "-10", "-40",
"-c", "W", "70", "-10", "-45",
"--lmin", "60",
"--lmax", "75",
"-f", scheme_file
Expand Down Expand Up @@ -193,6 +193,35 @@ def plot_show_score():
])
return plt.gcf()

###############################################################################
# The protein block substitution matrix, the protein block reference angles
# and the RSMDA calculation were taken from the PBxplore software,
# governed by the following license:
#
#
# The MIT License (MIT)
#
# Copyright (c) 2013 Poulain, A. G. de Brevern
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
###############################################################################

@plot_generator
def plot_pb_scheme_alignment():
scheme_file = biotite.temp_file("json")
Expand Down

0 comments on commit ec9e5d1

Please sign in to comment.