[med-svn] [pscoils] 03/05: New upstream version 1.0+20120128

Andreas Tille tille at debian.org
Tue Dec 26 21:57:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository pscoils.

commit c3f8432af0a3a84285b62fd7443a329176715ac6
Author: Andreas Tille <tille at debian.org>
Date:   Tue Dec 26 22:56:01 2017 +0100

    New upstream version 1.0+20120128
---
 LICENSE.TXT               | 674 ++++++++++++++++++++++++++++++++++++++++++++++
 __init__.py               |   0
 debian/changelog          |   5 -
 debian/compat             |   1 -
 debian/control            |  19 --
 debian/copyright          |  28 --
 debian/docs               |   1 -
 debian/rules              |  11 -
 debian/source/format      |   1 -
 debian/watch              |   4 -
 doc/doc.aux               |  29 ++
 doc/doc.dvi               | Bin 0 -> 10816 bytes
 doc/doc.log               | 124 +++++++++
 doc/doc.pdf               | Bin 0 -> 66265 bytes
 doc/doc.tex               | 181 +++++++++++++
 doc/doc.tex.bak           | 168 ++++++++++++
 pscoils/psCoils.py        | 345 ++++++++++++++++++++++++
 setup.py                  |  18 ++
 test/CEBA_BOVIN.seq       |   2 +
 test/ferritin.Coils       |  66 +++++
 test/ferritin.PCoils      |  66 +++++
 test/ferritin.PSCoils     |  66 +++++
 test/ferritin.PredCoils   |  66 +++++
 test/ferritin.PredPCoils  |  66 +++++
 test/ferritin.PredPSCoils |  66 +++++
 test/ferritin.cc          |  67 +++++
 test/ferritin.fasta       |   2 +
 test/ferritin.prof        |  68 +++++
 test/test.sh              |  11 +
 29 files changed, 2085 insertions(+), 70 deletions(-)

diff --git a/LICENSE.TXT b/LICENSE.TXT
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/LICENSE.TXT
@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index 0990298..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,5 +0,0 @@
-pscoils (1.0+20120128-1) UNRELEASED; urgency=low
-
-  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
-
- -- Piero Fariselli <piero.fariselli at unibo.it>  Sun, 29 Jan 2012 10:42:19 +0100
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index f599e28..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-10
diff --git a/debian/control b/debian/control
deleted file mode 100644
index d2e16e9..0000000
--- a/debian/control
+++ /dev/null
@@ -1,19 +0,0 @@
-Source: pscoils
-Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
-Uploaders: Piero Fariselli <piero.fariselli at unibo.it>
-Section: science
-Priority: optional
-Build-Depends: debhelper (>= 10),
-               python
-Standards-Version: 3.9.8
-Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/pscoils/trunk/
-Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/pscoils/trunk/
-Homepage: http://www.biocomp.unibo.it/piero/PS-COILS/
-
-Package: pscoils
-Architecture: all
-Depends: ${misc:Depends},
-         ${python:Depends}
-Description: coiled-coil predictor
- This is a python version of COILS program that takes advantage
- of both evolutionary and signle sequence information. 
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100644
index 82eceba..0000000
--- a/debian/copyright
+++ /dev/null
@@ -1,28 +0,0 @@
-Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: pscoils
-Source: http://www.biocomp.unibo.it/piero/PS-COILS/download
-
-Files: *
-Copyright: 2012 Piero Fariselli <piero.fariselli at unibo.it>
-License: GPL-2.0+
-
-Files: debian/*
-Copyright: 2012 Piero Fariselli <piero.fariselli at unibo.it>
-License: GPL-2.0+
-
-License: GPL-2.0+
- This package is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- .
- This package is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
- .
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>
- .
- On Debian systems, the complete text of the GNU General
- Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index 2c94003..0000000
--- a/debian/docs
+++ /dev/null
@@ -1 +0,0 @@
-LICENSE.TXT
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index 07661fe..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
-
-%:
-	dh $@ --with python2
-
-#override_dh_auto_test:
-	#any unit test can go here
-        
diff --git a/debian/source/format b/debian/source/format
deleted file mode 100644
index 163aaf8..0000000
--- a/debian/source/format
+++ /dev/null
@@ -1 +0,0 @@
-3.0 (quilt)
diff --git a/debian/watch b/debian/watch
deleted file mode 100644
index e0fc178..0000000
--- a/debian/watch
+++ /dev/null
@@ -1,4 +0,0 @@
-version=4
-
-http://www.biocomp.unibo.it/piero/PS-COILS/download/pscoils-([\d.+]+)\.orig\.tar\.gz
-
diff --git a/doc/doc.aux b/doc/doc.aux
new file mode 100644
index 0000000..83b3b52
--- /dev/null
+++ b/doc/doc.aux
@@ -0,0 +1,29 @@
+\relax 
+\citation{Lupas}
+\citation{pcoils}
+\citation{Lupas}
+\citation{comparison}
+\citation{Lupas}
+\select at language{english}
+\@writefile{toc}{\select at language{english}}
+\@writefile{lof}{\select at language{english}}
+\@writefile{lot}{\select at language{english}}
+\@writefile{toc}{\contentsline {section}{\numberline {1}PSCOILS program}{1}}
+\@writefile{toc}{\contentsline {section}{\numberline {2}Background}{1}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}COILS}{1}}
+\citation{Lupas}
+\citation{pcoils}
+\newlabel{eq:prodcoils}{{4}{2}}
+\newlabel{eq:fcoils}{{5}{2}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}PCOILS}{2}}
+\newlabel{eq:prodpcoils}{{6}{2}}
+\newlabel{eq:fpcoils}{{7}{2}}
+\citation{pcoils}
+\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}PSCOILS}{3}}
+\newlabel{eq:prodpscoils}{{8}{3}}
+\newlabel{eq:fpscoils}{{9}{3}}
+\@writefile{toc}{\contentsline {section}{\numberline {3}PSCOILS usage}{3}}
+\bibcite{Lupas}{1}
+\bibcite{pcoils}{2}
+\bibcite{comparison}{3}
+\@writefile{toc}{\contentsline {section}{\numberline {4}Availability}{4}}
diff --git a/doc/doc.dvi b/doc/doc.dvi
new file mode 100644
index 0000000..f6a8c0e
Binary files /dev/null and b/doc/doc.dvi differ
diff --git a/doc/doc.log b/doc/doc.log
new file mode 100644
index 0000000..eba0fb7
--- /dev/null
+++ b/doc/doc.log
@@ -0,0 +1,124 @@
+This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=latex 2007.9.12)  6 APR 2008 03:16
+entering extended mode
+**doc.tex
+(./doc.tex
+LaTeX2e <2003/12/01>
+Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
+ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
+stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
+h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
+kish, ukrainian, nohyphenation, loaded.
+(/usr/share/texmf-tetex/tex/latex/base/article.cls
+Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
+(/usr/share/texmf-tetex/tex/latex/base/size11.clo
+File: size11.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
+)
+\c at part=\count79
+\c at section=\count80
+\c at subsection=\count81
+\c at subsubsection=\count82
+\c at paragraph=\count83
+\c at subparagraph=\count84
+\c at figure=\count85
+\c at table=\count86
+\abovecaptionskip=\skip41
+\belowcaptionskip=\skip42
+\bibindent=\dimen102
+)
+(/usr/share/texmf-tetex/tex/generic/babel/babel.sty
+Package: babel 2004/11/20 v3.8d The Babel package
+
+(/usr/share/texmf-tetex/tex/generic/babel/english.ldf
+Language: english 2004/06/14 v3.3o English support from the babel system
+
+(/usr/share/texmf-tetex/tex/generic/babel/babel.def
+File: babel.def 2004/11/20 v3.8d Babel common definitions
+\babel at savecnt=\count87
+\U at D=\dimen103
+)
+\l at british = a dialect from \language\l at english 
+\l at UKenglish = a dialect from \language\l at english 
+\l at canadian = a dialect from \language\l at american 
+\l at australian = a dialect from \language\l at british 
+\l at newzealand = a dialect from \language\l at british 
+)) (./doc.aux)
+\openout1 = `doc.aux'.
+
+LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 10.
+LaTeX Font Info:    ... okay on input line 10.
+LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 10.
+LaTeX Font Info:    ... okay on input line 10.
+LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 10.
+LaTeX Font Info:    ... okay on input line 10.
+LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 10.
+LaTeX Font Info:    ... okay on input line 10.
+LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 10.
+LaTeX Font Info:    ... okay on input line 10.
+LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 10.
+LaTeX Font Info:    ... okay on input line 10.
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <12> on input line 12.
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <8> on input line 12.
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <6> on input line 12.
+
+Overfull \hbox (13.94177pt too wide) in paragraph at lines 23--25
+\OT1/cmr/m/n/10.95 Here we sum-ma-rize the ba-sic al-go-rithms be-hind COILS, P
+COILS and PSCOILS
+ []
+
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <10.95> on input line 27.
+LaTeX Font Info:    Try loading font information for OMS+cmr on input line 31.
+(/usr/share/texmf-tetex/tex/latex/base/omscmr.fd
+File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
+)
+LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <10.95> not available
+(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 31.
+ [1
+
+] [2]
+Overfull \hbox (2.16733pt too wide) in paragraph at lines 123--123
+[]\OT1/cmtt/m/n/10.95 This program is distributed in the hope that it will be u
+seful,[] 
+ []
+
+
+Overfull \hbox (7.91602pt too wide) in paragraph at lines 134--134
+[] \OT1/cmtt/m/n/10.95 -l T/F  # print prediction labels when set T (default) i
+f P>0.5[] 
+ []
+
+
+Overfull \hbox (65.4029pt too wide) in paragraph at lines 134--134
+[] \OT1/cmtt/m/n/10.95 -L [0.0,1.0] lambda value. It will be used only if both 
+-f and -p are set[] 
+ []
+
+[3]
+Overfull \hbox (25.16208pt too wide) in paragraph at lines 157--157
+[] \OT1/cmtt/m/n/10.95 Pos A Hep Score   Prob    Gcc     Gg    Pred (Loop=L Coi
+ledcoil=C)[] 
+ []
+
+
+Overfull \hbox (96.97939pt too wide) in paragraph at lines 165--167
+\OT1/cmr/m/n/10.95 PSCOILS is avail-able as stand-alone python pro-gram at http
+://www.biocomp.unibo.it/piero/PS-
+ []
+
+Missing character: There is no � in font cmr10!
+Missing character: There is no � in font cmr10!
+Missing character: There is no � in font cmr10!
+[4] [5] (./doc.aux) ) 
+Here is how much of TeX's memory you used:
+ 568 strings out of 94501
+ 6435 string characters out of 1175794
+ 59232 words of memory out of 1000000
+ 3796 multiletter control sequences out of 10000+50000
+ 9325 words of font info for 33 fonts, out of 500000 for 2000
+ 580 hyphenation exceptions out of 8191
+ 25i,6n,19p,182b,203s stack positions out of 1500i,500n,5000p,200000b,5000s
+
+Output written on doc.dvi (5 pages, 10816 bytes).
diff --git a/doc/doc.pdf b/doc/doc.pdf
new file mode 100644
index 0000000..f9a9d69
Binary files /dev/null and b/doc/doc.pdf differ
diff --git a/doc/doc.tex b/doc/doc.tex
new file mode 100644
index 0000000..613f858
--- /dev/null
+++ b/doc/doc.tex
@@ -0,0 +1,181 @@
+\documentclass[11pt,english]{article}
+
+\usepackage[english]{babel}
+
+
+
+\title{PS-COILS}
+
+\author{Piero Fariselli}
+\begin{document}
+
+\maketitle
+
+\section{PSCOILS program}
+
+PSCOILS is a simple evolution of COILS \cite{Lupas} and PCOILS \cite{pcoils} programs.
+It uses the same parameters that were developed for COILS and exploits both sequence and
+evolutionary information (in the form of sequence profiles). For the details of the
+parameter construction please see \cite{Lupas,comparison}. 
+
+\section{Background}
+
+Here we summarize the basic algorithms behind COILS, PCOILS and PSCOILS in order to
+highlight the basic differences.
+
+\subsection{COILS}
+The coils program is based on scoring tables $S^h(a)$ that are used to compute the probability score
+for each segment of a protein sequence (see \cite{Lupas}), and some parameters that
+define Gaussian probabilities. Then the main parameters are:
+\begin{itemize}
+\item $ \mu_{cc}, \mu_{g}$ the average scoring values of the coiled-coil and globular protein sets;
+\item $ \sigma_{cc}, \sigma_{g}$ the standard deviation of the scoring values for the 
+      coiled-coil and globular protein sets;
+\item $ S^h(a)=$ the score for the residue type $a$ in the heptad position $h$ (from 1 to 7).
+\end{itemize}
+So that the probability of a coiled-coil segment of length $W$ starting at position $i$ in 
+a given sequence is computed as
+\begin{equation}
+Pr_i=\frac{G_{cc}}{G_{cc}+c\cdot G_{g}}
+\end{equation}
+where $c$ is the bias for the most abundant globular class ($g$) and
+$G_{cc}$ and $G_{g}$ are defined as
+\begin{equation}
+G_{cc}=\frac{1}{\surd{2}\sigma_{cc}}e^{-\frac{(x_i-\mu_{cc})^2}{\sigma_{cc}^2}}
+\end{equation}
+\begin{equation}
+G_{g}=\frac{1}{\surd{2}\sigma_{g}}e^{-\frac{(x_i-\mu_{g})^2}{\sigma_{g}^2}}
+\end{equation}
+
+The score $x_i$ is computed using the matrix $S^h(a)$ (\cite{Lupas}) along the segment $W$ starting
+at position $i$ as
+\begin{equation}
+x_i=(\prod_{h=1}^W f(a_{i+h},h)^{e_h})^{1/N}
+\label{eq:prodcoils}
+\end{equation}
+where $e_h$ is the exponential weight of the position $h$ (if not weighted is simply $e_h=1$) and 
+$N$ is the normalization factor $N=\sum_{h=1}^W e_h$. 
+The function $f$ is in the case of COILS program is simply
+\begin{equation}
+f(a_{i+h},h)=S^h(a_{i+h})
+\label{eq:fcoils}
+\end{equation}
+where $S^h(a_{i+h})$ is the element of the COILS scoring table 
+accounting for the residue type $a_{i+h}$ in the $h^{th}$ heptad position.
+
+\subsection{PCOILS}
+
+For sake of clarity we have to mention that this is {\em our implementation} of PCOILS, and we cannot
+guarantee that the original PCOILS program works in the same way, since the authors
+does not show the explicit algorithm \cite{pcoils}. However, in case of our PCOILS, all the 
+machinery described above still remains untouched, with the exception of function $f$ 
+(Eq. \ref{eq:fcoils}). Since we are dealing with evolutionary information 
+computed from a given multiple alignment, instead of the single-sequence $s$
+we work with the profile $P_k(a)$, that represents the frequency of residue $a$ in position $k$ of 
+the alignment.
+In this case the PCOILS score is still defined by an equation similar to Eq.\ref{eq:prodcoils}, 
+but with the new function:
+\begin{equation}
+x_i=(\prod_{h=1}^W f(S,P,h)^{e_h})^{1/N}
+\label{eq:prodpcoils}
+\end{equation}
+and
+\begin{equation}
+f(S,P,h)=<S^h,P_{i+h}>=\sum_{a \in \{Residues\}} S^h(a)\cdot P_{i+h}(a)
+\label{eq:fpcoils}
+\end{equation}
+
+\subsection{PSCOILS}
+PSCOILS combines the sequence and the profile information using a linear 
+weighting scheme, namely $\lambda COILS + (1-\lambda)PCOILS$ with $\lambda$
+in the range of $[0,1]$ the only variation with respect to the previous algorithm
+is again the $f$ equation (\ref{eq:fcoils} and \ref{eq:fpcoils}). We then have
+as before
+\begin{equation}
+x_i=(\prod_{h=1}^W f(S,P,h,\lambda)^{e_h})^{1/N}
+\label{eq:prodpscoils}
+\end{equation}
+and
+\begin{equation}
+f(S,P,h,\lambda)=\lambda S^h(a_{i+h}) + (1-\lambda) <S^h,P_{i+h}>
+\label{eq:fpscoils}
+\end{equation}
+where the meaning of $S^h(a_{i+h})$  and $<S^h,P_{i+h}>$ are the same as in
+\ref{eq:fcoils} and \ref{eq:fpcoils}, respectively. 
+No attempt have been made to optimize $\lambda$ but in the current stage it has
+been set to $1/2$. In this case the sequence and the profile are equally weighted.
+
+
+\section{PSCOILS usage}
+
+The program {\tt psCoils.py} is written in {\bf python} and it is distributed under the
+{\em GPL License}, 
+\begin{verbatim}
+psCoils.py  is free software and can be redistributed  and/or 
+modified under the terms of the GNU General Public License as 
+published by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+\end{verbatim}
+{\tt psCoils.py} incorporates both COILS and our version of PCOILS, since the original one 
+\cite{pcoils} were not explicitly described. 
+Just typing the program name {\tt psCoils.py} on the standard output will appear
+\begin{verbatim}
+USAGE:  ./psCoils.py -f fasta  -p profile [options]
+Options:
+ -W 14/21/28 # one of the possible windows (default 21)
+ -w w/uw  # weight or unweight default=uw
+ -l T/F  # print prediction labels when set T (default) if P>0.5
+ -L [0.0,1.0] lambda value. It will be used only if both -f and -p are set
+\end{verbatim}
+The parameters are the standard one defined for COILS, such as: 
+\begin{itemize}
+\item {\tt -W}: the input window that is set to 21 as default;
+\item {\tt -w}: can set the heptad weighted {\tt w}, or unweighted {\tt uw} periodicity
+\item {\tt -l}: set the label printing in the output options (unless -l F is set)
+\item {\tt -L}: this set the linear weighting scheme between sequence and profile, according to
+                $\lambda$ Sequence +(1-$\lambda$) Profile.
+\end{itemize}
+{\tt psCoils.py} can be used as COILS, PCOILS or PSCOILS depending on the different
+input provided, such as:
+\begin{itemize}
+\item As {\bf COILS}: use only {\tt -f fasta} option.
+\item As {\bf PCOILS}: use only {\tt -p profile} option.  
+\item As {\bf PSCOILS}: use both {\tt -f fasta -p profile} options.  
+\end{itemize}
+A typical output is 
+\begin{verbatim}
+ Pos A Hep Score   Prob    Gcc     Gg    Pred (Loop=L Coiledcoil=C)
+   1 C a   0.480   0.000   0.000   0.927 L
+   2 M a   0.804   0.000   0.001   4.596 L
+   3 S b   0.804   0.000   0.001   4.596 L
+..
+\end{verbatim}
+where {\tt Pos} is the sequence position, {\tt A} contains the residue sequence
+(only an {\tt x} if PCOILS is used), {\tt Prob} is the computed probability as
+described above, {\tt Gcc} and {\tt Gg} are Gaussian values obtained as described above
+and {\tt Pred} is the label associated at {\tt Prob} if its value is greater of $0.5$. 
+
+\section{Availability}
+
+PSCOILS is available as stand-alone python program  at http://www.biocomp.unibo.it/piero/PS-COILS/download/ 
+or as python package as part of the {\tt plone4bio} effort at  http://www.plone4bio.org.
+
+\begin{thebibliography}{99}
+
+\bibitem{Lupas} Lupas AN, Van Dyke M and  Stock J. (1991)  ``Predicting coiled coils from protein
+   sequences''. $Science$, 252, 1162-1164.
+
+\bibitem{pcoils} Gruber M, Soding J and Lupas AN (2005) ``REPPER-repeats and their periodicities 
+in fibrous proteins'', {\em Nucleic Acids Res.} 33:239–243.
+
+\bibitem{comparison} Gruber M, Soding J and Lupas AN (2006)
+``Comparative analysis of coiled-coil prediction methods''. {\em J Struct Biol}, 155:140-145.
+
+\end{thebibliography}
+
+\end{document}
diff --git a/doc/doc.tex.bak b/doc/doc.tex.bak
new file mode 100644
index 0000000..100686f
--- /dev/null
+++ b/doc/doc.tex.bak
@@ -0,0 +1,168 @@
+\documentclass[11pt,english]{article}
+
+\usepackage[english]{babel}
+
+
+
+\title{PS-COILS}
+
+\author{Piero Fariselli}
+\begin{document}
+
+\maketitle
+
+\section{PSCOILS program}
+
+PSCOILS is a simple evolution of COILS \cite{Lupas} and PCOILS \cite{pcoils} programs.
+It uses the same parameters that were developed for COILS and exploits both sequence and
+evolutionary information (in the form of sequence profiles). For the details of the
+parameter construction plese see \cite{Lupas,comparison}. 
+
+\section{Background}
+
+Here we summarize the basic algorithms behind COILS, PCOILS and PSCOILS in order to
+understand the basic differences.
+
+\subsection{COILS}
+The coils program is based on scoring tables $S^h(a)$ that are used to compute the probability score
+for each segment of a protein sequence (see \cite{Lupas}), and some paramters that
+define gaussian probabilities. Then the main parameters are:
+\begin{itemize}
+\item $ \mu_{cc}, \mu_{g}$ the average values of the coiled-coil and globular protein sets;
+\item $ \sigma_{cc}, \sigma_{g}$ the standard deviation of the coiled-coil and globular protein sets;
+\item $ S^h(a)=$ the score for the residue type $a$ in the heptad position $h$ (from 1 to 7).
+\end{itemize}
+So that the probability of a coiled-coil segment of length $W$ starting at position $i$ in sequence
+is given by
+\begin{equation}
+Pr_i=\frac{G_{cc}}{G_{cc}+c\cdot G_{g}}
+\end{equation}
+where $c$ is the bias for the most abundant globular class ($g$) and
+$G_{cc}$ and $G_{g}$ are defined as
+\begin{equation}
+G_{cc}=\frac{1}{\surd{2}\sigma_{cc}}e^{-\frac{(x_i-\mu_{cc})^2}{\sigma_{cc}^2}}
+\end{equation}
+\begin{equation}
+G_{g}=\frac{1}{\surd{2}\sigma_{g}}e^{-\frac{(x_i-\mu_{g})^2}{\sigma_{g}^2}}
+\end{equation}
+
+The score $x_i$ is computed using the matrix $S^h(a)$ (\cite{Lupas}) along the segment $W$ starting
+at position $i$ as
+\begin{equation}
+x_i=(\prod_{h=1}^W f(a_{i+h},h)^{e_h})^{1/N}
+\label{eq:prodcoils}
+\end{equation}
+where $e_h$ is the exponential weight of the position $h$ (if not weighted is simply $e_h=1$) and 
+$N$ is the normalization factor $N=\sum_{h=1}^W e_h$. 
+The function $f$ is in the case of COILS program is simply
+\begin{equation}
+f(a_{i+h},h)=S^h(a_{i+h})
+\label{eq:fcoils}
+\end{equation}
+
+\subsection{PCOILS}
+
+In case of PCOILS, all the machinery described above still remains untouched, with the exception
+of function $f$ (\ref{eq:fcoils}). Since we are using a profile matrix, instead of the sequence $s$
+we are dealing with $P_k(a)$, that is the frequency of residue $a$ in position $k$ of the alignment.
+In this case the PCOILS score is still defined by an equation similar to Eq.\ref{eq:prodcoils}, 
+but with the new function:
+\begin{equation}
+x_i=(\prod_{h=1}^W f(S,P,h)^{e_h})^{1/N}
+\label{eq:prodpcoils}
+\end{equation}
+and
+\begin{equation}
+f(S,P,h)=<S^h,P_{i+h}>=\sum_{a=residues} S^h(a)\cdot P_{i+h}(a)
+\label{eq:fpcoils}
+\end{equation}
+
+\subsection{PSCOILS}
+PSCOILS combines the sequence and the profile information using a linear 
+weighting scheme, namely $\lambda COILS + (1-\lambda)PCOILS$ with $\lambda$
+in the range of $[0,1]$ the only variation with respect to the previous algorithm
+is again the $f$ equation (\ref{eq:fcoils} and \ref{eq:fpcoils}). We then have
+as before
+\begin{equation}
+x_i=(\prod_{h=1}^W f(S,P,h,\lambda)^{e_h})^{1/N}
+\label{eq:prodpscoils}
+\end{equation}
+and
+\begin{equation}
+f(S,P,h,\lambda)=\lambda S^h(a_{i+h}) + (1-\lambda) <S^h,P_{i+h}>
+\label{eq:fpscoils}
+\end{equation}
+where the meaning of $S^h(a_{i+h})$  and $<S^h,P_{i+h}>$ are the same as in
+\ref{eq:fcoils} and \ref{eq:fpcoils}, respectively. 
+No attempt have been made to optimize $\lambda$ but in the actual stage it has
+been set to $1/2$. In this case the sequence and the profile are equally weighted.
+
+
+\section{PSCOILS usage}
+
+The program {\tt psCoils.py} is written in {\bf python} and it is distrubuted under the
+{\em GPL License}, 
+\begin{verbatim}
+psCoils.py  is free software and can be redistributed  and/or 
+modified under the terms of the GNU General Public License as 
+published by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+\end{verbatim}
+{\tt psCoils.py} incorporetes both COILS and our version of PCOILS, since the original one 
+\cite{pcoils} were not explicitly described. 
+Just typing the program name {\tt psCoils.py} on the standard output will appear
+\begin{verbatim}
+USAGE:  ./psCoils.py -f fasta  -p profile [options]
+Options:
+       -W 14/21/28 #deafult 21 one of the possible window
+       -w w/uw  # weight or unweight default=uw
+       -l T/F  # print prediction labels when set T (default) if P>0.5
+       -L [0.0,1.0] lambda value. It will be used only if both -f and -p are set
+\end{verbatim}
+The parameters are the standard one defined for COILS, such as: 
+\begin{itemize}
+\item {\tt -W}: the input vindow that is set to 21 as default;
+\item {\tt -w}: can set the heptad weighted {\tt w}, or unweighted {\tt uw} periodicity
+\item {\tt -l}: set the label printing in the output options (unless -l F is set)
+\item {\tt -L}: this set the linear weighting scheme between sequence and profile, according to
+                $\lambda$ Sequence +(1-$\lambda$) Profile.
+\end{itemize}
+{\tt psCoils.py} can be used as COILS, PCOILS or PSCOILS depending on the different
+input provided, such as:
+\begin{itemize}
+\item As {\bf COILS}: use only {\tt -f fasta} option.
+\item As {\bf PCOILS}: use only {\tt -p profile} option.  
+\item As {\bf PSCOILS}: use both {\tt -f fasta -p profile} options.  
+\end{itemize}
+A typical output is 
+\begin{verbatim}
+ Pos A Hep Score   Prob    Gcc     Gg    Pred (Loop=L Coiledcoil=C)
+   1 C a   0.480   0.000   0.000   0.927 L
+   2 M a   0.804   0.000   0.001   4.596 L
+   3 S b   0.804   0.000   0.001   4.596 L
+..
+\end{verbatim}
+where {\tt Pos} is the sequence position, {\tt A} contains the residue sequence
+(only an {\tt x} if PCOILS is used), {\tt Prob} is the computed probability as
+described above, {\tt Gcc} and {\tt Gg} are gaussian values obtained as descibed above
+and {\tt Pred} is the label associated at {\tt Prob} if its value is greater of $0.5$. 
+
+\begin{thebibliography}{99}
+
+\bibitem{Lupas} Lupas AN, Van Dyke M and  Stock J. (1991)  ``Predicting coiled coils from protein
+   sequences''. $Science$, 252, 1162-1164.
+
+\bibitem{pcoils} Gruber M, Soding J and Lupas AN (2005) ``REPPER-repeats and their periodicities 
+in fibrous proteins'', {\em Nucleic Acids Res.} 33:239–243.
+
+\bibitem{comparison} Gruber M, Soding J and Lupas AN (2006)
+``Comparative analysis of coiled-coil prediction methods''. {\em J Struct Biol}, 155:140-145.
+
+\end{thebibliography}
+
+\end{document}
diff --git a/pscoils/psCoils.py b/pscoils/psCoils.py
new file mode 100755
index 0000000..2b6e5e3
--- /dev/null
+++ b/pscoils/psCoils.py
@@ -0,0 +1,345 @@
+#!/usr/bin/env python 
+'''
+    Copyright (C) 2007 Piero Fariselli
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+    psCoils.py  Copyright (C) 2007  Piero Fariselli
+    contacts: Piero Fariselli
+              e-mail: piero at biocomp.unibo.it, piero.fariselli at unibo.it
+              Dept. of Biology
+              University of Bologna
+              via Irnerio 42
+              40126 Bologna
+              Italy
+    This program comes with ABSOLUTELY NO WARRANTY; for details type psCoils.py.
+    This is free software, and you are welcome to redistribute it
+    under the condition of preserving this text 
+'''
+
+# Iports
+
+import sys
+import getopt
+import math
+import string
+
+AAs="ACDEFGHIKLMNPQRSTVWY"
+NewMat='''L 2.998 0.269 0.367 3.852 0.510 0.514 0.562
+I 2.408 0.261 0.345 0.931 0.402 0.440 0.289
+V 1.525 0.479 0.350 0.887 0.286 0.350 0.362
+M 2.161 0.605 0.442 1.441 0.607 0.457 0.570
+F 0.490 0.075 0.391 0.639 0.125 0.081 0.038
+Y 1.319 0.064 0.081 1.526 0.204 0.118 0.096
+G 0.084 0.215 0.432 0.111 0.153 0.367 0.125
+A 1.283 1.364 1.077 2.219 0.490 1.265 0.903
+K 1.233 2.194 1.817 0.611 2.095 1.686 2.027
+R 1.014 1.476 1.771 0.114 1.667 2.006 1.844
+H 0.590 0.646 0.584 0.842 0.307 0.611 0.396
+E 0.281 3.351 2.998 0.789 4.868 2.735 3.812
+D 0.068 2.103 1.646 0.182 0.664 1.581 1.401
+Q 0.311 2.290 2.330 0.811 2.596 2.155 2.585
+N 1.231 1.683 2.157 0.197 1.653 2.430 2.065
+S 0.332 0.753 0.930 0.424 0.734 0.801 0.518
+T 0.197 0.543 0.647 0.680 0.905 0.643 0.808
+C 0.918 0.002 0.385 0.440 0.138 0.432 0.079
+W 0.066 0.064 0.065 0.747 0.006 0.115 0.014
+P 0.004 0.108 0.018 0.006 0.010 0.004 0.007'''
+Parameters='''w  14 1.89 0.30 1.04 0.27 20
+w  21 1.79 0.24 0.92 0.22 25
+w  28 1.74 0.20 0.86 0.18 30
+uw 14 1.82 0.28 0.95 0.26 20
+uw 21 1.74 0.23 0.86 0.21 25
+uw 28 1.69 0.18 0.80 0.18 30''' 
+
+class Params:
+     ''' define the Coils parameters '''
+     def __init__(self,weighted='w',window=21):
+         ''' initialize the parameters '''
+         self.pow=[1.0]*7
+         if weighted.lower() not in ['w','uw']:
+             self.weight='uw'
+         else:
+             self.weight=weighted.lower()
+         if self.weight=='w':
+             self.pow[0]=self.pow[3]=2.5
+         if window not in [14,21,28]:
+             self.win=21
+         else:
+             self.win=window
+         self.m_cc,self.sd_cc,self.m_g,self.sd_g,self.sc,self.mat=_initData(self.win,self.weight)
+
+
+def _initData(window,weighted):
+    ''' _initData builds the parameters starting from string '''
+    from string import atof, atoi
+    s=NewMat
+    sl=s.split('\n')
+    d={}
+    for e in sl:
+        v=e.split()
+        for k in range(len(v[1:])):
+            d[(v[0],k)]=atof(v[1:][k])
+    s=Parameters
+    sl=s.split('\n')
+    for e in sl:
+        v=e.split()
+	if (v[0] == weighted) and (atoi(v[1])==window):
+           vec=[]
+           for n in v[2:]:
+               vec.append(atof(n))        
+    return vec+[d]
+   
+
+
+#
+#
+#---------------------------------#
+def readProf(fname,aaOrder='VLIMFWYGAPSTCHRKQEND'):
+    ''' readProf(fname,aaOrder) returns a dictionary profile prof[(pos,aa)]'''
+    try:
+        lines=open(fname,'r').readlines()
+    except:
+        sys.stderr.write('cannot open file '+fname+'\n')
+        sys.exit()
+    prof={}
+    i=0
+    while lines[i].find("#")>=0 and i <len(lines):
+        pos=lines[i].find("ALPHABET=")
+        if pos>0:
+           v=lines[i][pos+len("ALPHABET="):].split()
+           aaOrder=''.join(v[:20])
+           
+        i+=1
+    if i >= len(lines):
+        sys.stderr.write('Error in '+fname+'\n')
+        sys.exit()
+    pos=0
+    while i<len(lines):
+        v=lines[i].split()
+        for j in range(len(aaOrder)):
+            prof[(pos,aaOrder[j])]=string.atof(v[j])/100.0    
+ #               prof[(pos,aaOrder[j])]=string.atoi(v[j])
+        pos+=1
+        i+=1
+    return prof,pos
+    
+#---------------------------------#
+
+
+#----------- readFasta files 
+def readFasta(fname):
+    ''' readFasta(fname) returns a dictionary 
+    '''
+    try:
+        lines=open(fname,'r').readlines()
+    except:
+        sys.stderr.write('cannot open file '+fname+'\n')
+        sys.exit()
+    seqs={}
+    name=''
+    seq=''
+    for line in lines:
+        if line[0]=='>': # assuming fasta file
+           if name != '':
+               seqs[name]=seq
+               seq=''
+           name=line[1:].strip()
+        else:
+           seq+=''.join(line.split())
+    if name != '':
+        seqs[name]=seq
+    return seqs
+#---------------------------------#
+
+#---------------------------------#
+def coilProb(cScore,params):
+    ''' coilProb(curScore,params) returns coiled-coils probability dependin on params'''
+    t1=1/params.sd_cc
+    t2=(cScore-params.m_cc)/params.sd_cc
+    t4=t2*t2
+    Gcc=t1*math.exp(-0.5*t4)
+    t1=1/params.sd_g
+    t2=(cScore-params.m_g)/params.sd_g
+    t4=t2*t2
+    Gg=t1*math.exp(-0.5*t4)
+    return  Gg,Gcc,Gcc/(params.sc*Gg + Gcc )
+#---------------------------------#
+
+#---------------------------------#
+def seqScore(mat,seq,sPos,hept_pos):
+    ''' seqScore(mat,aa,pos) comoputes the sequenc based score'''
+    try:
+        retVal=mat[(seq[sPos],hept_pos)]
+    except: 
+        retVal=1
+    return retVal
+#---------------------------------#
+
+
+#---------------------------------#
+def profScore(mat,prof,sPos,hept_pos):
+    ''' profScore(mat,aa,pos) comoputes the sequenc based score'''
+    sum=0.0
+    for aa in AAs:
+        prof[(sPos,aa)]
+        mat[(aa,hept_pos)]
+        sum+=prof[(sPos,aa)]*mat[(aa,hept_pos)]
+    return sum
+#---------------------------------#
+
+    
+#---------------------------------#
+def pred_coil(seq,seqLen,params,fScore):
+    ''' pred_coil(seq,seqLen,params,fScore) returns the coiled coil prediction of sequence seq'''
+    hept_pos=['a','b','c','d','e','f','g']
+    score=[0.0]*seqLen
+    prob=[0.0]*seqLen
+    gcc=[0.0]*seqLen
+    gg=[0.0]*seqLen
+    hept_seq=['x']*seqLen
+    for i in range(seqLen-params.win+1):
+        this_score=1.0
+        actual_win=0.0
+        for j in range(min(params.win,seqLen-i)):
+            pos=j%7
+            actual_win+=params.pow[pos]
+            this_score*=math.pow( fScore(params.mat,seq,i+j,pos), params.pow[pos] )
+        if actual_win > 0:
+            this_score=math.pow(this_score,1/actual_win)
+        else:
+            this_score=0.0
+        for j in range(min(params.win,seqLen-i)): 
+            pos=j%7
+            if this_score > score[i+j]:
+                score[i+j]=this_score
+                hept_seq[i+j]=hept_pos[pos]
+    for i in range(seqLen):
+        gg[i],gcc[i],prob[i]= coilProb(score[i],params)
+    return gg,gcc,prob,hept_seq,score
+  
+    
+#---------------------------------#
+def pred_coil2(seq,prof,params,ws=0.5):
+    ''' pred_coil2(seq,prof,params,ws=0.5) returns the coiled coil prediction of sequence seq'''
+    hept_pos=['a','b','c','d','e','f','g']
+    seqLen=len(seq)
+    score=[0.0]*seqLen
+    prob=[0.0]*seqLen
+    gcc=[0.0]*seqLen
+    gg=[0.0]*seqLen
+    hept_seq=['x']*seqLen
+    for i in range(seqLen-params.win+1):
+        this_score=1.0
+        actual_win=0.0
+        for j in range(min(params.win,seqLen-i)):
+            pos=j%7
+            actual_win+=params.pow[pos]
+            avScore=(1-ws)*profScore(params.mat,prof,i+j,pos)+ws*seqScore(params.mat,seq,i+j,pos)
+            this_score*=math.pow( avScore , params.pow[pos] )
+        if actual_win > 0:
+            this_score=math.pow(this_score,1/actual_win)
+        else:
+            this_score=0.0
+        for j in range(min(params.win,seqLen-i)): 
+            pos=j%7
+            if this_score > score[i+j]:
+                score[i+j]=this_score
+                hept_seq[i+j]=hept_pos[pos]
+    for i in range(seqLen):
+        gg[i],gcc[i],prob[i]= coilProb(score[i],params)
+    return gg,gcc,prob,hept_seq,score
+  
+#---------------------------------#
+#---------------------------------#
+def printCoil(seq,seqLen,hept_seq,score,P,Gcc,Gg,labels='T'):
+    ''' '''
+    ccLab="C"
+    loopLab="L"
+    if labels !='T' :
+        for i in range(seqLen):
+            #print "%4d %c %c %7.3f %7.3f (%7.3f %7.3f)" % (i+1,seq[i],hept_seq[i],score[i],P[i],Gcc[i],Gg[i])
+            print "%4d %c %c %7.3f %7.3f %7.3f %7.3f" % (i+1,seq[i],hept_seq[i],score[i],P[i],Gcc[i],Gg[i])
+    else:
+        print " Pos A Hep Score   Prob    Gcc     Gg    Pred (Loop=L Coiledcoil=C)"
+        for i in range(seqLen):
+            if P[i] > 0.5:
+               clabel=ccLab
+            else:
+               clabel=loopLab
+            print "%4d %c %c %7.3f %7.3f %7.3f %7.3f %s" % (i+1,seq[i],hept_seq[i],score[i],P[i],Gcc[i],Gg[i],clabel)
+    return
+#---------------------------------#
+#---------------------------------#
+def usage(prog):
+    ''' '''
+    print "USAGE: ",prog, "-f fasta  -p profile [options]"
+    print "Options:"
+    print "       -W 14/21/28 # one of the possible windows (default 21)"
+    print "       -w w/uw  # weight or unweight default=uw"
+    print "       -l T/F  # print prediction labels when set T (default) if P>0.5"
+    print "       -L [0.0,1.0] lambda value. It will be used only if both -f and -p are set "
+    return 
+#---------------------------------#
+
+if __name__=='__main__':
+    try:
+       opts, args = getopt.getopt(sys.argv[1:], "f:p:w:W:l:L:")
+    except:
+       usage(sys.argv[0])
+       sys.exit(2)
+    weight='un'
+    labels='T'
+    wlambda=0.5
+    win=21
+    modefasta=modeprofile=False
+    if not opts:
+        usage(sys.argv[0])
+        sys.exit(2)
+    for o,a in opts:
+        if o == '-f':
+            seqs=readFasta(a)
+            modefasta=True
+        elif o == '-p':
+            prof,profLen=readProf(a)
+            modeprofile=True
+        elif o == '-L':
+            wlambda=string.atof(a)
+        elif o == '-l':
+            labels=a
+        elif o == '-w':
+            weight=a
+        elif o == '-W':
+            try:
+                win=string.atoi(a)
+            except:
+                usage(sys.argv[0])
+                sys.exit(2)
+        else:
+           usage(sys.argv[0])
+           sys.exit(2)
+    params=Params(weight,win)
+    if modeprofile and modefasta: 
+        #use both 
+        for name in seqs.keys(): # WARNING We assume only one sequence!!!
+            gg,gcc,prob,hept_seq,score=pred_coil2(seqs[name],prof,params,wlambda) 
+            printCoil(seqs[name],len(seqs[name]),hept_seq,score,prob,gcc,gg,labels)
+    elif modefasta:
+        for name in seqs.keys():
+#            print "> ",name      
+            gg,gcc,prob,hept_seq,score=pred_coil(seqs[name],len(seqs[name]),params,seqScore)
+            printCoil(seqs[name],len(seqs[name]),hept_seq,score,prob,gcc,gg,labels)
+    elif modeprofile:
+        gg,gcc,prob,hept_seq,score=pred_coil(prof,profLen,params,profScore)
+        printCoil('x'*profLen,profLen,hept_seq,score,prob,gcc,gg,labels)
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..3d23b2d
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,18 @@
+from distutils.core import setup
+import sys, os
+
+version = '1.0'
+
+setup(name='pscoil',
+      version=version,
+      description="Predictor of Coiled-coils based on evolutionary ans sequnce information",
+      long_description="""\
+Long description here ...""",
+      classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
+      keywords='Bio-Informatics',
+      author='Piero Fariselli',
+      author_email='piero at biocomp.unibo.it',
+      url='http://www.biocomp.unibo.it/piero',
+      license='GPLv2',
+      scripts=['pscoils/psCoils.py']
+      )
diff --git a/test/CEBA_BOVIN.seq b/test/CEBA_BOVIN.seq
new file mode 100644
index 0000000..596fdb0
--- /dev/null
+++ b/test/CEBA_BOVIN.seq
@@ -0,0 +1,2 @@
+>  CEBA_BOVIN
+MESADFYEAEPRPPMSSHLQSPPHAPSSAAFGFPRGAGPSQPPAPPAAPEPLGGICEHETSIDISAYIDPAAFNDEFLADLFQHSRQQEKAKAAAAPAGGGNDFDYPGAPVGPGGAVMPGGTHGPPPGYGCAAAGYLDSRLEPLYERVGAPALRPLVIKQEPREEDEAKQLALAGLFPYQPPPPPPPPNSHPPPAHLAAPHLQFQIAHCGQTTMHLQPGHPTPPPTPVPSPHPAPALGAAGLPGPGGALKGLVATHPDLRAGGGGGGKAKKSVDKNSNEYRVRRERNNIAVRKSRDKAKQRNVETQQKVLELTSDNDRLRKRVEQLSRELDTLRGIFRQLPESSLVKAMGNCA
diff --git a/test/ferritin.Coils b/test/ferritin.Coils
new file mode 100644
index 0000000..5cc818e
--- /dev/null
+++ b/test/ferritin.Coils
@@ -0,0 +1,66 @@
+   1 C a   0.480   0.000   0.000   0.927
+   2 M a   0.804   0.000   0.001   4.596
+   3 S b   0.804   0.000   0.001   4.596
+   4 P a   1.126   0.002   0.123   2.134
+   5 D b   1.126   0.002   0.123   2.134
+   6 Q c   1.126   0.002   0.123   2.134
+   7 W d   1.126   0.002   0.123   2.134
+   8 D e   1.126   0.002   0.123   2.134
+   9 K a   1.233   0.015   0.384   0.981
+  10 E b   1.233   0.015   0.384   0.981
+  11 A c   1.233   0.015   0.384   0.981
+  12 A d   1.233   0.015   0.384   0.981
+  13 Q e   1.233   0.015   0.384   0.981
+  14 Y f   1.233   0.015   0.384   0.981
+  15 D g   1.233   0.015   0.384   0.981
+  16 A a   1.233   0.015   0.384   0.981
+  17 H b   1.233   0.015   0.384   0.981
+  18 A c   1.233   0.015   0.384   0.981
+  19 Q d   1.233   0.015   0.384   0.981
+  20 E e   1.233   0.015   0.384   0.981
+  21 F f   1.233   0.015   0.384   0.981
+  22 E g   1.233   0.015   0.384   0.981
+  23 K a   1.233   0.015   0.384   0.981
+  24 K b   1.233   0.015   0.384   0.981
+  25 S c   1.233   0.015   0.384   0.981
+  26 H d   1.233   0.015   0.384   0.981
+  27 R e   1.233   0.015   0.384   0.981
+  28 N f   1.233   0.015   0.384   0.981
+  29 N g   1.233   0.015   0.384   0.981
+  30 G f   1.098   0.001   0.088   2.507
+  31 T g   1.098   0.001   0.088   2.507
+  32 P e   0.932   0.000   0.009   4.488
+  33 E a   0.934   0.000   0.009   4.475
+  34 A a   1.352   0.121   1.049   0.306
+  35 D b   1.352   0.121   1.049   0.306
+  36 Q c   1.352   0.121   1.049   0.306
+  37 Y d   1.352   0.121   1.049   0.306
+  38 R e   1.352   0.121   1.049   0.306
+  39 H f   1.352   0.121   1.049   0.306
+  40 M g   1.352   0.121   1.049   0.306
+  41 A a   1.380   0.187   1.278   0.222
+  42 S b   1.380   0.187   1.278   0.222
+  43 Q c   1.380   0.187   1.278   0.222
+  44 Y d   1.380   0.187   1.278   0.222
+  45 Q e   1.380   0.187   1.278   0.222
+  46 A f   1.380   0.187   1.278   0.222
+  47 M g   1.380   0.187   1.278   0.222
+  48 A a   1.380   0.187   1.278   0.222
+  49 Q b   1.380   0.187   1.278   0.222
+  50 K c   1.380   0.187   1.278   0.222
+  51 L d   1.380   0.187   1.278   0.222
+  52 K e   1.380   0.187   1.278   0.222
+  53 A f   1.380   0.187   1.278   0.222
+  54 I g   1.380   0.187   1.278   0.222
+  55 A a   1.380   0.187   1.278   0.222
+  56 N b   1.380   0.187   1.278   0.222
+  57 Q c   1.380   0.187   1.278   0.222
+  58 L d   1.380   0.187   1.278   0.222
+  59 K e   1.380   0.187   1.278   0.222
+  60 K f   1.380   0.187   1.278   0.222
+  61 G g   1.380   0.187   1.278   0.222
+  62 S e   1.336   0.092   0.929   0.365
+  63 E f   1.336   0.092   0.929   0.365
+  64 T g   1.336   0.092   0.929   0.365
+  65 C g   0.948   0.000   0.012   4.365
+  66 R g   0.858   0.000   0.003   4.762
diff --git a/test/ferritin.PCoils b/test/ferritin.PCoils
new file mode 100644
index 0000000..2df27e5
--- /dev/null
+++ b/test/ferritin.PCoils
@@ -0,0 +1,66 @@
+   1 x a   0.656   0.000   0.000   2.969
+   2 x a   0.820   0.000   0.001   4.678
+   3 x b   0.820   0.000   0.001   4.678
+   4 x a   1.090   0.001   0.080   2.612
+   5 x b   1.090   0.001   0.080   2.612
+   6 x c   1.090   0.001   0.080   2.612
+   7 x a   1.255   0.023   0.469   0.814
+   8 x b   1.255   0.023   0.469   0.814
+   9 x a   1.525   0.779   2.806   0.032
+  10 x b   1.525   0.779   2.806   0.032
+  11 x c   1.525   0.779   2.806   0.032
+  12 x d   1.525   0.779   2.806   0.032
+  13 x e   1.525   0.779   2.806   0.032
+  14 x f   1.525   0.779   2.806   0.032
+  15 x g   1.525   0.779   2.806   0.032
+  16 x a   1.525   0.779   2.806   0.032
+  17 x b   1.525   0.779   2.806   0.032
+  18 x c   1.525   0.779   2.806   0.032
+  19 x d   1.525   0.779   2.806   0.032
+  20 x e   1.525   0.779   2.806   0.032
+  21 x f   1.525   0.779   2.806   0.032
+  22 x g   1.525   0.779   2.806   0.032
+  23 x a   1.525   0.779   2.806   0.032
+  24 x b   1.525   0.779   2.806   0.032
+  25 x c   1.525   0.779   2.806   0.032
+  26 x d   1.525   0.779   2.806   0.032
+  27 x e   1.525   0.779   2.806   0.032
+  28 x f   1.525   0.779   2.806   0.032
+  29 x g   1.525   0.779   2.806   0.032
+  30 x d   1.388   0.212   1.351   0.201
+  31 x e   1.388   0.212   1.351   0.201
+  32 x f   1.388   0.212   1.351   0.201
+  33 x g   1.388   0.212   1.351   0.201
+  34 x a   1.533   0.806   2.901   0.028
+  35 x b   1.533   0.806   2.901   0.028
+  36 x c   1.533   0.806   2.901   0.028
+  37 x d   1.533   0.806   2.901   0.028
+  38 x e   1.533   0.806   2.901   0.028
+  39 x f   1.533   0.806   2.901   0.028
+  40 x g   1.533   0.806   2.901   0.028
+  41 x a   1.533   0.806   2.901   0.028
+  42 x b   1.533   0.806   2.901   0.028
+  43 x c   1.533   0.806   2.901   0.028
+  44 x d   1.533   0.806   2.901   0.028
+  45 x e   1.533   0.806   2.901   0.028
+  46 x f   1.533   0.806   2.901   0.028
+  47 x g   1.533   0.806   2.901   0.028
+  48 x a   1.533   0.806   2.901   0.028
+  49 x b   1.533   0.806   2.901   0.028
+  50 x c   1.533   0.806   2.901   0.028
+  51 x d   1.533   0.806   2.901   0.028
+  52 x e   1.533   0.806   2.901   0.028
+  53 x f   1.533   0.806   2.901   0.028
+  54 x g   1.533   0.806   2.901   0.028
+  55 x e   1.516   0.751   2.711   0.036
+  56 x f   1.516   0.751   2.711   0.036
+  57 x g   1.516   0.751   2.711   0.036
+  58 x a   1.516   0.751   2.711   0.036
+  59 x b   1.516   0.751   2.711   0.036
+  60 x c   1.516   0.751   2.711   0.036
+  61 x d   1.516   0.751   2.711   0.036
+  62 x e   1.516   0.751   2.711   0.036
+  63 x f   1.516   0.751   2.711   0.036
+  64 x g   1.516   0.751   2.711   0.036
+  65 x g   1.092   0.001   0.082   2.585
+  66 x g   0.934   0.000   0.009   4.473
diff --git a/test/ferritin.PSCoils b/test/ferritin.PSCoils
new file mode 100644
index 0000000..d36eaf1
--- /dev/null
+++ b/test/ferritin.PSCoils
@@ -0,0 +1,66 @@
+   1 C a   0.610   0.000   0.000   2.347
+   2 M a   0.852   0.000   0.003   4.758
+   3 S b   0.852   0.000   0.003   4.758
+   4 P a   1.137   0.003   0.140   1.996
+   5 D b   1.137   0.003   0.140   1.996
+   6 Q c   1.137   0.003   0.140   1.996
+   7 W a   1.217   0.012   0.328   1.122
+   8 D b   1.217   0.012   0.328   1.122
+   9 K a   1.423   0.341   1.686   0.130
+  10 E b   1.423   0.341   1.686   0.130
+  11 A c   1.423   0.341   1.686   0.130
+  12 A d   1.423   0.341   1.686   0.130
+  13 Q e   1.423   0.341   1.686   0.130
+  14 Y f   1.423   0.341   1.686   0.130
+  15 D g   1.423   0.341   1.686   0.130
+  16 A a   1.423   0.341   1.686   0.130
+  17 H b   1.423   0.341   1.686   0.130
+  18 A c   1.423   0.341   1.686   0.130
+  19 Q d   1.423   0.341   1.686   0.130
+  20 E e   1.423   0.341   1.686   0.130
+  21 F f   1.423   0.341   1.686   0.130
+  22 E g   1.423   0.341   1.686   0.130
+  23 K a   1.423   0.341   1.686   0.130
+  24 K b   1.423   0.341   1.686   0.130
+  25 S c   1.423   0.341   1.686   0.130
+  26 H d   1.423   0.341   1.686   0.130
+  27 R e   1.423   0.341   1.686   0.130
+  28 N f   1.423   0.341   1.686   0.130
+  29 N g   1.423   0.341   1.686   0.130
+  30 G d   1.272   0.031   0.548   0.696
+  31 T e   1.272   0.031   0.548   0.696
+  32 P f   1.272   0.031   0.548   0.696
+  33 E g   1.272   0.031   0.548   0.696
+  34 A a   1.488   0.637   2.387   0.054
+  35 D b   1.488   0.637   2.387   0.054
+  36 Q c   1.488   0.637   2.387   0.054
+  37 Y d   1.488   0.637   2.387   0.054
+  38 R e   1.488   0.637   2.387   0.054
+  39 H f   1.488   0.637   2.387   0.054
+  40 M g   1.488   0.637   2.387   0.054
+  41 A a   1.488   0.637   2.387   0.054
+  42 S b   1.488   0.637   2.387   0.054
+  43 Q c   1.488   0.637   2.387   0.054
+  44 Y d   1.488   0.637   2.387   0.054
+  45 Q e   1.488   0.637   2.387   0.054
+  46 A f   1.488   0.637   2.387   0.054
+  47 M g   1.488   0.637   2.387   0.054
+  48 A a   1.488   0.637   2.387   0.054
+  49 Q b   1.488   0.637   2.387   0.054
+  50 K c   1.488   0.637   2.387   0.054
+  51 L d   1.488   0.637   2.387   0.054
+  52 K e   1.488   0.637   2.387   0.054
+  53 A f   1.488   0.637   2.387   0.054
+  54 I g   1.488   0.637   2.387   0.054
+  55 A e   1.477   0.588   2.262   0.064
+  56 N f   1.477   0.588   2.262   0.064
+  57 Q g   1.477   0.588   2.262   0.064
+  58 L a   1.477   0.588   2.262   0.064
+  59 K b   1.477   0.588   2.262   0.064
+  60 K c   1.477   0.588   2.262   0.064
+  61 G d   1.477   0.588   2.262   0.064
+  62 S e   1.477   0.588   2.262   0.064
+  63 E f   1.477   0.588   2.262   0.064
+  64 T g   1.477   0.588   2.262   0.064
+  65 C g   1.060   0.001   0.055   3.027
+  66 R g   0.945   0.000   0.011   4.387
diff --git a/test/ferritin.PredCoils b/test/ferritin.PredCoils
new file mode 100644
index 0000000..5cc818e
--- /dev/null
+++ b/test/ferritin.PredCoils
@@ -0,0 +1,66 @@
+   1 C a   0.480   0.000   0.000   0.927
+   2 M a   0.804   0.000   0.001   4.596
+   3 S b   0.804   0.000   0.001   4.596
+   4 P a   1.126   0.002   0.123   2.134
+   5 D b   1.126   0.002   0.123   2.134
+   6 Q c   1.126   0.002   0.123   2.134
+   7 W d   1.126   0.002   0.123   2.134
+   8 D e   1.126   0.002   0.123   2.134
+   9 K a   1.233   0.015   0.384   0.981
+  10 E b   1.233   0.015   0.384   0.981
+  11 A c   1.233   0.015   0.384   0.981
+  12 A d   1.233   0.015   0.384   0.981
+  13 Q e   1.233   0.015   0.384   0.981
+  14 Y f   1.233   0.015   0.384   0.981
+  15 D g   1.233   0.015   0.384   0.981
+  16 A a   1.233   0.015   0.384   0.981
+  17 H b   1.233   0.015   0.384   0.981
+  18 A c   1.233   0.015   0.384   0.981
+  19 Q d   1.233   0.015   0.384   0.981
+  20 E e   1.233   0.015   0.384   0.981
+  21 F f   1.233   0.015   0.384   0.981
+  22 E g   1.233   0.015   0.384   0.981
+  23 K a   1.233   0.015   0.384   0.981
+  24 K b   1.233   0.015   0.384   0.981
+  25 S c   1.233   0.015   0.384   0.981
+  26 H d   1.233   0.015   0.384   0.981
+  27 R e   1.233   0.015   0.384   0.981
+  28 N f   1.233   0.015   0.384   0.981
+  29 N g   1.233   0.015   0.384   0.981
+  30 G f   1.098   0.001   0.088   2.507
+  31 T g   1.098   0.001   0.088   2.507
+  32 P e   0.932   0.000   0.009   4.488
+  33 E a   0.934   0.000   0.009   4.475
+  34 A a   1.352   0.121   1.049   0.306
+  35 D b   1.352   0.121   1.049   0.306
+  36 Q c   1.352   0.121   1.049   0.306
+  37 Y d   1.352   0.121   1.049   0.306
+  38 R e   1.352   0.121   1.049   0.306
+  39 H f   1.352   0.121   1.049   0.306
+  40 M g   1.352   0.121   1.049   0.306
+  41 A a   1.380   0.187   1.278   0.222
+  42 S b   1.380   0.187   1.278   0.222
+  43 Q c   1.380   0.187   1.278   0.222
+  44 Y d   1.380   0.187   1.278   0.222
+  45 Q e   1.380   0.187   1.278   0.222
+  46 A f   1.380   0.187   1.278   0.222
+  47 M g   1.380   0.187   1.278   0.222
+  48 A a   1.380   0.187   1.278   0.222
+  49 Q b   1.380   0.187   1.278   0.222
+  50 K c   1.380   0.187   1.278   0.222
+  51 L d   1.380   0.187   1.278   0.222
+  52 K e   1.380   0.187   1.278   0.222
+  53 A f   1.380   0.187   1.278   0.222
+  54 I g   1.380   0.187   1.278   0.222
+  55 A a   1.380   0.187   1.278   0.222
+  56 N b   1.380   0.187   1.278   0.222
+  57 Q c   1.380   0.187   1.278   0.222
+  58 L d   1.380   0.187   1.278   0.222
+  59 K e   1.380   0.187   1.278   0.222
+  60 K f   1.380   0.187   1.278   0.222
+  61 G g   1.380   0.187   1.278   0.222
+  62 S e   1.336   0.092   0.929   0.365
+  63 E f   1.336   0.092   0.929   0.365
+  64 T g   1.336   0.092   0.929   0.365
+  65 C g   0.948   0.000   0.012   4.365
+  66 R g   0.858   0.000   0.003   4.762
diff --git a/test/ferritin.PredPCoils b/test/ferritin.PredPCoils
new file mode 100644
index 0000000..2df27e5
--- /dev/null
+++ b/test/ferritin.PredPCoils
@@ -0,0 +1,66 @@
+   1 x a   0.656   0.000   0.000   2.969
+   2 x a   0.820   0.000   0.001   4.678
+   3 x b   0.820   0.000   0.001   4.678
+   4 x a   1.090   0.001   0.080   2.612
+   5 x b   1.090   0.001   0.080   2.612
+   6 x c   1.090   0.001   0.080   2.612
+   7 x a   1.255   0.023   0.469   0.814
+   8 x b   1.255   0.023   0.469   0.814
+   9 x a   1.525   0.779   2.806   0.032
+  10 x b   1.525   0.779   2.806   0.032
+  11 x c   1.525   0.779   2.806   0.032
+  12 x d   1.525   0.779   2.806   0.032
+  13 x e   1.525   0.779   2.806   0.032
+  14 x f   1.525   0.779   2.806   0.032
+  15 x g   1.525   0.779   2.806   0.032
+  16 x a   1.525   0.779   2.806   0.032
+  17 x b   1.525   0.779   2.806   0.032
+  18 x c   1.525   0.779   2.806   0.032
+  19 x d   1.525   0.779   2.806   0.032
+  20 x e   1.525   0.779   2.806   0.032
+  21 x f   1.525   0.779   2.806   0.032
+  22 x g   1.525   0.779   2.806   0.032
+  23 x a   1.525   0.779   2.806   0.032
+  24 x b   1.525   0.779   2.806   0.032
+  25 x c   1.525   0.779   2.806   0.032
+  26 x d   1.525   0.779   2.806   0.032
+  27 x e   1.525   0.779   2.806   0.032
+  28 x f   1.525   0.779   2.806   0.032
+  29 x g   1.525   0.779   2.806   0.032
+  30 x d   1.388   0.212   1.351   0.201
+  31 x e   1.388   0.212   1.351   0.201
+  32 x f   1.388   0.212   1.351   0.201
+  33 x g   1.388   0.212   1.351   0.201
+  34 x a   1.533   0.806   2.901   0.028
+  35 x b   1.533   0.806   2.901   0.028
+  36 x c   1.533   0.806   2.901   0.028
+  37 x d   1.533   0.806   2.901   0.028
+  38 x e   1.533   0.806   2.901   0.028
+  39 x f   1.533   0.806   2.901   0.028
+  40 x g   1.533   0.806   2.901   0.028
+  41 x a   1.533   0.806   2.901   0.028
+  42 x b   1.533   0.806   2.901   0.028
+  43 x c   1.533   0.806   2.901   0.028
+  44 x d   1.533   0.806   2.901   0.028
+  45 x e   1.533   0.806   2.901   0.028
+  46 x f   1.533   0.806   2.901   0.028
+  47 x g   1.533   0.806   2.901   0.028
+  48 x a   1.533   0.806   2.901   0.028
+  49 x b   1.533   0.806   2.901   0.028
+  50 x c   1.533   0.806   2.901   0.028
+  51 x d   1.533   0.806   2.901   0.028
+  52 x e   1.533   0.806   2.901   0.028
+  53 x f   1.533   0.806   2.901   0.028
+  54 x g   1.533   0.806   2.901   0.028
+  55 x e   1.516   0.751   2.711   0.036
+  56 x f   1.516   0.751   2.711   0.036
+  57 x g   1.516   0.751   2.711   0.036
+  58 x a   1.516   0.751   2.711   0.036
+  59 x b   1.516   0.751   2.711   0.036
+  60 x c   1.516   0.751   2.711   0.036
+  61 x d   1.516   0.751   2.711   0.036
+  62 x e   1.516   0.751   2.711   0.036
+  63 x f   1.516   0.751   2.711   0.036
+  64 x g   1.516   0.751   2.711   0.036
+  65 x g   1.092   0.001   0.082   2.585
+  66 x g   0.934   0.000   0.009   4.473
diff --git a/test/ferritin.PredPSCoils b/test/ferritin.PredPSCoils
new file mode 100644
index 0000000..d36eaf1
--- /dev/null
+++ b/test/ferritin.PredPSCoils
@@ -0,0 +1,66 @@
+   1 C a   0.610   0.000   0.000   2.347
+   2 M a   0.852   0.000   0.003   4.758
+   3 S b   0.852   0.000   0.003   4.758
+   4 P a   1.137   0.003   0.140   1.996
+   5 D b   1.137   0.003   0.140   1.996
+   6 Q c   1.137   0.003   0.140   1.996
+   7 W a   1.217   0.012   0.328   1.122
+   8 D b   1.217   0.012   0.328   1.122
+   9 K a   1.423   0.341   1.686   0.130
+  10 E b   1.423   0.341   1.686   0.130
+  11 A c   1.423   0.341   1.686   0.130
+  12 A d   1.423   0.341   1.686   0.130
+  13 Q e   1.423   0.341   1.686   0.130
+  14 Y f   1.423   0.341   1.686   0.130
+  15 D g   1.423   0.341   1.686   0.130
+  16 A a   1.423   0.341   1.686   0.130
+  17 H b   1.423   0.341   1.686   0.130
+  18 A c   1.423   0.341   1.686   0.130
+  19 Q d   1.423   0.341   1.686   0.130
+  20 E e   1.423   0.341   1.686   0.130
+  21 F f   1.423   0.341   1.686   0.130
+  22 E g   1.423   0.341   1.686   0.130
+  23 K a   1.423   0.341   1.686   0.130
+  24 K b   1.423   0.341   1.686   0.130
+  25 S c   1.423   0.341   1.686   0.130
+  26 H d   1.423   0.341   1.686   0.130
+  27 R e   1.423   0.341   1.686   0.130
+  28 N f   1.423   0.341   1.686   0.130
+  29 N g   1.423   0.341   1.686   0.130
+  30 G d   1.272   0.031   0.548   0.696
+  31 T e   1.272   0.031   0.548   0.696
+  32 P f   1.272   0.031   0.548   0.696
+  33 E g   1.272   0.031   0.548   0.696
+  34 A a   1.488   0.637   2.387   0.054
+  35 D b   1.488   0.637   2.387   0.054
+  36 Q c   1.488   0.637   2.387   0.054
+  37 Y d   1.488   0.637   2.387   0.054
+  38 R e   1.488   0.637   2.387   0.054
+  39 H f   1.488   0.637   2.387   0.054
+  40 M g   1.488   0.637   2.387   0.054
+  41 A a   1.488   0.637   2.387   0.054
+  42 S b   1.488   0.637   2.387   0.054
+  43 Q c   1.488   0.637   2.387   0.054
+  44 Y d   1.488   0.637   2.387   0.054
+  45 Q e   1.488   0.637   2.387   0.054
+  46 A f   1.488   0.637   2.387   0.054
+  47 M g   1.488   0.637   2.387   0.054
+  48 A a   1.488   0.637   2.387   0.054
+  49 Q b   1.488   0.637   2.387   0.054
+  50 K c   1.488   0.637   2.387   0.054
+  51 L d   1.488   0.637   2.387   0.054
+  52 K e   1.488   0.637   2.387   0.054
+  53 A f   1.488   0.637   2.387   0.054
+  54 I g   1.488   0.637   2.387   0.054
+  55 A e   1.477   0.588   2.262   0.064
+  56 N f   1.477   0.588   2.262   0.064
+  57 Q g   1.477   0.588   2.262   0.064
+  58 L a   1.477   0.588   2.262   0.064
+  59 K b   1.477   0.588   2.262   0.064
+  60 K c   1.477   0.588   2.262   0.064
+  61 G d   1.477   0.588   2.262   0.064
+  62 S e   1.477   0.588   2.262   0.064
+  63 E f   1.477   0.588   2.262   0.064
+  64 T g   1.477   0.588   2.262   0.064
+  65 C g   1.060   0.001   0.055   3.027
+  66 R g   0.945   0.000   0.011   4.387
diff --git a/test/ferritin.cc b/test/ferritin.cc
new file mode 100644
index 0000000..af5f57d
--- /dev/null
+++ b/test/ferritin.cc
@@ -0,0 +1,67 @@
+ Pos A Hep Score   Prob    Gcc     Gg    Pred (Loop=L Coiledcoil=C)
+   1 C a   0.610   0.000   0.000   2.347 L
+   2 M a   0.852   0.000   0.003   4.758 L
+   3 S b   0.852   0.000   0.003   4.758 L
+   4 P a   1.137   0.003   0.140   1.996 L
+   5 D b   1.137   0.003   0.140   1.996 L
+   6 Q c   1.137   0.003   0.140   1.996 L
+   7 W a   1.217   0.012   0.328   1.122 L
+   8 D b   1.217   0.012   0.328   1.122 L
+   9 K a   1.423   0.341   1.686   0.130 L
+  10 E b   1.423   0.341   1.686   0.130 L
+  11 A c   1.423   0.341   1.686   0.130 L
+  12 A d   1.423   0.341   1.686   0.130 L
+  13 Q e   1.423   0.341   1.686   0.130 L
+  14 Y f   1.423   0.341   1.686   0.130 L
+  15 D g   1.423   0.341   1.686   0.130 L
+  16 A a   1.423   0.341   1.686   0.130 L
+  17 H b   1.423   0.341   1.686   0.130 L
+  18 A c   1.423   0.341   1.686   0.130 L
+  19 Q d   1.423   0.341   1.686   0.130 L
+  20 E e   1.423   0.341   1.686   0.130 L
+  21 F f   1.423   0.341   1.686   0.130 L
+  22 E g   1.423   0.341   1.686   0.130 L
+  23 K a   1.423   0.341   1.686   0.130 L
+  24 K b   1.423   0.341   1.686   0.130 L
+  25 S c   1.423   0.341   1.686   0.130 L
+  26 H d   1.423   0.341   1.686   0.130 L
+  27 R e   1.423   0.341   1.686   0.130 L
+  28 N f   1.423   0.341   1.686   0.130 L
+  29 N g   1.423   0.341   1.686   0.130 L
+  30 G d   1.272   0.031   0.548   0.696 L
+  31 T e   1.272   0.031   0.548   0.696 L
+  32 P f   1.272   0.031   0.548   0.696 L
+  33 E g   1.272   0.031   0.548   0.696 L
+  34 A a   1.488   0.637   2.387   0.054 C
+  35 D b   1.488   0.637   2.387   0.054 C
+  36 Q c   1.488   0.637   2.387   0.054 C
+  37 Y d   1.488   0.637   2.387   0.054 C
+  38 R e   1.488   0.637   2.387   0.054 C
+  39 H f   1.488   0.637   2.387   0.054 C
+  40 M g   1.488   0.637   2.387   0.054 C
+  41 A a   1.488   0.637   2.387   0.054 C
+  42 S b   1.488   0.637   2.387   0.054 C
+  43 Q c   1.488   0.637   2.387   0.054 C
+  44 Y d   1.488   0.637   2.387   0.054 C
+  45 Q e   1.488   0.637   2.387   0.054 C
+  46 A f   1.488   0.637   2.387   0.054 C
+  47 M g   1.488   0.637   2.387   0.054 C
+  48 A a   1.488   0.637   2.387   0.054 C
+  49 Q b   1.488   0.637   2.387   0.054 C
+  50 K c   1.488   0.637   2.387   0.054 C
+  51 L d   1.488   0.637   2.387   0.054 C
+  52 K e   1.488   0.637   2.387   0.054 C
+  53 A f   1.488   0.637   2.387   0.054 C
+  54 I g   1.488   0.637   2.387   0.054 C
+  55 A e   1.477   0.588   2.262   0.064 C
+  56 N f   1.477   0.588   2.262   0.064 C
+  57 Q g   1.477   0.588   2.262   0.064 C
+  58 L a   1.477   0.588   2.262   0.064 C
+  59 K b   1.477   0.588   2.262   0.064 C
+  60 K c   1.477   0.588   2.262   0.064 C
+  61 G d   1.477   0.588   2.262   0.064 C
+  62 S e   1.477   0.588   2.262   0.064 C
+  63 E f   1.477   0.588   2.262   0.064 C
+  64 T g   1.477   0.588   2.262   0.064 C
+  65 C g   1.060   0.001   0.055   3.027 L
+  66 R g   0.945   0.000   0.011   4.387 L
diff --git a/test/ferritin.fasta b/test/ferritin.fasta
new file mode 100644
index 0000000..771fc55
--- /dev/null
+++ b/test/ferritin.fasta
@@ -0,0 +1,2 @@
+>  ferritin
+CMSPDQWDKEAAQYDAHAQEFEKKSHRNNGTPEADQYRHMASQYQAMAQKLKAIANQLKKGSETCR
diff --git a/test/ferritin.prof b/test/ferritin.prof
new file mode 100644
index 0000000..15ae009
--- /dev/null
+++ b/test/ferritin.prof
@@ -0,0 +1,68 @@
+# The order of the profile is listed after the keyword alphabet= in capital letter
+# ALPHABET=V L I M F W Y G A P S T C H R K Q E N D
+     0   0   0   0   0   0   0   0   0   0   0   0 100   0   0   0   0   0   0   0   
+     0   0   0  33   0   0   0   0   0   0   0   0   0   0   0   0  67   0   0   0   
+     0   0   0   0  67   0   0   0   0   0  33   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0 100   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  25   0  75   
+     0   0   0   0   0   0   0   0  25   0   0   0   0   0   0   0  25   0   0  50   
+     0   0   0   0   0  50  50   0   0   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0  50   0   0   0   0   0   0   0   0   0  50   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 100   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 100   0   0   
+     0   0   0   0   0   0   0   0  25   0   0   0   0  25   0   0   0   0   0  50   
+     0   0   0   0   0   0   0   0 100   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  40   0  40  20   0   0   
+     0   0  20   0   0   0  20  40   0   0   0   0   0   0   0   0  20   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  40   0   0   0   0  60   
+     0  20   0   0   0   0   0   0  20   0   0   0   0   0  20  40   0   0   0   0   
+     0   0   0   0   0   0   0   0  40   0   0   0   0  20   0   0  40   0   0   0   
+    20  20   0   0   0   0   0   0  40   0  20   0   0   0   0   0   0   0   0   0   
+     0   0   0   0  33   0   0   0   0   0   0   0   0   0  17   0  33  17   0   0   
+    17   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  17  67   0   0   
+     0   0  40   0  60   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0  20   0   0   0   0   0   0  80   0   0   
+     0  33   0   0   0   0   0   0   0   0   0   0   0   0  17  33   0  17   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  83   0  17   0   0   
+     0   0   0   0   0   0   0   0   0   0  17   0   0   0  17  17   0  17   0  33   
+     0  33   0   0   0   0   0   0   0   0   0   0   0  50   0   0   0  17   0   0   
+     0  33   0   0   0   0   0   0   0   0   0   0   0   0  17  50   0   0   0   0   
+     0  17   0   0   0   0   0   0   0   0   0  33   0   0  17   0   0  17  17   0   
+     0   0   0   0   0   0   0   0   0   0  17   0   0   0  33   0   0  33  17   0   
+     0   0   0   0   0   0   0  33   0   0   0   0   0   0   0  17   0  33   0  17   
+     0  33  17   0   0   0   0   0  17   0   0  17   0   0   0   0   0   0   0  17   
+    17   0   0   0   0   0   0   0   0  67   0   0   0   0   0  17   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  17   0  17  67   0   0   
+     0  50   0   0   0   0   0   0  50   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  17   0   0  17   0  67   
+     0   0   0   0   0   0   0   0  17   0  17  17   0   0   0   0  33  17   0   0   
+     0   0   0   0  67   0  33   0   0   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0  33   0   0   0   0   0  33  17   0  17   0   0   
+     0   0   0   0   0   0   0   0  17   0   0   0   0  17   0  50   0  17   0   0   
+     0   0   0  17   0   0   0   0   0   0   0   0   0   0   0   0  50  33   0   0   
+     0   0   0   0   0   0   0   0  83   0   0   0   0  17   0   0   0   0   0   0   
+     0   0   0   0   0   0   0  20   0   0  80   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  20  40  40   0   0   
+     0  20   0   0   0   0  40   0   0   0   0   0   0   0   0   0  40   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  20   0  40  40   0   0   
+     0   0   0   0   0   0   0  20  40   0   0  40   0   0   0   0   0   0   0   0   
+     0  60   0  20   0   0   0   0   0   0   0   0   0   0   0   0   0  20   0   0   
+    20  20   0   0   0   0   0   0  60   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0  20   0   0   0   0   0  40  20   0  20   
+     0  40   0   0   0   0   0   0   0   0   0   0   0   0   0  60   0   0   0   0   
+     0  40   0  20   0   0   0   0   0   0   0   0   0   0  40   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  20  40  20   0   0  20   
+     0   0   0   0   0   0   0   0  40   0   0   0   0   0   0   0   0  40   0  20   
+     0  40  60   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0  20   0   0   0   0   0   0  20   0  40   0  20   
+     0  20   0   0   0   0   0   0   0   0   0   0   0   0  20   0  40   0  20   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0  40   0  40  20   0   0   
+     0  80  20   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0  20   0   0   0   0  80   0   0   0   0   
+     0   0   0   0   0   0   0  20   0   0   0   0   0   0   0  40   0   0   0  40   
+     0   0   0  20   0   0   0  20   0   0   0   0   0   0   0   0   0   0  20  40   
+    20   0   0   0   0   0   0   0  40   0  20  20   0   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  20  80   0   0   
+     0  50   0   0   0   0   0   0   0   0   0  50   0   0   0   0   0   0   0   0   
+     0  50   0   0   0   0   0   0   0   0   0   0  50   0   0   0   0   0   0   0   
+     0   0   0   0   0   0   0   0   0   0   0   0   0   0 100   0   0   0   0   0   
diff --git a/test/test.sh b/test/test.sh
new file mode 100755
index 0000000..4bc43bd
--- /dev/null
+++ b/test/test.sh
@@ -0,0 +1,11 @@
+
+
+# test Coils
+echo "test Coils"
+psCoils.py -f ./ferritin.fasta -l F > ./ferritin.Coils
+# test PCoils
+echo "test PSCoils"
+psCoils.py -p ./ferritin.prof -l F > ./ferritin.PCoils
+# test PSCoils
+echo "test PSCoils"
+psCoils.py -p ./ferritin.prof -f ./ferritin.fasta -l F > ./ferritin.PSCoils

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pscoils.git



More information about the debian-med-commit mailing list