Skip to content

Commit

Permalink
added test readme and link to download larger graph
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaparmigiani committed Sep 25, 2024
1 parent 82d8f3d commit 92b08bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
16 changes: 16 additions & 0 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Test

To run the unit tests just use:

```
cargo test
```

If you want to run the whole pipeline or compare the results with some previous
release of `panacus` you can check `integrated_test.R`.
The larger graph is a pangenome of human chromosome 22 (402 MB).
You can donwload it from here:

```r
https://media.githubusercontent.com/media/lucaparmigiani/chr22.hprc-v1.0-pggb.gfa.gz/refs/heads/main/chr22.hprc-v1.0-pggb.gfa.gz
```
6 changes: 4 additions & 2 deletions test/integrated_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ dir.create(folder_out, showWarnings=F,recursive=T)

### Datasets
#--------------------------------------------------------------------------------
gfa_chrM = list(file="chrM_test.gfa", short="chrM")
# this needs to be downloaded
gfa_chrM = list(file="chrM_test.gfa", short="chrM")

# gfa_chr22 needs to be downloaded (402 MB)
# https://media.githubusercontent.com/media/lucaparmigiani/chr22.hprc-v1.0-pggb.gfa.gz/refs/heads/main/chr22.hprc-v1.0-pggb.gfa.gz
#gfa_chr22 = list(file="chr22.hprc-v1.0-pggb.gfa.gz", short="chr22")

### General functions
Expand Down

0 comments on commit 92b08bd

Please sign in to comment.