Skip to content

Commit

Permalink
fixes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jan 5, 2024
1 parent 2e4704d commit d00db23
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
22 changes: 14 additions & 8 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ thisJob <- cromwell_submit_batch(WDL = "myworkflow.wdl",
Return a data frame of all jobs run in the past number of days (uses your database)

```r
jobs <- cromwell_jobs(days = 2)
cromwell_jobs(days = 2)
```

Return a data frame (one line if you only submit one workflow id) containing workflow level metadata
Expand All @@ -90,13 +90,16 @@ w$status
Return a data frame containing all call level metadata

```r
c <- cromwell_call(thisOne)
df <- cromwell_call(thisOne)
```

Handy set of dplyr commands to tell you about how the various calls are doing

```r
c %>% group_by(callName, executionStatus) %>% summarize(status = n()) %>% arrange(executionStatus)
df %>%
group_by(callName, executionStatus) %>%
summarize(status = n()) %>%
arrange(executionStatus)
```

Returns a data frame containing call level call caching metadata
Expand All @@ -108,7 +111,9 @@ ca <- cromwell_cache(thisOne)
Handy set of dplyr commands to tell you about what sort of call caching is happening

```r
ca %>% group_by(callCaching.hit, callName) %>% summarize(hits = n())
ca %>%
group_by(callCaching.hit, callName) %>%
summarize(hits = n())
```

Opens up a popup in your browser with a timing diagram in it.
Expand All @@ -120,25 +125,26 @@ cromwell_timing(thisOne)
Returns a data frame containing call level failure metadata

```r
f <- cromwell_failures(thisOne)
cromwell_failures(thisOne)
```

Will tell Cromwell to abort the current workflow - note this cannot be undone and it will take a while to stop all the jobs.

```r
abort <- cromwell_abort(thisOne)
cromwell_abort(thisOne)
```

When a workflow is done, request information about the workflow outputs.

```r
out <- cromwell_outputs(thisOne)
cromwell_outputs(thisOne)
```

### Misc stuff

Ugly list of raw metadata should you need it for workflow troubleshooting

```r
cromwell_glob(thisOne); WTF[["failures"]]
wtf <- cromwell_glob(thisOne)
wtf[["failures"]]
```
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ thisJob <- cromwell_submit_batch(WDL = "myworkflow.wdl",
Return a data frame of all jobs run in the past number of days (uses your database)

```r
jobs <- cromwell_jobs(days = 2)
cromwell_jobs(days = 2)
```

Return a data frame (one line if you only submit one workflow id) containing workflow level metadata
Expand All @@ -82,13 +82,16 @@ w$status
Return a data frame containing all call level metadata

```r
c <- cromwell_call(thisOne)
df <- cromwell_call(thisOne)
```

Handy set of dplyr commands to tell you about how the various calls are doing

```r
c %>% group_by(callName, executionStatus) %>% summarize(status = n()) %>% arrange(executionStatus)
df %>%
group_by(callName, executionStatus) %>%
summarize(status = n()) %>%
arrange(executionStatus)
```

Returns a data frame containing call level call caching metadata
Expand All @@ -100,7 +103,9 @@ ca <- cromwell_cache(thisOne)
Handy set of dplyr commands to tell you about what sort of call caching is happening

```r
ca %>% group_by(callCaching.hit, callName) %>% summarize(hits = n())
ca %>%
group_by(callCaching.hit, callName) %>%
summarize(hits = n())
```

Opens up a popup in your browser with a timing diagram in it.
Expand All @@ -112,25 +117,26 @@ cromwell_timing(thisOne)
Returns a data frame containing call level failure metadata

```r
f <- cromwell_failures(thisOne)
cromwell_failures(thisOne)
```

Will tell Cromwell to abort the current workflow - note this cannot be undone and it will take a while to stop all the jobs.

```r
abort <- cromwell_abort(thisOne)
cromwell_abort(thisOne)
```

When a workflow is done, request information about the workflow outputs.

```r
out <- cromwell_outputs(thisOne)
cromwell_outputs(thisOne)
```

### Misc stuff

Ugly list of raw metadata should you need it for workflow troubleshooting

```r
cromwell_glob(thisOne); WTF[["failures"]]
wtf <- cromwell_glob(thisOne)
wtf[["failures"]]
```

0 comments on commit d00db23

Please sign in to comment.