Skip to content

Commit

Permalink
moved swan import again
Browse files Browse the repository at this point in the history
  • Loading branch information
fairliereese committed Jul 30, 2024
1 parent b2748b5 commit c20f51e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cerberus/cerberusannotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,10 @@ def add_sg_info(self, df, sg=None):
Returns:
df (pandas DataFrame): DF with SwanGraph t_df info added
"""
import swan_vis as swan

if sg is not None:
import swan_vis as swan

temp = sg.t_df[['gid', 'gname']].copy(deep=True)
df.rename({'gene_id': 'gid'}, axis=1, inplace=True)
temp.rename({'gid':'gene_id'}, axis=1, inplace=True)
Expand Down

0 comments on commit c20f51e

Please sign in to comment.