Skip to content

Commit b626a41

Browse files
committed
Addresses missing spots_with_mates column in SRA runinfo (fix #93)
1 parent 51d5874 commit b626a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rnaseq_pipeline/sources/sra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def run(self):
155155

156156
# layout is very often not annotated correctly and it is best to rely
157157
# on the number of mates per spot
158-
is_paired = (self.sample_id in sra_cfg.paired_read_experiments) or (run.spots_with_mates > 0) or (run.LibraryLayout == 'PAIRED')
158+
is_paired = (self.sample_id in sra_cfg.paired_read_experiments) or (run.get('spots_with_mates', 0) > 0) or (run.LibraryLayout == 'PAIRED')
159159

160160
metadata = dict(self.metadata)
161161
metadata['sample_id'] = self.sample_id

0 commit comments

Comments
 (0)