diff --git a/gene_splicer/study_summary.py b/gene_splicer/study_summary.py index e86419b..74a5652 100644 --- a/gene_splicer/study_summary.py +++ b/gene_splicer/study_summary.py @@ -109,7 +109,13 @@ def load_outcome(self, outcome_summary_csv: typing.TextIO): if participant_id is None: participant_id = participant_id_guess self.unmapped_samples.append(sample_key) - participant_counts = self.participant_counts[participant_id] + participant_key = participant_id + try: + # Some participant ids have leading zeroes (sometimes). + participant_key = str(int(participant_id)) + except ValueError: + pass + participant_counts = self.participant_counts[participant_key] for counts in (run_counts, participant_counts): counts['samples'] += 1 @@ -251,6 +257,7 @@ def main(): print() dots_printed = False print('Missing denovo results:', run_path) + continue else: run_gene_splicer(run_path, outcome_path.parent) assert outcome_path.exists(), outcome_path