Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def display_entry(uni, uni_df, pdb_df):
- """Given a uniID, display the composite pdb, the composite uniprot,
- and the missing regions."""
- uni_df = uni_df[uni_df.SP_PRIMARY.isin([uni])]
- pdb_df = pdb_df[pdb_df.SP_PRIMARY.isin([uni])]
- if len(uni_df.index) < 1:
- print("UniProt ID is not in this data set.")
- else:
- print(" {0}".format(uni_df.iloc[0]['STRUCT']))
- print("\n")
- for i, row in pdb_df.iterrows():
- print("{0}\t{1}".format(row.PDB_CHAIN, row.SEC_STRUCT))
- print("\n")
- print(uni_df.iloc[0]['MISSING'])
- return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement