https://github.com/midnighter/nextflow-r-source
A minimal nextflow project that demonstrates how to source R scripts from the bin directory.
https://github.com/midnighter/nextflow-r-source
Last synced: over 1 year ago
JSON representation
A minimal nextflow project that demonstrates how to source R scripts from the bin directory.
- Host: GitHub
- URL: https://github.com/midnighter/nextflow-r-source
- Owner: Midnighter
- License: unlicense
- Created: 2024-05-06T18:16:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T18:36:42.000Z (about 2 years ago)
- Last Synced: 2025-01-04T20:15:00.442Z (over 1 year ago)
- Language: R
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nextflow R source
_A minimal nextflow project that demonstrates how to source R scripts from the
`bin` directory._
The above is achieved by injecting the nextflow implicit variable
[`projectDir`](https://www.nextflow.io/docs/latest/script.html#implicit-variables),
which points to the directory of the `main.nf` script, into an R template such
that we can source other scripts present in the `bin` sub-directory.
## Usage
Execute the project, for example, with Docker.
```shell
nextflow run -with-docker rocker/r-base:latest
```
## Unlicense
This is free and unencumbered software released into the public domain.