From 3be601ff04ee075b056c34cf7b8d846ae63f59e9 Mon Sep 17 00:00:00 2001 From: Rutger Vos Date: Mon, 25 Nov 2024 19:46:10 +0100 Subject: [PATCH] res.identification_rank needs to be set from the scoped config. Theoretically we could now validate different records at different precision levels. --- barcode_validator/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/barcode_validator/core.py b/barcode_validator/core.py index 0ae76e9..2afd3fd 100644 --- a/barcode_validator/core.py +++ b/barcode_validator/core.py @@ -49,6 +49,7 @@ def validate_fasta(self, fasta_file_path: str, config: Config) -> List[DNAAnalys for record, json_config in sh.parse_fasta(fasta_file_path): scoped_config = config.local_clone(json_config) result = DNAAnalysisResult(record.id, fasta_file_path) + result.level = scoped_config.get('level') self.validate_record(record, scoped_config, result) results.append(result) return results