Commit da90cbb4 authored by Stephen Anyango's avatar Stephen Anyango

Handle more rstrip with =

parent 9bb30b0e
......@@ -518,8 +518,8 @@ def get_pdb_from_uniprot(accession, mc):
elem['end']['residue_number'] = elem['seq_end']
elem['start']['author_residue_number'] = elem['rnum_start']
elem['end']['author_residue_number'] = elem['rnum_end']
elem['start']['author_insertion_code'] = elem['rins_start'].rstrip()
elem['end']['author_insertion_code'] = elem['rins_end'].rstrip()
elem['start']['author_insertion_code'] = elem['rins_start'].rstrip() if elem['rins_start'] else elem['rins_start']
elem['end']['author_insertion_code'] = elem['rins_end'].rstrip() if elem['rins_end'] else elem['rins_end']
del elem['seq_start']
del elem['seq_end']
......@@ -1156,8 +1156,8 @@ def get_unp(pdbid, mc):
elem['end']['residue_number'] = elem['seq_end']
elem['start']['author_residue_number'] = elem['auth_start']
elem['end']['author_residue_number'] = elem['auth_end']
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip()
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip()
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip() if elem['auth_start_icode'] else elem['auth_start_icode']
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip() if elem['auth_end_icode'] else elem['auth_end_icode']
del elem['seq_start']
del elem['seq_end']
......@@ -1381,8 +1381,8 @@ def get_best_isoforms(pdbid, mc):
elem['end']['residue_number'] = elem['seq_end']
elem['start']['author_residue_number'] = elem['auth_start']
elem['end']['author_residue_number'] = elem['auth_end']
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip()
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip()
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip() if elem['auth_start_icode'] else elem['auth_start_icode']
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip() if elem['auth_end_icode'] else elem['auth_end_icode']
del elem['seq_start']
del elem['seq_end']
......@@ -1575,8 +1575,8 @@ def get_nf90(pdbid, mc):
elem['end']['residue_number'] = elem['seq_end']
elem['start']['author_residue_number'] = elem['auth_start']
elem['end']['author_residue_number'] = elem['auth_end']
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip()
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip()
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip() if elem['auth_start_icode'] else elem['auth_start_icode']
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip() if elem['auth_end_icode'] else elem['auth_end_icode']
del elem['seq_start']
del elem['seq_end']
......@@ -1667,8 +1667,8 @@ def get_nf90_taxonomy(pdbid, mc):
elem['end']['residue_number'] = elem['seq_end']
elem['start']['author_residue_number'] = elem['auth_start']
elem['end']['author_residue_number'] = elem['auth_end']
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip()
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip()
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip() if elem['auth_start_icode'] else elem['auth_start_icode']
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip() if elem['auth_end_icode'] else elem['auth_end_icode']
elem['identifier'] = elem['name']
del elem['seq_start']
......@@ -1754,8 +1754,8 @@ def get_homologene_nf90(pdbid, mc):
elem['end']['residue_number'] = elem['seq_end']
elem['start']['author_residue_number'] = elem['auth_start']
elem['end']['author_residue_number'] = elem['auth_end']
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip()
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip()
elem['start']['author_insertion_code'] = elem['auth_start_icode'].rstrip() if elem['auth_start_icode'] else elem['auth_start_icode']
elem['end']['author_insertion_code'] = elem['auth_end_icode'].rstrip() if elem['auth_end_icode'] else elem['auth_end_icode']
del elem['seq_start']
del elem['seq_end']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment