Skip to content

Commit

Permalink
quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
y9c committed May 2, 2024
1 parent d25cd93 commit d5bc322
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
25 changes: 16 additions & 9 deletions cutseq/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,22 @@ def pipeline_single(input1, output1, short1, untrimmed1, barcode, settings):
stats = runner.run(pipeline, Progress(), outfiles)
d = {
"tag": "Cutadapt report",
"files": {
"input1": input1,
"input2": "",
"input": {
"path1": input1,
"path2": None,
"paired": True,
},
"output": {
"output1": output1,
"output2": "",
"output2": None,
"short1": short1,
"short2": "",
"short2": None,
"untrimmed1": untrimmed1,
"untrimmed2": "",
"untrimmed2": None,
},
"barcode": barcode.to_dict(),
}

d.update(stats.as_json())
if settings.json_file:
with open(settings.json_file, "w") as json_file:
Expand Down Expand Up @@ -631,9 +635,12 @@ def pipeline_paired(
stats = runner.run(pipeline, Progress(), outfiles)
d = {
"tag": "Cutadapt report",
"files": {
"input1": input1,
"input2": input2,
"input": {
"path1": input1,
"path2": input2,
"paired": True,
},
"output": {
"output1": output1,
"output2": output2,
"short1": short1,
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.33"
version = "0.0.34"
description = "Automatically cut adapter / barcode / UMI from NGS data"
authors = ["Ye Chang <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d5bc322

Please sign in to comment.