Skip to content

Commit

Permalink
Fix parameter setting for manual sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jong-hun-Park committed Feb 15, 2024
1 parent 7e5d6cf commit 78f4d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trviz/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def generate_trplot(self,
if len(sample_ids) != len(tr_sequences):
raise ValueError("The number of sample IDs and the number of sequences are different.")

if rearrangement_method == 'manually':
if sample_order_file is not None or rearrangement_method == 'manually':
rearrangement_method = 'manually'
if sample_order_file is None:
raise ValueError("Please specify the sample order file for manual rearrangement.")
if not os.path.exists(sample_order_file):
Expand Down

0 comments on commit 78f4d98

Please sign in to comment.