Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -374,7 +374,7 @@ def create_groups_subs(closest_matches):
|
|
374 |
|
375 |
return groups
|
376 |
|
377 |
-
def process_data_sub_specie(df, species):
|
378 |
"""Process DNA data for a given species."""
|
379 |
# Filter data for the given species
|
380 |
df_plot = df[df['organism_name'] == species].reset_index(drop=True).copy()
|
@@ -399,7 +399,7 @@ def process_data_sub_specie(df, species):
|
|
399 |
bbbb = np.array(b_list)
|
400 |
print(bbbb)
|
401 |
np.fill_diagonal(bbbb, 10000)
|
402 |
-
median_filter = median *
|
403 |
maxxx = [np.where(bbbb[i] < median_filter)[0] for i in range(len(bbbb))]
|
404 |
|
405 |
# Create groups
|
|
|
374 |
|
375 |
return groups
|
376 |
|
377 |
+
def process_data_sub_specie(df, species, varience):
|
378 |
"""Process DNA data for a given species."""
|
379 |
# Filter data for the given species
|
380 |
df_plot = df[df['organism_name'] == species].reset_index(drop=True).copy()
|
|
|
399 |
bbbb = np.array(b_list)
|
400 |
print(bbbb)
|
401 |
np.fill_diagonal(bbbb, 10000)
|
402 |
+
median_filter = median * varience
|
403 |
maxxx = [np.where(bbbb[i] < median_filter)[0] for i in range(len(bbbb))]
|
404 |
|
405 |
# Create groups
|