Skip to content

Commit

Permalink
Update ProcessSequenceFactory
Browse files Browse the repository at this point in the history
Added code to look for "Performer" and "Date" and add them to the process. Also added "Array Data Matrix File" to the default list of data node labels.
  • Loading branch information
ptth222 committed Feb 22, 2024
1 parent 68e8619 commit 1de91b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isatools/isatab/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def pbar(x):
'Post Translational Modification Assignment File',
'Acquisition Parameter Data File',
'Free Induction Decay Data File',
'Derived Array Data Matrix File', 'Image File',
'Derived Data File', 'Metabolite Assignment File']
'Derived Array Data Matrix File', 'Array Data Matrix File',
'Image File', 'Derived Data File', 'Metabolite Assignment File']
_LABELS_ASSAY_NODES = ['Assay Name', 'MS Assay Name', "NMR Assay Name",
'Hybridization Assay Name', 'Scan Name',
'Data Transformation Name', 'Normalization Name']
Expand Down
6 changes: 6 additions & 0 deletions isatools/isatab/load/ProcessSequenceFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@ def get_node_by_label_and_key(labl, this_key):
comment_key = next(iter(_RX_COMMENT.findall(comment_column)))
if comment_key not in [x.name for x in process.comments]:
process.comments.append(Comment(name=comment_key, value=str(object_series[comment_column])))

for performer in [c for c in column_group if c == 'Performer']:
process.performer = str(object_series[performer])

for date in [c for c in column_group if c == 'Date']:
process.date = str(object_series[date])

for _, object_series in DF.iterrows(): # don't drop duplicates
process_key_sequence = list()
Expand Down

0 comments on commit 1de91b7

Please sign in to comment.