Skip to content

Commit

Permalink
Merge pull request #45 from heringerp/readme_examples
Browse files Browse the repository at this point in the history
Update README and add image to Ecoli50 example
  • Loading branch information
danydoerr authored Sep 24, 2024
2 parents c2d675e + 6158b57 commit 9dbc84f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ Calculate count statistics for pangenomic data
Usage: panacus <COMMAND>

Commands:
histgrowth Run in default mode, i.e., run hist and growth successively and output the results of the latter
hist Calculate coverage histogram from GFA file
growth Construct growth table from coverage histogram
ordered-histgrowth Compute growth table for order specified in grouping file (or, if non specified, the order of paths in the GFA file)
info Return general graph and paths info
histgrowth Run hist and growth. Return the growth curve
hist Calculate coverage histogram
growth Calculate growth curve from coverage histogram
ordered-histgrowth Calculate growth curve based on group file order (if order is unspecified, use path order in GFA)
table Compute coverage table for count type
help Print this message or the help of the given subcommand(s)

Expand Down
Binary file added docs/ecoli50.gfa.histgrowth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions examples/pangenome_growth_ecoli.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ RUST_LOG=info panacus histgrowth ecoli50.gfa -c bp -q 0,1,0.5,0.1 -t 4 > ecoli50
```shell
panacus-visualize -e -l "upper left" ecoli50.gfa.histgrowth.tsv > ecoli50.gfa.histgrowth.tsv.pdf
```

![coverage histogram and pangenome growth of bps in ecoli50.gfa](/docs/ecoli50.gfa.histgrowth.png?raw=true "coverage and pangenome growth statistics on the Ecoli50 graph")

2 changes: 1 addition & 1 deletion src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ pub fn write_histgrowth_table<W: Write>(
.zip(hist_aux.coverage.iter())
.zip(&hist_aux.quorum)
.map(|(((p, t), c), q)| {
vec![p.to_string(), t.to_string(), c.to_string(), q.to_string()]
vec![p.to_string(), t.to_string(), c.get_string(), q.get_string()]
}),
);
}
Expand Down

0 comments on commit 9dbc84f

Please sign in to comment.