Skip to content

Commit

Permalink
Test name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svalkiers committed Aug 3, 2022
1 parent 266980a commit e6ce0f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clustcr/clustering/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def batch_precluster(self, cdr3: pd.Series, name=''):
for index, row in clustered.clusters_df.iterrows():
filename = join(Clustering.BATCH_TMP_DIRECTORY, str(row['cluster']))
with open(filename, 'a') as f:
f.write(f'{row["CDR3"]},{name}\n')
f.write(f'{row["junction_aa"]},{name}\n')

def batch_cluster(self, calc_cluster_matrix=False):
"""
Expand Down
2 changes: 1 addition & 1 deletion test/test_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_batch_clustering_multiprocessing(self):

def test_matrix(self):
vdj = datasets.vdjdb_beta()
max_sequence_size = vdj.str.len().max()
max_sequence_size = vdj.junction_aa.str.len().max()
train = vdj.sample(2000)
times = 3
size_per_time = 3000
Expand Down

0 comments on commit e6ce0f8

Please sign in to comment.