Skip to content

Commit

Permalink
Fix pdb structure in test 1 and motif position indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
choang committed Jun 28, 2023
1 parent 70e4e7b commit f067576
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gget/gget_elm.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ def get_response_api(seq):


def tsv_to_df(tab_separated_values, sequence_if_fails):
df = pd.DataFrame()
error_str = tab_separated_values.__contains__("Internal Server Error")
if not error_str:
try:
df = pd.read_csv(StringIO(tab_separated_values), sep='\t')
except pd.errors.EmptyDataError:
logging.warning(f"No data in dataframe. Likely due to a 429 too many requests error returning no tab separated values. Please try again")
else:
df = pd.DataFrame()
return df

# Scrapes webpage for information about functional site class, description, pattern probability
Expand Down

0 comments on commit f067576

Please sign in to comment.