Code Monkey home page Code Monkey logo

peregrine's Introduction

peregrine

Branch GitHub Actions logo Codecov logo
master R-CMD-check codecov.io
develop R-CMD-check codecov.io

Peregrine falcon, by Christopher Watson

peregrine is:

  • A collection of notes on the Groningen Peregrine computer cluster
  • A collection of scripts for the Groningen Peregrine computer cluster
  • An R package for some Peregrine functions
  • Some presentations on the Groningen Peregrine computer cluster (see below)

Videos

Presentations

  • Running (independent) jobs on the Peregrine computer cluster PDF ODP
  • Running jobs with dependencies on the Peregrine computer cluster PDF ODP

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?

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

Can start BEAST2?

prefix can_start_beast
/local TRUE
/local/tmp TRUE
/tmp FALSE
/ FALSE
/data FALSE
/data/p230198 FALSE
/home FALSE
/home/p230198 FALSE

Can use BEAST2?

folder_name can_use_beast
`/tmp FALSE
`/local/tmp TRUE
`/data/p230198 FALSE
`/home/p230198 TRUE

Can use working dir?

folder_name can_use_working_dir
/tmp FALSE
/local/tmp FALSE
/data/p230198 FALSE
/home/p230198 TRUE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.