Skip to content

Commit 580c2a6

Browse files
committed
v5.4.1
Resolved bugs with quality control checks.
1 parent 83c8627 commit 580c2a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

analyze_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
# When converting the cpc_negatives_df into a CSV, check if cpc_negatives_df is empty and, if so, modify the CSV produced
441441
if rnasep_df.empty:
442442
# If empty, create a DataFrame with the custom message and save it to CSV
443-
empty_message_df = pd.DataFrame({"Message": ["For all viral assays tested in this experiment, all RNaseP samples test positive."]})
443+
empty_message_df = pd.DataFrame({"Message": ["Please verify that you have included an RNaseP viral assay in your CARMEN experiment. If you have, all samples test postive for the RNaseP assay."]})
444444
empty_message_df.to_excel(writer, sheet_name=QC_sheet_names[2], index=False)
445445
print(f"File generated with message in {QC_sheet_names[2]} at {qc_output_file_path}")
446446
else:
@@ -684,7 +684,7 @@
684684
# When converting the cpc_negatives_df into a CSV, check if cpc_negatives_df is empty and, if so, modify the CSV produced
685685
if rnasep_df.empty:
686686
# If empty, create a DataFrame with the custom message and save it to CSV
687-
empty_message_df = pd.DataFrame({"Message": ["For all viral assays tested in this experiment, all RNaseP samples test positive."]})
687+
empty_message_df = pd.DataFrame({"Message": ["Please verify that you have included an RNaseP viral assay in your CARMEN experiment. If you have, all samples test postive for the RNaseP assay."]})
688688
empty_message_df.to_csv(rnasep_df_file_path, index=False, header=False)
689689
print(f"CSV created with message at {rnasep_df_file_path}")
690690
else:

qual_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def cpc_check(self, binary_t13_df):
9191

9292
else:
9393
# for the rows containing CPC, collect the (row name, column name) for cells that are negative
94-
negative_cpc_dict = {'error': 'issue'}
94+
negative_cpc_dict = {'Error': 'Unable to report negative CPCs. In your assignment sheet, verify that you have appended the appropriate panel suffixes to your sample and assay names.'}
9595
"""
9696
for row_name, row in cpc_rows.iterrows():
9797
negative_cpc_assays = []

0 commit comments

Comments
 (0)