We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b52374 commit 3bb7571Copy full SHA for 3bb7571
ms2query/database/spectra_merging.py
@@ -5,6 +5,7 @@
5
import numpy as np
6
from matchms import Spectrum
7
from matchms.similarity import CosineGreedy
8
+from tqdm import tqdm
9
10
from ms2query.spectral_processing import cluster_block, get_merged_spectra
11
from ms2query.spectral_processing.merging_utils import METADATA_FIELDS_FROM_FIRST, METADATA_FIELDS_SUM
@@ -193,7 +194,7 @@ def cluster_and_merge_to_sqlite(
193
194
inserted = 0
195
processed = 0
196
- for comp_id in comp_ids:
197
+ for comp_id in tqdm(comp_ids, desc="Merging spectra per compound..."):
198
if skip_if_comp_done:
199
cur.execute("SELECT 1 FROM merged_spectra WHERE comp_id=? LIMIT 1;", (comp_id,))
200
if cur.fetchone():
0 commit comments