Skip to content

Commit

Permalink
🪲 Bug fix: peptides similarity support for None df_target
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulFD-creator committed Nov 11, 2024
1 parent ae63d9f commit c12a6c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hestia/similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,12 @@ def _medium_alignment(df_query, df_target, tmp_dir,
dbtype, db_target_file, '-v', '1',
f'{tmp_dir}/db_target'])

subprocess.run(['mmseqs', 'search', f'{tmp_dir}/db_query',
subprocess.run(['mmseqs', 'search', f'{tmp_dir}/db_query',
f'{tmp_dir}/db_target', f'{tmp_dir}/align_db',
f'{tmp_dir}/tmp', '--alignment-mode', '3',
'--seq-id-mode', denominator, '--search-type', '1',
'--prefilter-mode', '2', '-s', '2', '-v', mmseqs_v,
'--prefilter-mode', '2', '-s', '2',
'-v', str(mmseqs_v),
'--threads', str(threads), '--mask', '0',
'--comp-bias-corr', '0',
'-e', '1e7'])
Expand Down Expand Up @@ -741,7 +742,8 @@ def _medium_alignment(df_query, df_target, tmp_dir,
medium_simdf = pd.DataFrame()
if len(small_df_query) > 0:
small_simdf = _small_alignment(
df_query=small_df_query, df_target=df_target, field_name=field_name
df_query=small_df_query, df_target=df_target, field_name=field_name,
denominator=denominator
)
else:
small_simdf = pd.DataFrame()
Expand Down

0 comments on commit c12a6c8

Please sign in to comment.