Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,8 +74,8 @@ def plot_2d_comparison(dna_sequences_grouped, labels, mapping=mapping_easy):
|
|
74 |
|
75 |
|
76 |
############################################################# Virus Dataset ########################################################
|
77 |
-
ds = load_dataset('Hack90/virus_tiny')
|
78 |
-
df = pd.
|
79 |
virus = df['Organism_Name'].unique()
|
80 |
virus = {v: v for v in virus}
|
81 |
|
@@ -853,8 +853,8 @@ with ui.layout_columns():
|
|
853 |
here = Path(__file__).parent
|
854 |
@render.plot
|
855 |
def plot():
|
856 |
-
ds = load_dataset('Hack90/virus_tiny')
|
857 |
-
df = pd.
|
858 |
df = df[df['Organism_Name'].isin(input.virus_selector())]
|
859 |
# group by virus
|
860 |
grouped = df.groupby('Organism_Name')['Sequence'].apply(list)
|
|
|
74 |
|
75 |
|
76 |
############################################################# Virus Dataset ########################################################
|
77 |
+
#ds = load_dataset('Hack90/virus_tiny')
|
78 |
+
df = pd.from_parquet('virus_ds.parquet')
|
79 |
virus = df['Organism_Name'].unique()
|
80 |
virus = {v: v for v in virus}
|
81 |
|
|
|
853 |
here = Path(__file__).parent
|
854 |
@render.plot
|
855 |
def plot():
|
856 |
+
#ds = load_dataset('Hack90/virus_tiny')
|
857 |
+
df = pd.read_parquet('virus_ds.parquet')
|
858 |
df = df[df['Organism_Name'].isin(input.virus_selector())]
|
859 |
# group by virus
|
860 |
grouped = df.groupby('Organism_Name')['Sequence'].apply(list)
|