Skip to content

Commit

Permalink
always run samtools collate+reset before bambi read2tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dozy committed Aug 5, 2024
1 parent 78ba225 commit b0e1927
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 9 deletions.
12 changes: 3 additions & 9 deletions data/vtlib/fastq_s2_pi.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,14 @@
"select_range":[1],
"default":"off",
"cases":{
"on":"EXEC",
"on":"VTFILE",
"off":"INACTIVE"
}
},
"use_STDIN": true,
"use_STDOUT": true,
"cmd": [
{"subst":"bambi_executable", "required":true, "ifnull":"bambi"}, "read2tags",
"--tags", "rb,mb,br,rb,mb,br",
"--qtags", "rq,mq,bq,rq,mq,bq",
"--positions", "1:1:1:3,1:2:1:3,1:1:4:7,2:2:1:3,2:1:1:3,2:2:4:7",
"--compression-level", 0,
"--output-fmt", "bam"
]
"name":"read2tags.json",
"node_prefix":"r2t_"
}
],
"edges":[
Expand Down
54 changes: 54 additions & 0 deletions data/vtlib/read2tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version":"2.0",
"description":"read2tags for NanoSeq processing, including preparatory collation and reset",
"subgraph_io":{
"ports":{
"inputs":{"_stdin_":"collate"},
"outputs":{ "_stdout_":"read2tags" }
}
},
"nodes":[
{
"id":"collate",
"type": "EXEC",
"use_STDIN": true,
"use_STDOUT": true,
"cmd": [
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "collate",
"--threads", {"subst":"s2_r2t_coll_threads","required":true,"ifnull":2},
"-u",
"-O",
"-"
]
},
{
"id":"reset",
"type": "EXEC",
"use_STDIN": true,
"use_STDOUT": true,
"cmd": [
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "reset",
"--threads", {"subst":"s2_r2t_rs_threads","required":true,"ifnull":4},
"--output-fmt", "BAM,level=0"
]
},
{
"id":"read2tags",
"type": "EXEC",
"use_STDIN": true,
"use_STDOUT": true,
"cmd": [
{"subst":"bambi_executable", "required":true, "ifnull":"bambi"}, "read2tags",
"--tags", "rb,mb,br,rb,mb,br",
"--qtags", "rq,mq,bq,rq,mq,bq",
"--positions", "1:1:1:3,1:2:1:3,1:1:4:7,2:2:1:3,2:1:1:3,2:2:4:7",
"--compression-level", 0,
"--output-fmt", "bam"
]
}
],
"edges":[
{ "id":"collate_to_reset", "from":"collate","to":"reset" },
{ "id":"reset_to_read2tags", "from":"reset", "to":"read2tags" }
]
}

0 comments on commit b0e1927

Please sign in to comment.