Skip to content

Commit 615bb9c

Browse files
Matt LooseMatt Loose
Matt Loose
authored and
Matt Loose
committed
fixing batch size
1 parent 8d146a5 commit 615bb9c

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

minFQ/fastqutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def parse_fastq_record(desc, name, seq, qual, fastq, rundict, args, header, fast
165165

166166
rundict[fastq_read['runid']].add_run(description_dict, args)
167167

168-
rundict[fastq_read['runid']].get_readnames_by_run(fastqfile['id'])
168+
rundict[fastq_read['runid']].get_readnames_by_run(fastqfile['id'])
169169

170170
if fastq_read['read_id'] not in rundict[fastq_read['runid']].readnames:
171171

minFQ/minotourapiclient.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, args, header):
5656
self.basecount = 0
5757
self.read_type_list = dict()
5858
if self.args.skip_sequence:
59-
self.batchsize = 5000
59+
self.batchsize = 500
6060
else:
6161
self.batchsize = 100
6262
self.run = None
@@ -162,15 +162,12 @@ def add_run(self, descriptiondict, args):
162162

163163
log.debug("Looking for flowcell {}".format(flowcellname))
164164

165-
flowcell = self.minotourapi.get_flowcell_by_name(flowcellname)
166-
log.info("FLOWCELL IS")
167-
log.info(flowcell)
168-
if flowcell is not None:
169-
flowcell = flowcell["data"]
165+
#flowcell = self.minotourapi.get_flowcell_by_name(flowcellname)
166+
flowcell = self.minotourapi.get_flowcell_by_name(flowcellname)['data']
167+
log.debug(flowcell)
170168

171-
log.debug("found {}".format(flowcell))
172169

173-
if flowcell is None:
170+
if not flowcell:
174171

175172
log.debug("Trying to create flowcell {}".format(flowcellname))
176173

0 commit comments

Comments
 (0)