Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

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):
subsets: List[List[T]]) -> dict:
# merge input data into single df
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:
# empty subsets equals all samples in one subset
subsets = [df['id'].unique().tolist()]
......@@ -40,9 +44,6 @@ class PCATask(AnalyticTask):
df = df.T
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
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