Skip to content

Commit

Permalink
"qseqid" to "Entry" for sort column
Browse files Browse the repository at this point in the history
  • Loading branch information
iquasere committed Jan 18, 2023
1 parent 9a46c08 commit a14e90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upimapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ def upimapi():
if full_id:
blast.sseqid = [ide.split('|')[1] if ide not in ['*', ''] else ide for ide in blast.sseqid]
result = pd.merge(blast, result, left_on='sseqid', right_on='Entry')
sort_columns = ['qseqid'] if args.no_annotation else ['qseqid', 'evalue']
sort_columns = ['Entry'] if args.no_annotation else ['qseqid', 'evalue']
result.sort_values(by=sort_columns, ascending=False).to_csv(
f'{args.output}/UPIMAPI_results.tsv', index=False, sep='\t')
else:
Expand Down

0 comments on commit a14e90d

Please sign in to comment.