Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit 0c0b89c

Browse files
author
Szilveszter Juhos
authored
Merge pull request #629 from MaxUlysse/Docs
Update docs
2 parents d8af9d1 + 8174e6a commit 0c0b89c

File tree

135 files changed

+888
-1001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+888
-1001
lines changed
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ is as follows:
1515
1. Check that there isn't already an issue about your idea in the
1616
[Sarek issues](https://github.com/SciLifeLab/Sarek/issues) to avoid
1717
duplicating work.
18-
* Feel free to add a new issue here for the same reason.
18+
* Feel free to add a [new issue here](https://github.com/SciLifeLab/Sarek/issues/new/choose) for the same reason.
1919
2. Fork the Sarek repository to your GitHub account
20-
3. Make the necessary changes / additions within your forked repository
21-
4. Submit a Pull Request against the master branch and wait for the code to be reviewed and merged.
20+
3. [Configure a remote for your fork](https://help.github.com/articles/configuring-a-remote-for-a-fork/)
21+
```
22+
git remote add upstream https://github.com/SciLifeLab/Sarek.git
23+
```
24+
25+
4. [Sync your fork](https://help.github.com/articles/syncing-a-fork/)
26+
5. Make the necessary changes / additions within your forked repository
27+
6. Submit a [Pull Request](https://github.com/SciLifeLab/Sarek/compare) against the `dev` branch and wait for the code to be reviewed and merged.
2228

2329
If you're not used to this workflow with git, you can start with some [basic docs from GitHub](https://help.github.com/articles/fork-a-repo/) or even their [excellent interactive tutorial](https://try.github.io/).
2430

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Please fill in the appropriate checklist below (delete whatever is not relevant)
44
These are the most common things requested on pull requests (PRs).
55

66
## PR checklist
7+
- [ ] PR is made against `dev` branch
8+
- [ ] PR is a hotfix against `master` branch
79
- [ ] This comment contains a description of changes (with reason)
810
- [ ] If you've fixed a bug or added code that should be tested, add tests!
911
- [ ] Ensure the test suite passes (`./scripts/test.sh -p docker -t ALL`).

.github/RELEASE_CHECKLIST.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22
This checklist is for our own reference
33

44
1. Check that everything is up to date and ready to go
5-
- Travis test is passing
6-
- Manual testing on Bianca is passing
7-
2. Increase version numbers.
5+
- Travis tests are passing
6+
- Manual tests on Bianca are passing
7+
2. Increase version numbers
88
3. Update version numbers in code: `configuration/base.config`
99
4. Build, and get the containers.
10-
- `./scripts/do_all.sh --push --tag <VERSION>`
11-
- `./scripts/do_all.sh --pull --tag <VERSION>`
10+
- `./scripts/do_all.sh --push --tag <VERSION>`
11+
- `./scripts/do_all.sh --pull --tag <VERSION>`
1212
5. Test against sample data.
13-
- Check for any command line errors
14-
- Check version numbers are printed correctly
15-
- `./scripts/test.sh -p docker --tag <VERSION>`
16-
- `./scripts/test.sh -p singularity --tag <VERSION>`
17-
- `./scripts/test.sh -p singularityPath --tag <VERSION>`
13+
- Check for any command line errors
14+
- Check version numbers are printed correctly
15+
- `./scripts/test.sh -p docker --tag <VERSION>`
16+
- `./scripts/test.sh -p singularity --tag <VERSION>`
17+
- `./scripts/test.sh -p singularityPath --tag <VERSION>`
1818
6. Commit and push version updates
1919
7. Make a [release](https://github.com/SciLifeLab/Sarek/releases) on GitHub
20-
8. Tweet that new version is released
21-
9. Commit and push. Continue making more awesome :metal:
22-
10. Have fika :cake:
20+
8. Choose an appropriate codename for the release
21+
9. Tweet that new version is released
22+
10. Commit and push. Continue making more awesome :metal:
23+
11. Have fika :cake:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1919
- [#615](https://github.com/SciLifeLab/Sarek/pull/615) - Use `splitCsv` instead of `readlines`
2020
- [#621](https://github.com/SciLifeLab/Sarek/pull/621) - Improve install script
2121
- [#621](https://github.com/SciLifeLab/Sarek/pull/621) - Simplify tests
22+
- [#627](https://github.com/SciLifeLab/Sarek/pull/627), [#629](https://github.com/SciLifeLab/Sarek/pull/629) - Refactor docs
23+
- [#629](https://github.com/SciLifeLab/Sarek/pull/629) - Refactor config
24+
- [#632](https://github.com/SciLifeLab/Sarek/pull/632) - Use 2 threads and 2 cpus FastQC processes
2225

2326
### `Removed`
2427
- [#616](https://github.com/SciLifeLab/Sarek/pull/616) - Remove old Issue Template
28+
- [#629](https://github.com/SciLifeLab/Sarek/pull/629) - Remove old Dockerfiles
2529

2630
### `Fixed`
2731
- [#621](https://github.com/SciLifeLab/Sarek/pull/621) - Fix VEP tests
File renamed without changes.

README.md

Lines changed: 71 additions & 49 deletions
Large diffs are not rendered by default.

Singularity

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
From:nfcore/base
2+
Bootstrap:docker
3+
4+
%labels
5+
MAINTAINER Maxime Garcia <maxime.garcia@scilifelab.se>
6+
DESCRIPTION Singularity image containing all requirements for the Sarek pipeline
7+
VERSION 2.1.0
8+
9+
%environment
10+
PATH=/opt/conda/envs/sarek-2.1.0/bin:$PATH
11+
export PATH
12+
13+
%files
14+
environment.yml /
15+
16+
%post
17+
/opt/conda/bin/conda env create -f /environment.yml
18+
/opt/conda/bin/conda clean -a

annotate.nf

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,6 @@ kate: syntax groovy; space-indent on; indent-width 2;
3434
================================================================================
3535
*/
3636

37-
// Check that Nextflow version is up to date enough
38-
// try / throw / catch works for NF versions < 0.25 when this was implemented
39-
try {
40-
if( ! nextflow.version.matches(">= ${params.nfRequiredVersion}") ){
41-
throw GroovyException('Nextflow version too old')
42-
}
43-
} catch (all) {
44-
log.error "====================================================\n" +
45-
" Nextflow version ${params.nfRequiredVersion} required! You are running v${workflow.nextflow.version}.\n" +
46-
" Pipeline execution will continue, but things may break.\n" +
47-
" Please update Nextflow.\n" +
48-
"============================================================"
49-
}
50-
5137
if (params.help) exit 0, helpMessage()
5238
if (!SarekUtils.isAllowedParams(params)) exit 1, "params unknown, see --help for more information"
5339
if (!checkUppmaxProject()) exit 1, "No UPPMAX project ID found! Use --project <UPPMAX Project ID>"
@@ -279,27 +265,13 @@ if (params.verbose) vcfCompressedoutput = vcfCompressedoutput.view {
279265
"Index : ${it[3].fileName}"
280266
}
281267

282-
process GetVersionBCFtools {
283-
publishDir directoryMap.version, mode: 'link'
284-
output: file("v_*.txt")
285-
when: !params.noReports
286-
script: QC.getVersionBCFtools()
287-
}
288-
289268
process GetVersionSnpEFF {
290269
publishDir directoryMap.version, mode: 'link'
291270
output: file("v_*.txt")
292271
when: 'snpeff' in tools || 'merge' in tools
293272
script: QC.getVersionSnpEFF()
294273
}
295274

296-
process GetVersionVCFtools {
297-
publishDir directoryMap.version, mode: 'link'
298-
output: file("v_*.txt")
299-
when: !params.noReports
300-
script: QC.getVersionVCFtools()
301-
}
302-
303275
process GetVersionVEP {
304276
publishDir directoryMap.version, mode: 'link'
305277
output: file("v_*.txt")

bin/scrape_tool_versions.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'bcftools': ['v_bcftools.txt', r"bcftools (\S+)"],
1010
'BWA': ['v_bwa.txt', r"Version: (\S+)"],
1111
'FastQC': ['v_fastqc.txt', r"FastQC v(\S+)"],
12-
'GATK': ['v_gatk.txt', r"GATK version(\S+)"],
12+
'GATK': ['v_gatk.txt', r"Version:(\S+)"],
1313
'htslib': ['v_samtools.txt', r"htslib (\S+)"],
1414
'Manta': ['v_manta.txt', r"([0-9.]+)"],
1515
'MultiQC': ['v_multiqc.txt', r"multiqc, version (\S+)"],
@@ -28,24 +28,24 @@
2828
results = OrderedDict()
2929
results['Sarek'] = '<span style="color:#999999;\">N/A</span>'
3030
results['Nextflow'] = '<span style="color:#999999;\">N/A</span>'
31+
results['AlleleCount'] = '<span style="color:#999999;\">N/A</span>'
32+
results['ASCAT'] = '<span style="color:#999999;\">N/A</span>'
33+
results['bcftools'] = '<span style="color:#999999;\">N/A</span>'
3134
results['BWA'] = '<span style="color:#999999;\">N/A</span>'
32-
results['samtools'] = '<span style="color:#999999;\">N/A</span>'
33-
results['htslib'] = '<span style="color:#999999;\">N/A</span>'
35+
results['FastQC'] = '<span style="color:#999999;\">N/A</span>'
36+
results['FreeBayes'] = '<span style="color:#999999;\">N/A</span>'
3437
results['GATK'] = '<span style="color:#999999;\">N/A</span>'
35-
results['Picard'] = '<span style="color:#999999;\">N/A</span>'
38+
results['htslib'] = '<span style="color:#999999;\">N/A</span>'
3639
results['Manta'] = '<span style="color:#999999;\">N/A</span>'
37-
results['Strelka'] = '<span style="color:#999999;\">N/A</span>'
38-
results['FreeBayes'] = '<span style="color:#999999;\">N/A</span>'
39-
results['AlleleCount'] = '<span style="color:#999999;\">N/A</span>'
40+
results['MultiQC'] = '<span style="color:#999999;\">N/A</span>'
41+
results['Picard'] = '<span style="color:#999999;\">N/A</span>'
42+
results['Qualimap'] = '<span style="color:#999999;\">N/A</span>'
4043
results['R'] = '<span style="color:#999999;\">N/A</span>'
41-
results['ASCAT'] = '<span style="color:#999999;\">N/A</span>'
44+
results['samtools'] = '<span style="color:#999999;\">N/A</span>'
4245
results['SnpEff'] = '<span style="color:#999999;\">N/A</span>'
43-
results['VEP'] = '<span style="color:#999999;\">N/A</span>'
44-
results['FastQC'] = '<span style="color:#999999;\">N/A</span>'
45-
results['Qualimap'] = '<span style="color:#999999;\">N/A</span>'
46-
results['bcftools'] = '<span style="color:#999999;\">N/A</span>'
46+
results['Strelka'] = '<span style="color:#999999;\">N/A</span>'
4747
results['vcftools'] = '<span style="color:#999999;\">N/A</span>'
48-
results['MultiQC'] = '<span style="color:#999999;\">N/A</span>'
48+
results['VEP'] = '<span style="color:#999999;\">N/A</span>'
4949

5050
# Search each file using its regex
5151
for k, v in regexes.items():

0 commit comments

Comments
 (0)