Ghost/make_figs.py
def read_confchange(self,tgs):
        """Read the files with information on the conformational change"""
        import os
        self.conf_change={}
        for tg in tgs:
            self.conf_change[tg]={}
            for atom in ['N','H']:
                sp=tg.split(':')
                filename='%3s%d%1s_confchange.csv' %(sp[2],int(sp[1]),atom)
                filename=os.path.join('all_restraints','confchange',filename)
                if os.path.isfile(filename):
                    print 'Reading conformational change data from %s' %filename
                    data=self.read_csv(filename)
                    self.conf_change[tg][atom]=data.copy()
        return
Read the files with information on the conformational change
Read the files with information on the conformational change
Read the files with information on the conformational change
def read_confchange(self,tgs):
        import os
        self.conf_change={}
        for tg in tgs:
            self.conf_change[tg]={}
            for atom in ['N','H']:
                sp=tg.split(':')
                filename='%3s%d%1s_confchange.csv' %(sp[2],int(sp[1]),atom)
                filename=os.path.join('all_restraints','confchange',filename)
                if os.path.isfile(filename):
                    print 'Reading conformational change data from %s' %filename
                    data=self.read_csv(filename)
                    self.conf_change[tg][atom]=data.copy()
        return
def read_confchange ( self , tgs ) : import os self . conf_change = { } for tg in tgs : self . conf_change [ tg ] = { } for atom in [ 'N' , 'H' ] : sp = tg . split ( ':' ) filename = '%3s%d%1s_confchange.csv' % ( sp [ 2 ] , int ( sp [ 1 ] ) , atom ) filename = os . path . join ( 'all_restraints' , 'confchange' , filename ) if os . path . isfile ( filename ) : print 'Reading conformational change data from %s' % filename data = self . read_csv ( filename ) self . conf_change [ tg ] [ atom ] = data . copy ( ) return
Read the files with information on the conformational change
Read the files with information on the conformational change
"""Read the files with information on the conformational change"""
self
tgs