Skip to content

Commit

Permalink
add map_order
Browse files Browse the repository at this point in the history
  • Loading branch information
yumisims committed Oct 7, 2024
1 parent aa88dc4 commit 1b93fe7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ Currently, the pipeline uses the following flags:

- The directory of the cram _and_ cram.crai files, e.g., `/path/to/cram/`

- `--map_order`

- hic map scaffold order, e.g., `length`

- `--teloseq`

- A telomeric sequence, e.g., `TTAGGG`
Expand All @@ -67,6 +71,7 @@ nextflow run sanger-tol/curationpretext \
--longread_type { default is "hifi" }
--sample { default is "pretext_rerun" } \
--teloseq { deafault is "TTAGGG" } \
--map_order { deafault is "unsorted" } \
--outdir { OUTDIR } \
-profile <docker/singularity/{institute}>

Expand All @@ -82,6 +87,7 @@ nextflow run sanger-tol/curationpretext \
--longread_type { default is "hifi" }
--sample { default is "pretext_rerun" } \
--teloseq { deafault is "TTAGGG" } \
--map_order { deafault is "unsorted" } \
--outdir { OUTDIR } \
-profile <docker/singularity/{institute}> \
-entry MAPS_ONLY \
Expand Down
4 changes: 2 additions & 2 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ process {
}

withName: PRETEXTMAP_STANDRD {
ext.args = { "--sortby length --mapq 0 --memory ${task.memory.giga}G" }
ext.args = { "${meta.map_order.equals("length") ? "--sortby length": "--sortby nosort" } --mapq 0 --memory ${task.memory.giga}" }
ext.prefix = { "${meta.id}_normal_pi" }
}

withName: PRETEXTMAP_HIGHRES {
ext.args = { "--sortby length --highRes --mapq 0 --memory ${task.memory.giga}G" }
ext.args = { "${meta.map_order.equals("length") ? "--sortby length": "--sortby nosort" } --highRes --mapq 0" }
ext.prefix = { "${meta.id}_hr_pi" }
}

Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ params {
cram = null
aligner = "bwamem2"
longread_type = "hifi"
map_order = "unsorted"

// Boilerplate options
outdir = "${params.outdir}/results"
Expand Down
8 changes: 7 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "object",
"fa_icon": "fas fa-terminal",
"description": "Define where the pipeline should find input data and save output data.",
"required": ["input", "cram", "sample", "outdir"],
"required": ["input", "cram", "sample", "outdir", "map_order"],
"properties": {
"input": {
"type": "string",
Expand Down Expand Up @@ -46,6 +46,12 @@
"help_text": "Give me a telomeric motif",
"fa_icon": "fas fa-file-signature"
},
"map_order": {
"type": "string",
"description": "HiC map scaffold order. Default to unsorted",
"help_text": "How you want to display your hic map, sorted by length?",
"fa_icon": "fas fa-file-signature"
},
"aligner": {
"type": "string",
"description": "Aligner for use {minimap2, bwamem2} in generating map",
Expand Down
1 change: 1 addition & 0 deletions subworkflows/local/generate_maps.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ workflow GENERATE_MAPS {
reference_tuple // Channel [ val(meta), path(file) ]
hic_reads_path // Channel [ val(meta), path(directory) ]


main:
ch_versions = Channel.empty()

Expand Down

0 comments on commit 1b93fe7

Please sign in to comment.