Skip to content

Commit

Permalink
Addresses missing spots_with_mates column in SRA runinfo (fix #93)
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Jun 25, 2024
1 parent 51d5874 commit b626a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rnaseq_pipeline/sources/sra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b626a41

Please sign in to comment.