00001 #------------------------------------------------------------------------------ 00002 # This file is part of the OpenStructure project <www.openstructure.org> 00003 # 00004 # Copyright (C) 2008-2011 by the OpenStructure authors 00005 # 00006 # This library is free software; you can redistribute it and/or modify it under 00007 # the terms of the GNU Lesser General Public License as published by the Free 00008 # Software Foundation; either version 3.0 of the License, or (at your option) 00009 # any later version. 00010 # This library is distributed in the hope that it will be useful, but WITHOUT 00011 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00013 # details. 00014 # 00015 # You should have received a copy of the GNU Lesser General Public License 00016 # along with this library; if not, write to the Free Software Foundation, Inc., 00017 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 #------------------------------------------------------------------------------ 00019 from _ost_conop import * 00020 00021 # The 20 standard amino acids in no particular order 00022 STANDARD_AMINOACIDS=( 00023 'ALA', 'ARG', 'ASN', 00024 'ASP', 'GLN', 'GLU', 00025 'LYS', 'SER', 'CYS', 00026 'MET', 'TRP', 'TYR', 00027 'THR', 'VAL', 'ILE', 00028 'LEU', 'GLY', 'PRO', 00029 'HIS', 'PHE', 00030 ) 00031 00032 def SetDefaultLib(compound_lib): 00033 ''' 00034 Set the default compound library. The compound library is used by various 00035 functions of the framework that requires knowledge of naming and 00036 connectivity of residues. 00037 ''' 00038 conop_inst=Conopology.Instance() 00039 conop_inst.SetDefaultLib(compound_lib) 00040 00041 def GetDefaultLib(): 00042 conop_inst=Conopology.Instance() 00043 return conop_inst.GetDefaultLib() 00044