File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -124,16 +124,16 @@ def counts_from_reads(self):
124
124
# count all the barcodes
125
125
self .logger .info ("Counting barcodes" )
126
126
with open_compressed (self .reads ) as handle :
127
- for fqr in parse_fastq_reads (handle ):
128
- fqr . trim_length ( self .trim_length , start = self .trim_start )
127
+ for fq in parse_fastq_reads (handle ):
128
+ fq . trim ( start = self .trim_start , end = self .trim_start + self . trim_length - 1 )
129
129
if self .reverse_complement_reads :
130
- fqr .reverse_complement ()
130
+ fq .reverse_complement ()
131
131
132
- if self .read_quality_filter (fqr ): # passed filtering
132
+ if self .read_quality_filter (fq ): # passed filtering
133
133
try :
134
- df_dict [fqr .sequence .upper ()] += 1
134
+ df_dict [fq .sequence .upper ()] += 1
135
135
except KeyError :
136
- df_dict [fqr .sequence .upper ()] = 1
136
+ df_dict [fq .sequence .upper ()] = 1
137
137
138
138
self .save_counts ("barcodes" , df_dict , raw = True )
139
139
del df_dict
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def counts_from_reads(self):
110
110
max_mut_variants = 0
111
111
with open_compressed (self .reads ) as handle :
112
112
for fq in parse_fastq_reads (handle ):
113
- fq .trim_length ( self .trim_length , start = self .trim_start )
113
+ fq .trim ( start = self .trim_start , end = self .trim_start + self . trim_length - 1 )
114
114
if self .reverse_complement_reads :
115
115
fq .reverse_complement ()
116
116
You can’t perform that action at this time.
0 commit comments