Spaces:
Sleeping
Sleeping
Upload app_v2.py
Browse files
app_v2.py
CHANGED
@@ -313,7 +313,7 @@ class Scatter(param.Parameterized):
|
|
313 |
legend_offset=(0, 0),
|
314 |
title=f'Reads for {self.sample_id}',
|
315 |
)
|
316 |
-
return hv.Overlay([dynspread(shaded, threshold=0.7)]).collate() * self.bounds.clone()
|
317 |
|
318 |
def get_seq_file(identifier, fasta, seq_preview):
|
319 |
seq_cmd = "{0} -A1 -m1 \"{1}\" {2}".format("zgrep", identifier, fasta)
|
@@ -467,7 +467,7 @@ def make_panel(scatter, fasta):
|
|
467 |
if scatter.n_classes > 1:
|
468 |
#def cell_bg(s):
|
469 |
# return [ f'background-color: {col}' for col in scatter.colors_classes[:scatter.n_classes-1] ]
|
470 |
-
all_cats = ["Unclassified", "Trypanosome"
|
471 |
class_key = pn.widgets.Tabulator(pd.DataFrame({'list': all_cats}, index=range(len(all_cats))))
|
472 |
#class_key.style.apply(cell_bg)
|
473 |
|
|
|
313 |
legend_offset=(0, 0),
|
314 |
title=f'Reads for {self.sample_id}',
|
315 |
)
|
316 |
+
return hv.Overlay([dynspread(shaded, threshold=0.7, max_px=5)]).collate() * self.bounds.clone()
|
317 |
|
318 |
def get_seq_file(identifier, fasta, seq_preview):
|
319 |
seq_cmd = "{0} -A1 -m1 \"{1}\" {2}".format("zgrep", identifier, fasta)
|
|
|
467 |
if scatter.n_classes > 1:
|
468 |
#def cell_bg(s):
|
469 |
# return [ f'background-color: {col}' for col in scatter.colors_classes[:scatter.n_classes-1] ]
|
470 |
+
all_cats = ["Unclassified", "Trypanosome"]
|
471 |
class_key = pn.widgets.Tabulator(pd.DataFrame({'list': all_cats}, index=range(len(all_cats))))
|
472 |
#class_key.style.apply(cell_bg)
|
473 |
|