Skip to content

Commit

Permalink
Merge pull request #263 from databio/dev
Browse files Browse the repository at this point in the history
Add documentation clarity to rerunning pipelines
  • Loading branch information
donaldcampbelljr authored Jan 9, 2024
2 parents d93f0a2 + cdcc42c commit f06294d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,25 @@ When deciding whether or not to merge technical replicates, you should first fol
- [PCR Bottleneck Coefficient 1 (PBC1)](glossary.md#qc-output): values < 0.7 are considered concerning; values > 0.9 are ideal
- [PCR Bottleneck Coefficient 2 (PBC2)](glossary.md#qc-output): values < 1.0 represent severe bottlenecking; values > 3.0 are acceptable

## What if I need to restart a run?

There are two steps for restarting runs. When executing `looper run`, you can pass the `--ignore-flags` argument, e.g.
`looper run --looper-config /path_to_your/.looper_config.yaml --ignore-flags`
This will ignore any flags associated with the samples. Further reading: [Sample Flags](https://looper.databio.org/en/latest/faq/#why-isnt-a-sample-being-processed-by-a-pipeline-not-submitting-flag-found-_statusflag)

If a run failed or timedout, there will be a lock on intermediate files. The pipeline interface can be modified to add the `-R` argument such that the pipeline manager (pypiper) will run in recover mode which will allow the pipeline to restart and proceed. Further reading: [Pypiper CLI: built in arguments](https://pypiper.databio.org/en/latest/cli/)

Modify PEPATAC's sample pipeline interface, adding the `-R` argument to the command template, e.g:

```yaml
command_template: >
{pipeline.path}
-R
--output-parent { looper.results_subdir }
--cores { compute.cores }
--mem { compute.mem }
--sample-name { sample.sample_name }
--input { sample.read1 }
```

0 comments on commit f06294d

Please sign in to comment.