Skip to content

Commit fed06f5

Browse files
committed
Drop the paired_read_expeirments option and simplify pairedness check
1 parent a45ed54 commit fed06f5

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

example.luigi.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,3 @@ appdata_dir=/space/gemmaData
6565
human_reference_id=hg38_ncbi
6666
mouse_reference_id=mm10_ncbi
6767
rat_reference_id=rn7_ncbi
68-
69-
[rnaseq_pipeline.sources.sra]
70-
paired_read_experiments=[]

rnaseq_pipeline/sources/sra.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818
from ..targets import ExpirableLocalTarget
1919
from ..utils import remove_task_output, RerunnableTaskMixin
2020

21-
class sra(luigi.Config):
22-
task_namespace = 'rnaseq_pipeline.sources'
23-
24-
paired_read_experiments = luigi.ListParameter(description='List of SRA experiments known to contain paired reads')
25-
2621
cfg = rnaseq_pipeline()
27-
sra_cfg = sra()
2822

2923
logger = logging.getLogger('luigi-interface')
3024

@@ -154,9 +148,7 @@ def run(self):
154148
else:
155149
run = df.sort_values('Run', ascending=False).iloc[0]
156150

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

161153
metadata = dict(self.metadata)
162154
metadata['sample_id'] = self.sample_id

0 commit comments

Comments
 (0)