Skip to content

Commit

Permalink
new chunkgraph version
Browse files Browse the repository at this point in the history
  • Loading branch information
maickrau committed Jan 6, 2025
1 parent fbcee95 commit 8eb3988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Snakefiles/1-buildGraph.sm
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ echo ""
--max-error-rate 0.03 \\\\
--avg-hap-coverage {params.hap_coverage}

cp graph-fragmented-final.gfa ../{output.graph}
cp graph-resolved-final.gfa ../{output.graph}

# todo fix: chunkgraph path unitig positions are currently not always correct.
# fix the ones which have impossible positions and ignore the ones which have incorrect but possible positions
awk 'BEGIN{{FS="\\t";OFS="\\t"}}{{if (\$8 > \$7) {{\$8 = 0;}} if (\$9 > \$7) {{\$9 = \$7;}} if (\$8 < \$9) {{print;}} }}' < paths-fragmented-final.gaf > ../{output.paths}
cp paths-resolved-final.gaf ../{output.paths}

# Find coverage.
# (rule hifi_coverage_csv in the original Snakefile)
Expand Down

0 comments on commit 8eb3988

Please sign in to comment.