Home

Awesome

peregrine

BranchGitHub Actions logoCodecov logo
masterR-CMD-checkcodecov.io
developR-CMD-checkcodecov.io

Peregrine falcon, by Christopher Watson

peregrine is:

Videos

Presentations

Example

The most important function is is_pff: 'Is Peregrine-friendly Filename/Folder'. If this function returns FALSE, one better not uses that path on the Peregrine cluster!

library(peregrine)
library(testthat)

expect_true(is_pff(get_pff_tempdir()))
expect_true(is_pff(get_pff_tempfile()))
expect_false(is_pff("/local/tmp/peregrine_unfriendly"))
expect_false(is_pff("/tmp/peregrine_unfriendly"))

One can use to_pff to convert a filename or folder to its Peregrine-friendly equivalent.

Measurements

Using scripts/test_is_pff.R.

Can create file?

filenamecan_create_file
/local/tmp.txtTRUE
/local/tmp/tmp.txtTRUE
/tmp.txtFALSE
/tmp/tmp.txtTRUE
/data/tmp.txtFALSE
/data/p230198/tmp.txtTRUE
/home/p230198/tmp.txtTRUE
/home/tmp.txtFALSE

Can start BEAST2?

prefixcan_start_beast
/localTRUE
/local/tmpTRUE
/tmpFALSE
/FALSE
/dataFALSE
/data/p230198FALSE
/homeFALSE
/home/p230198FALSE

Can use BEAST2?

folder_namecan_use_beast
`/tmpFALSE
`/local/tmpTRUE
`/data/p230198FALSE
`/home/p230198TRUE

Can use working dir?

folder_namecan_use_working_dir
/tmpFALSE
/local/tmpFALSE
/data/p230198FALSE
/home/p230198TRUE