Posts

Auto Cross covariance Python

Auto Cross Covariance for converting protein sequence descriptor to single length vector import numpy as np # z1 z2 and z3 descriptor was used to represent the protein sequence # Index j was used for the z-scales (j = 1, 2, 3), # n is the number of amino acids in a sequence, # index i is the amino acid position (i = 1, 2, ...n) # l is the lag (l = 1, 2, ...L). # a short range of lags (L= 1, 2, 3, 4, 5) Z = np.random.rand(3,80) print(Z) #Z = np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]]) n = Z.shape[1] n = n-1 print(n) # Autocovariance column = [] for j in range(0,3): row = [] for l in range(0,5): summ = 0 for i in range(0,n-l): rightsum = (Z[j,i]*Z[j,i+1])/(n-l) summ = summ + rightsum row.append(summ) column.append(row) R = np.array(column) print(R) # Cross Covariance ja = [0,1,2,0,1,2] ka = [1,0,0,2,2,1] column = [] for j,k in zip(ja,ka): row = [] for l in range(0,5): summ = 0 for i in range...

Parker Method for Prediction of surface sites

Image
Parker et al. has produced following hydrophilicity scale derived from High-Performance Liquid Chromatography (HPLC) Peptide Retention Data. Surface Profile: The surface profile for a protein was determined by summing the parameters for each residue of seven-residue segment and assigning this sum to the fourth residue. This procedure was repeated by shifting the segment by one residue from the N-to the C-terminus. A plot of these values against the residue number using either HPLC, accessiblity, bulk hydrophobic character, hydrophobicity, global, pi, or hydropathy parameters (Here only HPLC is used) provided a surface profile. To objectively interpret all of these profiles, Parker et al. has used following arbitary of rules: 1)  The average surface hydrophilicity is defined as the the mean of the profile values for a protein using a particular parameter set. 2) Any residue with a profile value greater than 25% above the average surface hydrophilicity value were defined a...