From d7ac0d74824dca9a877e4e9b4610b9b11e427b7b Mon Sep 17 00:00:00 2001 From: Kim Rutherford Date: Thu, 17 Oct 2024 20:22:53 +1300 Subject: [PATCH] Fix run_analysis.sh failure for modifications The modifications export file now has an extra column "assigned_by". Refs pombase/allele_qc#117 Refs pombase/pombase-chado#1232 --- protein_modification_qc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protein_modification_qc.py b/protein_modification_qc.py index 06030e7..2c169e8 100644 --- a/protein_modification_qc.py +++ b/protein_modification_qc.py @@ -125,7 +125,7 @@ def check_func(row, genome, allowed_mod_dict): with open('data/allowed_mod_dict.json', 'r') as ins: allowed_mod_dict = json.load(ins) - data.columns = ['systematic_id', 'primary_name', 'modification', 'evidence', 'sequence_position', 'annotation_extension', 'reference', 'taxon', 'date'] + data.columns = ['systematic_id', 'primary_name', 'modification', 'evidence', 'sequence_position', 'annotation_extension', 'reference', 'taxon', 'date', 'assigned_by'] data = data[data['sequence_position'] != ''] extra_cols = data.apply(check_func, axis=1, result_type='expand', args=[genome, allowed_mod_dict])