Skip to content

Commit

Permalink
fix json report
Browse files Browse the repository at this point in the history
  • Loading branch information
y9c committed Jun 19, 2024
1 parent bec1598 commit f723f33
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
54 changes: 28 additions & 26 deletions cutseq/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,19 +427,20 @@ def pipeline_single(input1, output1, short1, untrimmed1, barcode, settings):
pipeline = SingleEndPipeline(modifiers, steps)
stats = runner.run(pipeline, Progress(), outfiles)

json_report(
settings.json_file,
stats,
barcode,
input1,
None,
output1,
None,
short1,
None,
untrimmed1,
None,
)
if settings.json_file is not None:
json_report(
settings.json_file,
stats,
barcode,
input1,
None,
output1,
None,
short1,
None,
untrimmed1,
None,
)
print(minimal_report(stats, time=None, gc_content=None), file=sys.stderr)
outfiles.close()

Expand Down Expand Up @@ -686,19 +687,20 @@ def pipeline_paired(
pipeline = PairedEndPipeline(modifiers, steps)
stats = runner.run(pipeline, Progress(), outfiles)

json_report(
settings.json_file,
stats,
barcode,
input1,
input2,
output1,
output2,
short1,
short2,
untrimmed1,
untrimmed2,
)
if settings.json_file is not None:
json_report(
settings.json_file,
stats,
barcode,
input1,
input2,
output1,
output2,
short1,
short2,
untrimmed1,
untrimmed2,
)
print(minimal_report(stats, time=None, gc_content=None), file=sys.stderr)

outfiles.close()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cutseq"
version = "0.0.42"
version = "0.0.43"
description = "Automatically cut adapter / barcode / UMI from NGS data"
authors = ["Ye Chang <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit f723f33

Please sign in to comment.