Commit 17b809d5 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixing bug introduced by refactoring

parent 963f1a96
...@@ -31,6 +31,10 @@ class PCATask(AnalyticTask): ...@@ -31,6 +31,10 @@ class PCATask(AnalyticTask):
subsets: List[List[T]]) -> dict: subsets: List[List[T]]) -> dict:
# merge input data into single df # merge input data into single df
df = reduce(lambda a, b: a.append(b), features) df = reduce(lambda a, b: a.append(b), features)
# apply id filter
df = utils.apply_id_filter(df=df, id_filter=id_filter)
if not subsets: if not subsets:
# empty subsets equals all samples in one subset # empty subsets equals all samples in one subset
subsets = [df['id'].unique().tolist()] subsets = [df['id'].unique().tolist()]
...@@ -40,9 +44,6 @@ class PCATask(AnalyticTask): ...@@ -40,9 +44,6 @@ class PCATask(AnalyticTask):
df = df.T df = df.T
feature_labels = list(df) feature_labels = list(df)
# apply id filter
df = utils.apply_id_filter(df=df, id_filter=id_filter)
# save ids so we can re-assign them after pca # save ids so we can re-assign them after pca
ids = df.index.tolist() ids = df.index.tolist()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment