peregrine
Branch | |
---------|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------
master
| |
develop
||
peregrine
is:
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.
Using scripts/test_is_pff.R
.
filename | can_create_file
------------------------|------------------
/local/tmp.txt
| TRUE
/local/tmp/tmp.txt
| TRUE
/tmp.txt
| FALSE
/tmp/tmp.txt
| TRUE
/data/tmp.txt
| FALSE
/data/p230198/tmp.txt
| TRUE
/home/p230198/tmp.txt
| TRUE
/home/tmp.txt
| FALSE
prefix | can_start_beast
----------------|------------------
/local
| TRUE
/local/tmp
| TRUE
/tmp
| FALSE
/
| FALSE
/data
| FALSE
/data/p230198
| FALSE
/home
| FALSE
/home/p230198
| FALSE
folder_name | can_use_beast
---------------|----------------
/tmp | FALSE
/local/tmp | TRUE
/data/p230198 | FALSE
/home/p230198 | TRUE
folder_name | can_use_working_dir
----------------|----------------------
/tmp
| FALSE
/local/tmp
| FALSE
/data/p230198
| FALSE
/home/p230198
| TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.