Skip to content

Commit

Permalink
alndbg resolve parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
maickrau committed Dec 12, 2024
1 parent 9154c4e commit 45fa2a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AlnDBG
Submodule AlnDBG updated 1 files
+8 −6 src/chunkgraph.cpp
4 changes: 3 additions & 1 deletion src/Snakefiles/1-buildGraph.sm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ rule buildGraph:

baseK = config['chunkgraph_baseK'],
window = config['chunkgraph_window'],
hap_coverage = config['chunkgraph_hap_coverage']
hap_coverage = config['chunkgraph_hap_coverage'],
resolve_size = config['chunkgraph_resolve_size']
threads:
int(config['chg_n_cpus'])
resources:
Expand Down Expand Up @@ -94,6 +95,7 @@ echo ""
-t {resources.n_cpus} \\\\
-k {params.baseK} \\\\
-w {params.window} \\\\
-r {params.resolve_size} \\\\
--max-error-rate 0.03 \\\\
--avg-hap-coverage {params.hap_coverage}

Expand Down
3 changes: 3 additions & 0 deletions src/verkko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ cor_overlap_batches=32
chunkgraph_baseK=11
chunkgraph_window=5000
chunkgraph_hap_coverage=20
chunkgraph_resolve_size=10000
# buildGraph, parameters for MBG
mbg_baseK=1001
mbg_maxK=15000
Expand Down Expand Up @@ -619,6 +620,7 @@ while [ $# -gt 0 ] ; do
elif [ "$opt" = "--chunkgraph-base-k" ] ; then chunkgraph_baseK=$arg; shift
elif [ "$opt" = "--chunkgraph-window" ] ; then chunkgraph_window=$arg; shift
elif [ "$opt" = "--chunkgraph-hap-coverage" ] ; then chunkgraph_hap_coverage=$arg; shift
elif [ "$opt" = "--chunkgraph-resolve-size" ] ; then chunkgraph_resolve_size=$arg; shift

#
# MBG options
Expand Down Expand Up @@ -1252,6 +1254,7 @@ echo >> ${outd}/verkko.yml "# build-graph, chunkgraph"
echo >> ${outd}/verkko.yml "chunkgraph_baseK: '${chunkgraph_baseK}'"
echo >> ${outd}/verkko.yml "chunkgraph_window: '${chunkgraph_window}'"
echo >> ${outd}/verkko.yml "chunkgraph_hap_coverage: '${chunkgraph_hap_coverage}'"
echo >> ${outd}/verkko.yml "chunkgraph_resolve_size: '${chunkgraph_resolve_size}'"
echo >> ${outd}/verkko.yml "# build-graph, MBG"
echo >> ${outd}/verkko.yml "mbg_baseK: '${mbg_baseK}'"
echo >> ${outd}/verkko.yml "mbg_maxK: '${mbg_maxK}'"
Expand Down

0 comments on commit 45fa2a4

Please sign in to comment.