Skip to content

Commit

Permalink
Fixed case where no columns are inputted
Browse files Browse the repository at this point in the history
  • Loading branch information
iquasere committed Sep 26, 2023
1 parent 02d7a55 commit 6b05433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upimapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ def uniprot_information_workflow(ids, output, max_iter=5, columns=None, step=100
ids_done, ids_missing, result = check_ids_already_done(output, ids)
tries, last_ids_missing, ids_unmapped_output = 0, None, f"{'/'.join(output.split('/')[:-1])}/ids_unmapped.txt"
new_cols, tax_cols, taxids_cols, all_tax_cols = select_columns(columns)
columns = new_cols if columns is None else columns
uniprotinfo = pd.DataFrame()
while len(ids_missing) > 0 and tries < max_iter and ids_missing != last_ids_missing:
print(f'Information already gathered for {int(len(ids_done) / 2)} ids. Still missing for {len(ids_missing)}.')
Expand Down

0 comments on commit 6b05433

Please sign in to comment.