def PDB_aaindex_feature_Function_RNA(PDB_Shape_Path, aaindex_attribute_dict,row,column): os.chdir(PDB_Shape_Path) shape_Path_listdir = pdb_feature_caclu.PDB_Shape_Read_Path_Process(PDB_Shape_Path) flag_row = row for shape_file_handle in shape_Path_listdir: feature_value = AA_Type_feature_calu(shape_file_handle, aaindex_attribute_dict) excel_write(row, column, feature_value) row = row + 1 while flag_row <row: excel_write(flag_row,column+1,-1) flag_row = flag_row + 1 return row
def PDB_aaindex_feature_Function_DNA(PDB_Shape_Path, aaindex_attribute_dict, column): os.chdir(PDB_Shape_Path) shape_Path_listdir = pdb_feature_caclu.PDB_Shape_Read_Path_Process( PDB_Shape_Path) row = 0 flag_row = 0 for shape_file_handle in shape_Path_listdir: feature_value = AA_Type_feature_calu(shape_file_handle, aaindex_attribute_dict) #第1个peak excel_write(row, column, feature_value[0]) #第2个flat excel_write(row, column + 1, feature_value[1]) #第3个valley excel_write(row, column + 2, feature_value[2]) row = row + 1 while flag_row < row: excel_write(flag_row, column + 3, 1) flag_row = flag_row + 1 return row