diff --git a/rnaseq_pipeline/sources/sra.py b/rnaseq_pipeline/sources/sra.py index c0869b4..ab77b1b 100644 --- a/rnaseq_pipeline/sources/sra.py +++ b/rnaseq_pipeline/sources/sra.py @@ -155,7 +155,7 @@ def run(self): # layout is very often not annotated correctly and it is best to rely # on the number of mates per spot - is_paired = (self.sample_id in sra_cfg.paired_read_experiments) or (run.spots_with_mates > 0) or (run.LibraryLayout == 'PAIRED') + is_paired = (self.sample_id in sra_cfg.paired_read_experiments) or (run.get('spots_with_mates', 0) > 0) or (run.LibraryLayout == 'PAIRED') metadata = dict(self.metadata) metadata['sample_id'] = self.sample_id