Skip to content

Commit

Permalink
bug fix when only one factor value is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Feb 17, 2021
1 parent 6fbd30e commit 5406d57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdrf_pipelines/openms/openms.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ def openms_convert(self, sdrf_file: str = None, keep_raw: bool = False, one_tabl
c.startswith('comment[modification parameters')] # columns with modification parameters

if not split_by_columns:
# get factor columns (except constant ones)

factor_cols = [c for ind, c in enumerate(sdrf) if
c.startswith('factor value[') and len(sdrf[c].unique()) >= 1]

# get characteristics columns (except constant ones)
characteristics_cols = [c for ind, c in enumerate(sdrf) if
c.startswith('characteristics[') and len(sdrf[c].unique()) >= 1]
# and remove characteristics columns already present as factor
Expand Down

0 comments on commit 5406d57

Please sign in to comment.