From 579105328a37cc4c665ac3058705b2dfbcfeeb67 Mon Sep 17 00:00:00 2001 From: Amine Ghozlane Date: Wed, 23 Oct 2024 16:37:59 +0200 Subject: [PATCH] Fix bad paired reads importing --- meteor/fastqimporter.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meteor/fastqimporter.py b/meteor/fastqimporter.py index 33f8a60..fd53cc7 100644 --- a/meteor/fastqimporter.py +++ b/meteor/fastqimporter.py @@ -156,11 +156,10 @@ def execute(self) -> None: else: logging.warning("Regular expression does not match %s", fastq_file) continue + if self.ispaired: + sample_name = self.get_paired_dirname(fastq_file.name, tag) else: - if self.ispaired: - sample_name = self.get_paired_dirname(fastq_file.name, tag) - else: - sample_name = full_sample_name + sample_name = full_sample_name logging.info("Importing %s in sample %s", fastq_file, sample_name) # Create directory for the sample and symlink fastq file into samples_names.add(sample_name)