diff --git a/example.luigi.cfg b/example.luigi.cfg index 4fec1ce..6161c8d 100644 --- a/example.luigi.cfg +++ b/example.luigi.cfg @@ -65,6 +65,3 @@ appdata_dir=/space/gemmaData human_reference_id=hg38_ncbi mouse_reference_id=mm10_ncbi rat_reference_id=rn7_ncbi - -[rnaseq_pipeline.sources.sra] -paired_read_experiments=[] diff --git a/rnaseq_pipeline/sources/sra.py b/rnaseq_pipeline/sources/sra.py index 7043e7d..74ba20a 100644 --- a/rnaseq_pipeline/sources/sra.py +++ b/rnaseq_pipeline/sources/sra.py @@ -18,13 +18,7 @@ from ..targets import ExpirableLocalTarget from ..utils import remove_task_output, RerunnableTaskMixin -class sra(luigi.Config): - task_namespace = 'rnaseq_pipeline.sources' - - paired_read_experiments = luigi.ListParameter(description='List of SRA experiments known to contain paired reads') - cfg = rnaseq_pipeline() -sra_cfg = sra() logger = logging.getLogger('luigi-interface') @@ -154,9 +148,7 @@ def run(self): else: run = df.sort_values('Run', ascending=False).iloc[0] - # 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.get('spots_with_mates', 0) > 0) or (run.LibraryLayout == 'PAIRED') + is_paired = run.LibraryLayout == 'PAIRED' metadata = dict(self.metadata) metadata['sample_id'] = self.sample_id