Skip to content

Commit

Permalink
Update qual_checks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fsalbeez committed Jan 10, 2025
1 parent 7b1e2c8 commit d1a2edd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qual_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,19 @@ def cpc_check(self, binary_t13_df):

else:
# for the rows containing CPC, collect the (row name, column name) for cells that are negative
negative_cpc_dict = {}
negative_cpc_dict = {'error': 'issue'}
"""
for row_name, row in cpc_rows.iterrows():
negative_cpc_assays = []
for col_name, cell_value in row.items():
if 'negative' in str(cell_value).lower():
negative_cpc_assays.append(col_name)
if negative_cpc_assays:
negative_cpc_dict[row_name] = negative_cpc_assays
"""
# create a df to store the results
negative_cpc_df = pd.DataFrame({col: pd.Series(values) for col, values in negative_cpc_dict.items()})

# return cpc_rvp_rows, cpc_p1_rows, cpc_p2_rows, negative_cpc_p1_assays, negative_cpc_p2_assays, p1_assays, p2_assays, rvp_assays, assays, cpc_rows, negative_cpc_df, negative_cpc_dict
return negative_cpc_df

Expand Down

0 comments on commit d1a2edd

Please sign in to comment.