Skip to content

Commit

Permalink
Implement dotplot_options
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
U13bs1125 committed May 23, 2024
1 parent dd64e51 commit c21e3e2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
4 changes: 4 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ process {

withName: 'LAST_DOTPLOT_O2M' {
ext.prefix = { "${meta.id}.o2m_plt" }
ext.args = { "--rot2=h --sort2=3 --strands2=1 ${params.dotplot_options}" }
}

withName: 'LAST_SPLIT_M2O' {
Expand All @@ -44,14 +45,17 @@ process {

withName: 'LAST_DOTPLOT_O2O' {
ext.prefix = { "${meta.id}.o2o_plt" }
ext.args = { "--rot2=h --sort2=3 --strands2=1 ${params.dotplot_options}" }
}

withName: 'LAST_DOTPLOT_M2O' {
ext.prefix = { "${meta.id}.m2o_plt" }
ext.args = { "--rot2=h --sort2=3 --strands2=1 ${params.dotplot_options}" }
}

withName: 'LAST_DOTPLOT_M2M' {
ext.prefix = { "${meta.id}.m2m_plt" }
ext.args = { "--rot2=h --sort2=3 --strands2=1 ${params.dotplot_options}" }
}

withName: 'MULTIQC' {
Expand Down
3 changes: 2 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ params {
input = null
target = null

// Skip dotplot
// Dotplot parameter
skip_dotplot_m2m = false
skip_dotplot_m2o = false
skip_dotplot_o2m = false
skip_dotplot_o2o = false
dotplot_options = ''

// References
genome = null
Expand Down
34 changes: 28 additions & 6 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@
"properties": {
"seed": {
"type": "string",
"enum": ["YASS", "NEAR", "MAM8", "RY128", "PSEUDO"],
"enum": [
"YASS",
"NEAR",
"MAM8",
"RY128",
"PSEUDO"
],
"help_text": "--seed selects the name of the LAST seed The default (YASS) searches for \u201clong-and-weak similarities\u201d that \u201callow for mismatches but not gaps\u201d. Among alternatives, there are NEAR for \u201cshort-and-strong (near-identical) similarities \u2026 with many gaps (insertions and deletions)\u201d, MAM8 to find \u201cweak similarities with high sensitivity, but low speed and high memory usage\u201d or RY128 that \u201creduces run time and memory use, by only seeking seeds at ~1/128 of positions in each sequence\u201d, which is useful when the purpose of running this pipeline is only to generate whole-genome dotplots, or when sensitivity for tiny fragments may be unnecessary or undesirable. Setting the seed to PSEUDO triggers protein-to-DNA alignment mode (experimental).",
"description": "The default (YASS) searches for \u201clong-and-weak similarities\u201d that \u201callow for mismatches but not gaps\u201d.",
"default": "YASS"
Expand Down Expand Up @@ -69,7 +75,11 @@
"type": "object",
"fa_icon": "fas fa-terminal",
"description": "Define where the pipeline should find input data and save output data.",
"required": ["input", "target", "outdir"],
"required": [
"input",
"target",
"outdir"
],
"properties": {
"input": {
"type": "string",
Expand Down Expand Up @@ -248,7 +258,14 @@
"description": "Method used to save pipeline results to output directory.",
"help_text": "The Nextflow `publishDir` option specifies which intermediate files should be saved to the output directory. This option tells the pipeline what method should be used to move these files. See [Nextflow docs](https://www.nextflow.io/docs/latest/process.html#publishdir) for details.",
"fa_icon": "fas fa-copy",
"enum": ["symlink", "rellink", "link", "copy", "copyNoFollow", "move"],
"enum": [
"symlink",
"rellink",
"link",
"copy",
"copyNoFollow",
"move"
],
"hidden": true
},
"email_on_fail": {
Expand Down Expand Up @@ -359,7 +376,7 @@
},
"last_split_mismap": {
"type": "string",
"default": 1e-5,
"default": 1e-05,
"description": "By default, last-split runs with -m1e-5 to omit alignments with mismap probability > 10\u22125, but this can be overriden with the --last_split_mismap option."
}
}
Expand Down Expand Up @@ -393,5 +410,10 @@
{
"$ref": "#/definitions/new_group_1"
}
]
}
],
"properties": {
"dotplot_options": {
"type": "string"
}
}
}

0 comments on commit c21e3e2

Please sign in to comment.