Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def display_entry(uni, uni_df, pdb_df):
  2. """Given a uniID, display the composite pdb, the composite uniprot,
  3. and the missing regions."""
  4. uni_df = uni_df[uni_df.SP_PRIMARY.isin([uni])]
  5. pdb_df = pdb_df[pdb_df.SP_PRIMARY.isin([uni])]
  6. if len(uni_df.index) < 1:
  7. print("UniProt ID is not in this data set.")
  8. else:
  9. print(" {0}".format(uni_df.iloc[0]['STRUCT']))
  10. print("\n")
  11. for i, row in pdb_df.iterrows():
  12. print("{0}\t{1}".format(row.PDB_CHAIN, row.SEC_STRUCT))
  13. print("\n")
  14. print(uni_df.iloc[0]['MISSING'])
  15. return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement