@@ -103,6 +103,7 @@ def run(self):
103
103
r1 .path ,
104
104
join (destdir , os .path .basename (r1 .path )),
105
105
minimum_length = self .minimum_length ,
106
+ report_file = join (destdir , os .path .basename (r1 .path ) + '.cutadapt.json' ),
106
107
cpus = 4 )
107
108
elif len (self .input ()) == 2 :
108
109
r1 , r2 = self .input ()
@@ -113,20 +114,23 @@ def run(self):
113
114
r2 .path ,
114
115
join (destdir , os .path .basename (r2 .path )),
115
116
minimum_length = self .minimum_length ,
117
+ report_file = join (destdir , os .path .basename (r2 .path ) + '.cutadapt.json' ),
116
118
cpus = 4 )
117
119
elif self .ignore_mate == 'reverse' :
118
120
logger .info ('Reverse mate is ignored for %s.' , repr (self ))
119
121
yield platform .get_trim_single_end_reads_task (
120
122
r1 .path ,
121
123
join (destdir , os .path .basename (r1 .path )),
122
124
minimum_length = self .minimum_length ,
125
+ report_file = join (destdir , os .path .basename (r1 .path ) + '.cutadapt.json' ),
123
126
cpus = 4 )
124
127
else :
125
128
yield platform .get_trim_paired_reads_task (
126
129
r1 .path , r2 .path ,
127
130
join (destdir , os .path .basename (r1 .path )),
128
131
join (destdir , os .path .basename (r2 .path )),
129
132
minimum_length = self .minimum_length ,
133
+ report_file = join (destdir , os .path .basename (r1 .path ) + '_' + os .path .basename (r2 .path ) + '.cutadapt.json' ),
130
134
cpus = 4 )
131
135
else :
132
136
raise NotImplementedError ('Trimming more than two mates is not supported.' )
0 commit comments