Skip to content

Commit

Permalink
add cytof plugin data file links (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Jun 15, 2023
1 parent 58c479d commit f28069d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions samplesheets/assayapps/cytof/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def update_row(self, row, table, assay):

for i in range(len(row)):
header = table['field_header'][i]
top_header = get_top_header(table, i)

# Create barcode key & antibody panel links in processes
if (
Expand Down Expand Up @@ -145,6 +146,18 @@ def update_row(self, row, table, assay):
url=base_url + '/' + mc_assay_name + '/' + row[i]['value'],
)

# Create data file links
elif (
header['obj_cls'] == 'GenericMaterial'
and header['item_type'] == 'DATA'
and header['value'].lower() == 'name'
and top_header['value'].lower()
in ['raw data file', 'derived data file']
):
row[i]['link'] = (
base_url + '/' + mc_assay_name + '/' + row[i]['value']
)

return row

def update_cache(self, name=None, project=None, user=None):
Expand Down

0 comments on commit f28069d

Please sign in to comment.