Erva Ulusoy commited on
Commit
e359f1f
1 Parent(s): 2fe26d1

column name modifications

Browse files
Files changed (1) hide show
  1. run_domain2go_app.py +2 -2
run_domain2go_app.py CHANGED
@@ -83,7 +83,7 @@ def find_domains(email, sequence, name):
83
  domains_df = pd.DataFrame.from_dict(entries, orient='index').reset_index()
84
  domains_df['protein_name'] = name
85
  domains_df = domains_df[['protein_name', 'index', 'name', 'locations']]
86
- domains_df.columns = ['protein_name', 'accession', 'name', 'locations']
87
  return [result_text, domains_df]
88
 
89
  else:
@@ -110,7 +110,7 @@ def generate_function_predictions(domains_df, mapping_path):
110
  else:
111
  merged_df['protein_name'] = domains_df['protein_name'].iloc[0]
112
  merged_df = merged_df[['protein_name', 'GO', 'locations', 's', 'accession', 'name',]]
113
- merged_df.columns = ['protein_name', 'GO_id', 'domain_locations', 'probability', 'domain_accession', 'domain_name',]
114
 
115
  # save protein function predictions
116
  protein_name = domains_df['protein_name'].iloc[0]
 
83
  domains_df = pd.DataFrame.from_dict(entries, orient='index').reset_index()
84
  domains_df['protein_name'] = name
85
  domains_df = domains_df[['protein_name', 'index', 'name', 'locations']]
86
+ domains_df.columns = ['protein_name', 'domain_accession', 'domain_name', 'domain_locations']
87
  return [result_text, domains_df]
88
 
89
  else:
 
110
  else:
111
  merged_df['protein_name'] = domains_df['protein_name'].iloc[0]
112
  merged_df = merged_df[['protein_name', 'GO', 'locations', 's', 'accession', 'name',]]
113
+ merged_df.columns = ['protein_name', 'GO_ID', 'domain_locations', 'probability', 'domain_accession', 'domain_name',]
114
 
115
  # save protein function predictions
116
  protein_name = domains_df['protein_name'].iloc[0]