File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ def run(self):
104
104
platform , srx_url = samples_info [self .gsm ]
105
105
srx = parse_qs (urlparse (srx_url ).query )['term' ][0 ]
106
106
metadata = dict (self .metadata )
107
- metadata ['sample_id' ] = self .sample_id
107
+ # do not override the sample_id when invoked from DownloadGemmaExperiment
108
+ if 'sample_id' not in metadata :
109
+ metadata ['sample_id' ] = self .sample_id
108
110
yield DownloadSraExperiment (srx , metadata = metadata )
109
111
110
112
class DownloadGeoSeriesMetadata (TaskWithMetadataMixin , RerunnableTaskMixin , luigi .Task ):
Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ def run(self):
151
151
is_paired = run .LibraryLayout == 'PAIRED'
152
152
153
153
metadata = dict (self .metadata )
154
- metadata ['sample_id' ] = self .sample_id
154
+ # do not override the sample_id when invoked from DownloadGeoSample or DownloadGemmaExperiment
155
+ if 'sample_id' not in metadata :
156
+ metadata ['sample_id' ] = self .sample_id
155
157
yield DumpSraRun (run .Run , self .srx , paired_reads = is_paired , metadata = metadata )
156
158
157
159
class DownloadSraProjectRunInfo (TaskWithMetadataMixin , RerunnableTaskMixin , luigi .Task ):
You can’t perform that action at this time.
0 commit comments