Skip to content

Commit 43c04ed

Browse files
committed
Parse the --readTypes option
1 parent 3f6f13f commit 43c04ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rnaseq_pipeline/sources/sra.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,12 @@ def read_xml_metadata(path, include_invalid_runs=False) -> List[SraRunMetadata]:
134134
if loader == 'fastq-load.py':
135135
# parse options...
136136
# TODO: use argparse or something safer
137+
fastq_load_read_types = None
137138
fastq_load_files = []
138139
if options:
140+
if '--readTypes' in options and options['--readTypes'] is not None:
141+
fastq_load_read_types = list(str(options['--readTypes']))
142+
logger.warning(fastq_load_read_types)
139143
opts = ['--read1PairFiles',
140144
'--read2PairFiles',
141145
'--read3PairFiles',
@@ -149,6 +153,7 @@ def read_xml_metadata(path, include_invalid_runs=False) -> List[SraRunMetadata]:
149153
issues |= SraRunIssue.NO_FASTQ_LOAD_OPTIONS
150154
else:
151155
issues |= SraRunIssue.NO_FASTQ_LOAD
156+
fastq_load_read_types = None
152157
fastq_load_files = None
153158

154159
statistics = run.find('Statistics')

0 commit comments

Comments
 (0)