Skip to content
Snippets Groups Projects
Commit cb06bbb8 authored by Dominik Brilhaus's avatar Dominik Brilhaus
Browse files

trying to fix use of R with CWL

parent 2dbb8cc5
No related branches found
No related tags found
1 merge request!1Cwl
Pipeline #2428 failed
# Kallisto Workflow
## Executing individual steps
## Executing the multi-step workflow
```bash
cd runs/kallisto/
......
```bash
cd runs/kallisto_collect/
cwltool ../../workflows/kallisto_collect/kallisto_collect.cwl run.yml > $(date +"%Y-%m-%d_%H-%M").log 2>&1 &
```
cores: 1
r_script:
class: File
path: ../../workflows/kallisto_collect/kallisto_collect.R
in_kallisto_results:
in_kallisto_results:
class: Directory
path: ../kallisto_sleuth/out
path: ../runs/kallisto/kallisto_results
in_metadata_file:
class: File
path: ../merged_isa_metadata/out/merged_isa.tsv
......
......@@ -4,9 +4,14 @@
#### Load required library
################################################
library(sleuth)
library(tidyverse)
library(jsonlite)
if(!"BiocManager" %in% row.names(installed.packages())){install.packages('BiocManager')}
if(!"sleuth" %in% row.names(installed.packages())){
BiocManager::install('pachterlab/sleuth')
}
if(!"tidyverse" %in% row.names(installed.packages())){install.packages("tidyverse")}
if(!"openxlsx" %in% row.names(installed.packages())){install.packages("openxlsx")}
if(!"jsonlite" %in% row.names(installed.packages())){install.packages("jsonlite")}
################################################
#### Read arguments from CLI
......
......@@ -3,11 +3,19 @@
cwlVersion: v1.2
class: CommandLineTool
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: kallisto_collect.R
entry:
$include: kallisto_collect.R
- class: NetworkAccess
networkAccess: true
baseCommand: [Rscript, kallisto_collect.R]
inputs:
- id: r_script
type: File
inputBinding:
position: 0
- id: in_kallisto_results
type: Directory
inputBinding:
......@@ -36,6 +44,3 @@ outputs:
items: Directory
outputBinding:
glob: $(runtime.outdir)/$(inputs.out_folder)
baseCommand:
- Rscript
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment