Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pseudo PR - Do not merge! #51

Closed
wants to merge 422 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
422 commits
Select commit Hold shift + click to select a range
9fcf139
Merge pull request #15 from FriederikeHanssen/1.0
FriederikeHanssen Sep 9, 2020
51c9d45
Bump to release version
FriederikeHanssen Sep 10, 2020
6e2352b
Remove slack, instead send email
FriederikeHanssen Sep 10, 2020
1d9d14f
Merge pull request #16 from qbic-pipelines/dev
FriederikeHanssen Sep 10, 2020
190fdbd
Add citation
FriederikeHanssen Sep 10, 2020
d5e1ae3
Fix linting
FriederikeHanssen Sep 10, 2020
fde731b
Post-release version bump
FriederikeHanssen Sep 10, 2020
407e844
Add logo svg
FriederikeHanssen Sep 10, 2020
a61f17d
Add version bump
FriederikeHanssen Sep 10, 2020
e263804
Merge pull request #17 from FriederikeHanssen/dev
ggabernet Sep 21, 2020
d16e932
allow index files to be provided
SusiJo Mar 4, 2021
181b311
updated workflow
SusiJo Mar 4, 2021
9dc9dff
updated function names, tags
SusiJo Mar 4, 2021
2c3ebca
added param.index_files=false
SusiJo Mar 4, 2021
d6093c9
added channel for bam_files_index
SusiJo Mar 4, 2021
dc219f2
changed input channel for extractReadsMappingToChromosome
SusiJo Mar 4, 2021
30f4707
removed tabs
SusiJo Mar 4, 2021
d24bafa
removed output file bai
SusiJo Mar 5, 2021
4dafadd
removed unnecessary ; in main.nf
SusiJo Mar 19, 2021
98552c8
adjusted indent in main.nf
SusiJo Mar 19, 2021
1fa27c4
adjusting indent main.nf
SusiJo Mar 19, 2021
31c4b65
updated else in main.nf
SusiJo Mar 19, 2021
e2546b0
updated else in main.nf
SusiJo Mar 19, 2021
893d31e
adjusting indent in main.nf
SusiJo Mar 19, 2021
9e8b8be
adjusting indent in main.nf
SusiJo Mar 19, 2021
5a2eb7a
adjusting indent in main.nf
SusiJo Mar 19, 2021
f7916ae
adjusting indent in main.nf
SusiJo Mar 19, 2021
088425a
adjusting indent in main.nf
SusiJo Mar 19, 2021
e50838d
adjusting indent in main.nf
SusiJo Mar 19, 2021
3e833de
adjusting indent in main.nf
SusiJo Mar 19, 2021
0dcf169
fixed whitespaces in main.nf
SusiJo Mar 19, 2021
b1ebc5b
adjusted indent in main.nf
SusiJo Mar 19, 2021
55eac81
changed filename process IdxBAI
SusiJo Mar 29, 2021
0b341cb
added output bai file
SusiJo Mar 30, 2021
3158b0f
Adjustment of indentation main.nf
SusiJo Apr 9, 2021
8d776f8
Added "" to strings main.nf
SusiJo Apr 9, 2021
51d68e4
Changed 'name' of index files to 'name_bai' main.nf
SusiJo Apr 9, 2021
d04695d
Added "" for strings in main.nf
SusiJo Apr 9, 2021
9ca791a
Added "" to strings main.nf
SusiJo Apr 9, 2021
692c20b
Added "" to strings in main.nf
SusiJo Apr 9, 2021
13634da
Removed newline in else main.nf
SusiJo Apr 9, 2021
18b8131
Changed 'name' of index files to 'name_bai' main.nf
SusiJo Apr 9, 2021
d98199b
Added "" to strings in main.nf
SusiJo Apr 9, 2021
ea04354
Changed 'name' of index files to 'name_bai' main.nf
SusiJo Apr 9, 2021
d1e7e23
changed test data links
SusiJo Apr 9, 2021
d569e2c
Removed name_bai main.nf
SusiJo Apr 9, 2021
80aaef6
Update main.nf
SusiJo Apr 9, 2021
8bf2bfb
Update main.nf
SusiJo Apr 9, 2021
355776a
Update main.nf
SusiJo Apr 9, 2021
10b2db7
Update conf/test.config
SusiJo Apr 9, 2021
ffebf42
Update main.nf
ggabernet Apr 9, 2021
1c2c505
Update main.nf
ggabernet Apr 9, 2021
704689b
Update main.nf
ggabernet Apr 9, 2021
218dc9a
Update main.nf
ggabernet Apr 9, 2021
74bbc6f
Update main.nf
ggabernet Apr 9, 2021
8c1957c
Update main.nf
ggabernet Apr 9, 2021
37132d3
Update main.nf
ggabernet Apr 9, 2021
9f6c531
Update main.nf
ggabernet Apr 9, 2021
7937989
Update main.nf
ggabernet Apr 9, 2021
45ba473
Update main.nf
ggabernet Apr 9, 2021
63c0f55
Update main.nf
ggabernet Apr 9, 2021
491e4f8
Update main.nf
ggabernet Apr 9, 2021
2643f61
Update main.nf
ggabernet Apr 9, 2021
0218e4c
Merge pull request #21 from SusiJo/dev
FriederikeHanssen Apr 13, 2021
f7d5e64
Add bai to changelog (PR 21)
FriederikeHanssen Apr 13, 2021
177527c
closes #19 , fix usage documentation
FriederikeHanssen Apr 13, 2021
4a2a6a1
Add documentation for bai
FriederikeHanssen Apr 13, 2021
792bcd8
Fix markdown linting
FriederikeHanssen Apr 13, 2021
28f60ba
make all tabs spaces for consistency
FriederikeHanssen Apr 13, 2021
7431cf0
trim all trailing whitespaces
FriederikeHanssen Apr 13, 2021
163800b
Make stats computation optional
FriederikeHanssen Apr 13, 2021
50b7918
Add new param to help message
FriederikeHanssen Apr 13, 2021
d21e144
Add param to info message
FriederikeHanssen Apr 13, 2021
a0f8172
Add index test data
FriederikeHanssen Apr 13, 2021
6420cde
Include bai tests
FriederikeHanssen Apr 13, 2021
700f81f
add new tests to CI
FriederikeHanssen Apr 13, 2021
b4ff200
add test_bai.config
FriederikeHanssen Apr 13, 2021
ec1bdbe
Update changelog
FriederikeHanssen Apr 13, 2021
1277705
Update changelog
FriederikeHanssen Apr 13, 2021
7988990
Update testdata path to qbic-pipelines repo
FriederikeHanssen Apr 13, 2021
c80cb11
Remove eager test data
FriederikeHanssen Apr 13, 2021
402fd6e
Remove eager test data
FriederikeHanssen Apr 13, 2021
5d61eb0
Fix TOC
FriederikeHanssen Apr 14, 2021
e43aa78
Merge pull request #23 from FriederikeHanssen/stats
FriederikeHanssen Apr 14, 2021
d5cf52c
Fix docker build badge
FriederikeHanssen Apr 14, 2021
1ba62f3
Fix docker build badge
FriederikeHanssen Apr 14, 2021
9a9a6eb
Merge pull request #24 from FriederikeHanssen/dev
FriederikeHanssen Apr 14, 2021
c5c5e7f
Use filePairs for bam/bai matching
FriederikeHanssen Apr 16, 2021
341a042
Update Changelog
FriederikeHanssen Apr 16, 2021
4da53d8
Correct tyop
FriederikeHanssen Apr 16, 2021
42802c8
Explicitely map to avoid weird side effects
FriederikeHanssen Apr 16, 2021
8a5d92c
add input_path to be able to provide pairs of testdata
FriederikeHanssen Apr 16, 2021
3bb07b1
replace with set for compatibility witholer nf version
FriederikeHanssen Apr 20, 2021
4455201
Merge pull request #26 from FriederikeHanssen/filepairs
FriederikeHanssen Apr 22, 2021
f0fcabe
Prepare release
FriederikeHanssen Apr 22, 2021
06da29b
Merge pull request #27 from FriederikeHanssen/dev
FriederikeHanssen Apr 22, 2021
ce4770b
Merge pull request #28 from qbic-pipelines/dev
ggabernet Apr 22, 2021
71fa945
Add contributor
FriederikeHanssen Apr 22, 2021
9ede646
Merge pull request #29 from FriederikeHanssen/dev
FriederikeHanssen Apr 22, 2021
d6756dd
Merge pull request #30 from qbic-pipelines/dev
FriederikeHanssen Apr 22, 2021
e1a3baf
bump-versions-dev
ggabernet May 5, 2021
f6c2ef9
samtools collate fast and cat improvements
ggabernet May 5, 2021
da3604e
update changelog
ggabernet May 5, 2021
ca13dd2
add new params to test
ggabernet May 5, 2021
8e88772
Merge pull request #31 from ggabernet/dev
FriederikeHanssen May 5, 2021
7bf3d41
changed concatenation of mapped and unmapped reads
SusiJo May 11, 2021
e869d1c
added description for new parameter collate_fast
SusiJo May 11, 2021
a0fcf5f
added collate_fast to sortExtractMapped process
SusiJo May 11, 2021
eee8e23
updated changelog
SusiJo May 11, 2021
2c51768
added all processes to samtools_collate_fast
SusiJo May 11, 2021
c4aaf81
updated description samtools_collate_fast
SusiJo May 11, 2021
6077a63
Merge pull request #32 from SusiJo/dev
ggabernet May 11, 2021
562d0d4
Added flag --reads_in_memory
SusiJo May 20, 2021
516ccc1
Updated usage docs
SusiJo May 20, 2021
d9f5629
updated changelog
SusiJo May 20, 2021
d8f317d
Substituted '-' with underscores
SusiJo May 20, 2021
5d09791
Added '--' to new flag
SusiJo May 20, 2021
1d3a1be
default reads_in_memory now set in nextflow.config
SusiJo May 21, 2021
30abe65
added default to usage docs
SusiJo May 21, 2021
0efc4d8
added reference to samtools docs
SusiJo May 21, 2021
5942fc4
Merge pull request #33 from SusiJo/dev
FriederikeHanssen May 25, 2021
b566b4c
Add test CRAM data
Dec 15, 2021
42d3196
Add support for CRAM files
Dec 15, 2021
1e148e6
Simplify conditional logic for CRAM files
Dec 16, 2021
7e4af24
Merge branch 'dev' into bgrande/cram-support
Dec 16, 2021
09ae47c
Document new options for CRAM file support
Dec 18, 2021
0a68fc4
Update usage.md
FriederikeHanssen Dec 20, 2021
cc238ba
Merge pull request #36 from Sage-Bionetworks-Workflows/bgrande/cram-s…
FriederikeHanssen Dec 20, 2021
a657bd7
Use published CRAM test data
Dec 20, 2021
a362c2e
Merge pull request #38 from Sage-Bionetworks-Workflows/bgrande/use-pu…
FriederikeHanssen Jan 5, 2022
14fb9a3
Prepare release
FriederikeHanssen Jan 12, 2022
9569305
Merge pull request #39 from FriederikeHanssen/release-1.2
FriederikeHanssen Jan 12, 2022
4f114f4
Update CHANGELOG.md
FriederikeHanssen Jan 12, 2022
7c0f2fa
Update CHANGELOG.md
FriederikeHanssen Jan 12, 2022
f7d1fdc
Update CHANGELOG.md
FriederikeHanssen Jan 12, 2022
6fa74d4
Update CHANGELOG.md
FriederikeHanssen Jan 12, 2022
0f7bf76
Update main.nf
FriederikeHanssen Jan 12, 2022
1a2dd88
Initial template commit
SusiJo Oct 19, 2022
0aae09f
Porting pipeline to DSL2
SusiJo Oct 21, 2022
db8d896
prettier
SusiJo Oct 21, 2022
58ed55e
Template update for nf-core/tools version 2.6
SusiJo Nov 2, 2022
be8377f
merged new TEMPLATE
SusiJo Nov 2, 2022
08982e1
add modules + subworkflow
SusiJo Nov 2, 2022
aeb9d26
update modules
SusiJo Nov 16, 2022
b290cb8
add samplesheet
SusiJo Nov 16, 2022
7b11757
add samplesheet to test.config
SusiJo Nov 16, 2022
57240d8
add sys.exit
SusiJo Nov 16, 2022
ec3add5
alignment workflow working :)
SusiJo Dec 14, 2022
a5e71a5
add to aln workflow
SusiJo Dec 14, 2022
cf3dee9
adjust schema
SusiJo Dec 15, 2022
3af5d0f
ch gitignore
SusiJo Dec 15, 2022
a8b3006
output fastq reads
SusiJo Dec 15, 2022
8dc7947
added pre-qc
SusiJo Feb 23, 2023
bfd309d
extract reads to chr working
SusiJo Feb 23, 2023
3e12780
fix naming chromosomes
SusiJo Mar 6, 2023
d05e5af
added post conversion QC
SusiJo Mar 7, 2023
55cb5d3
add multiqc report
SusiJo Mar 7, 2023
feac316
add single/paired detection + extraction
SusiJo Mar 10, 2023
86ace66
apply editorconfig + renaming
SusiJo Mar 10, 2023
26f920f
apply editorconfig again
SusiJo Mar 10, 2023
5d5365b
update linting + prettierignore
SusiJo Mar 10, 2023
be28f55
test editorconfig
SusiJo Mar 10, 2023
bbe5f6d
rm jinja template string
SusiJo Mar 10, 2023
56a84a1
editorconfig
SusiJo Mar 10, 2023
0a1a9ea
indent
SusiJo Mar 10, 2023
7fc437d
change indent
SusiJo Mar 10, 2023
4def56f
add crams
SusiJo Mar 13, 2023
0411aa8
add prepare indices
SusiJo Mar 14, 2023
4e2378b
add configs
SusiJo Mar 14, 2023
4b8c3af
compute fasta.fai if not provided
SusiJo Mar 16, 2023
e23b1d1
update docs
SusiJo Mar 17, 2023
fff658e
enabled flags
SusiJo Mar 17, 2023
94a9878
updated modules
SusiJo Mar 17, 2023
d5bbbde
add samplesheets [skip actions]
SusiJo Mar 17, 2023
22bca8a
added ignore files [skip actions]
SusiJo Mar 17, 2023
9a8c9b1
Template update for nf-core/tools version 2.7.2
SusiJo Mar 17, 2023
f2c5daf
Template update for nf-core/tools version 2.8.dev0
SusiJo Mar 17, 2023
ab6ff21
Merge branch 'TEMPLATE' into dls2_new
SusiJo Mar 17, 2023
44d212e
fix updating template
SusiJo Mar 17, 2023
1a00915
fix linting.yml
SusiJo Mar 17, 2023
19e2085
prettier + changed paths
SusiJo Mar 20, 2023
9fe7852
new conda syntax + rm param
SusiJo Mar 20, 2023
e9ff64f
add test yml files
SusiJo Mar 27, 2023
73c5542
Merge pull request #43 from SusiJo/dls2_new
SusiJo Mar 29, 2023
6c3d177
Merge pull request #44 from nf-core/dsl2
FriederikeHanssen Mar 29, 2023
b8ab0fd
Merge branch 'dev' of https://github.com/SusiJo/bamtofastq into dev
SusiJo Apr 5, 2023
0f9ed85
Merge branch 'dev' of https://github.com/SusiJo/bamtofastq into add_t…
SusiJo Apr 5, 2023
c4de17e
added feedback from @matrulda
SusiJo Apr 5, 2023
0ef2bcf
prettier
SusiJo Apr 5, 2023
f0393e1
fix linting
SusiJo Apr 5, 2023
b607628
rm igenomes stuff
SusiJo Apr 5, 2023
a135fd2
changed paths of samples
SusiJo Apr 6, 2023
f8d4394
minor changes
SusiJo Apr 19, 2023
15b52c3
add new test ymls
SusiJo Apr 19, 2023
38d4d3a
added nf-core testdata + new md5sums
SusiJo Apr 24, 2023
8dad209
updated samtools/view
SusiJo Apr 24, 2023
9f4149b
updated output docs
SusiJo Apr 24, 2023
a9273c7
rm old test files
SusiJo Apr 24, 2023
e0d3e2d
apply suggestions
SusiJo Apr 25, 2023
9b63a9f
adjust tests, rm old img
SusiJo Apr 25, 2023
0b23890
rm typo
SusiJo Apr 25, 2023
ff5556a
add zenodo
SusiJo Apr 25, 2023
3a284fd
adjust paths
SusiJo Apr 25, 2023
ead2722
adjust resource requirements + add test profile
SusiJo Apr 26, 2023
eea210d
add max resources + extra profiles
SusiJo Apr 26, 2023
c5851a1
update modules
SusiJo Apr 26, 2023
5e21aea
update md5sums due to new samtools ver + citation
SusiJo Apr 27, 2023
4a1e4b8
pretty
SusiJo Apr 27, 2023
c0b6245
Merge pull request #45 from SusiJo/add_test_ymls
SusiJo Apr 27, 2023
cc01a16
Merge branch 'TEMPLATE' of https://github.com/qbic-pipelines/bamtofas…
SusiJo May 2, 2023
1d02a01
rm unnecessary scripts
SusiJo May 2, 2023
b6cfb11
pretty
SusiJo May 2, 2023
2338264
add igenomes stuff
SusiJo May 2, 2023
2a65b45
update cat fastq
SusiJo May 2, 2023
0f24ce8
changelog update
SusiJo May 2, 2023
9c77233
rm unnecessary script
SusiJo May 2, 2023
f930bb0
update modules
SusiJo May 3, 2023
1735e24
Merge pull request #47 from SusiJo/merging-template-updates2.8
SusiJo May 3, 2023
42fd49d
Merge remote-tracking branch 'upstream/dev' into add_igenomes
SusiJo May 3, 2023
e7d5690
update changelog
SusiJo May 3, 2023
4b75e8e
update schema
SusiJo May 3, 2023
2d5bb1e
Merge pull request #48 from SusiJo/add_igenomes
FriederikeHanssen May 3, 2023
527f7fd
get release ready
SusiJo May 3, 2023
8fa9f38
rm line
SusiJo May 3, 2023
20a5ad5
Merge pull request #49 from SusiJo/dev
FriederikeHanssen May 3, 2023
32bebbf
ch version + add tests
SusiJo May 3, 2023
f091b1d
add suggestions
SusiJo May 3, 2023
62bb802
add "
SusiJo May 3, 2023
b8f629a
pretty
SusiJo May 4, 2023
c8a22e4
Merge pull request #52 from SusiJo/dev
SusiJo May 5, 2023
cfed236
add code review for release
SusiJo May 5, 2023
a37121f
Merge branch 'nf-core:dev' into dev
SusiJo May 5, 2023
90f6626
update modules again
SusiJo May 5, 2023
6b14045
Merge branch 'dev' of https://github.com/SusiJo/bamtofastq into dev
SusiJo May 5, 2023
e4e70ed
force update
SusiJo May 5, 2023
07e0cff
add changelog
SusiJo May 5, 2023
ba64646
Merge pull request #53 from SusiJo/dev
SusiJo May 10, 2023
6daf748
apply suggestions from review
SusiJo May 11, 2023
c44dbd2
change boolean logic
SusiJo May 11, 2023
19d39bc
update changelog
SusiJo May 11, 2023
260fdfa
Merge pull request #54 from SusiJo/dev
SusiJo May 11, 2023
217dfdf
add sugg. from review
SusiJo May 12, 2023
d6004b2
updated changelog
SusiJo May 12, 2023
613930b
Merge branch 'nf-core:dev' into dev
SusiJo May 12, 2023
ac3efc4
Merge pull request #55 from SusiJo/dev
SusiJo May 12, 2023
b1ced0d
update changelog
SusiJo May 17, 2023
9abe7be
Merge branch 'dev' of https://github.com/SusiJo/bamtofastq into dev
SusiJo May 17, 2023
69fd2dc
Merge pull request #56 from SusiJo/dev
FriederikeHanssen May 17, 2023
a4705f6
add new zenodo doi
SusiJo May 17, 2023
535a376
Merge pull request #57 from SusiJo/dev
FriederikeHanssen May 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
steps:
- name: Launch workflow via tower
uses: seqeralabs/action-tower-launch@v1
# TODO nf-core: You can customise AWS full pipeline tests as required
# Add full size test data (but still relatively small datasets for few samples)
# on the `test_full.config` test runs with only one set of parameters
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ jobs:
NXF_VER:
- "22.10.1"
- "latest-everything"
profile:
- "test"
- "test_cram"
- "test_chr"
- "test_no_bai"
- "test_no_crai"
- "test_no_stats"
- "test_no_qc"
- "test_collate_fast"
steps:
- name: Check out pipeline code
uses: actions/checkout@v3
Expand All @@ -36,8 +45,5 @@ jobs:
version: "${{ matrix.NXF_VER }}"

- name: Run pipeline with test data
# TODO nf-core: You can customise CI pipeline run tests as required
# For example: adding multiple test runs with different parameters
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profile }},docker --outdir ./results
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ results/
testing/
testing*
*.pyc
*.fasta
*.fai
43 changes: 42 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,55 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v2.0.0dev - [date]
## v2.0.0 - Annie Easley

Initial release of nf-core/bamtofastq, created with the [nf-core](https://nf-co.re/) template.

### `Added`

- [#49](https://github.com/nf-core/bamtofastq/pull/49) Add descriptions to main options
- [#48](https://github.com/nf-core/bamtofastq/pull/48) Add igenomes
- [#45](https://github.com/nf-core/bamtofastq/pull/45) Add `test.yml` files with md5sums
- [#44](https://github.com/nf-core/bamtofastq/pull/44) DSL2 conversion

### `Changed`

- [#55](https://github.com/nf-core/bamtofastq/pull/55) Code review suggestions & formatting
- [#54](https://github.com/nf-core/bamtofastq/pull/54) Code review changes
- [#53](https://github.com/nf-core/bamtofastq/pull/53) Code review & updated modules
- [#52](https://github.com/nf-core/bamtofastq/pull/52) Code review changed resources in configs
- [#47](https://github.com/nf-core/bamtofastq/pull/47) Sync TEMPLATE with tools 2.8

### `Fixed`

- [#49](https://github.com/nf-core/bamtofastq/pull/49) Fixed release version
- [#45](https://github.com/nf-core/bamtofastq/pull/45) Minor bugfix with chromosome extraction

### `Dependencies`

| Dependency | Old version | New version |
| ---------- | ----------- | ----------- |
| `multiqc` | 1.9 | 1.14 |
| `samtools` | 1.10 | 1.17 |

### `Deprecated`

- Option `--cram_files` not needed anymore due to automatic format detection.

## v1.2.0 - Anna Winlock

- [#36](https://github.com/qbic-pipelines/bamtofastq/pull/36) Add options `--cram_files` and `--reference_fasta` to add support for CRAM files.
- [#31](https://github.com/qbic-pipelines/bamtofastq/pull/31) Add option `--samtools_collate_fast` and improve speed of cat.
- [#32](https://github.com/qbic-pipelines/bamtofastq/pull/32) Added `--samtools_collate_fast` to sortExtractMapped and changed cat command to append.
- [#33](https://github.com/qbic-pipelines/bamtofastq/pull/33) Added flag `--reads_in_memory` to specify how many reads shall be stored in memory.

## v1.1.0 - Katherine Johnson

- [#21](https://github.com/qbic-pipelines/bamtofastq/21) Allows bam indices as additional input files
- [#23](https://github.com/qbic-pipelines/bamtofastq/23) Fix documentation: `--bam` is `--input` now
- [#23](https://github.com/qbic-pipelines/bamtofastq/23) Make stats computation optional with parameter `--no_stats`. Use at own risk.
- [#26](https://github.com/qbic-pipelines/bamtofastq/26) `BAM` index is now also used for processes dealing with separating reads based on the mapping status of both mates

## v1.0.0 - Ada Lovelace

Initial release of qbic-pipelines/bamtofastq, created with the [nf-core](http://nf-co.re/) template.
12 changes: 12 additions & 0 deletions CITATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@

- [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)

> Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online]. Available online https://www.bioinformatics.babraham.ac.uk/projects/fastqc/.

- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)

> Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924.

- [SAMtools](https://doi.org/10.1093/gigascience/giab008)

> Danecek, P., Bonfield, J. K., Liddle, J., Marshall, J., Ohan, V., Pollard, M. O., Whitwham, A., Keane, T., McCarthy, S. A., Davies, R. D., Li, H., (2021) Twelve years of SAMtools and BCFtools, GigaScience, Volume 10, Issue 2, giab008. doi: 10.1093/gigascience/giab008

> Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R; 1000 Genome Project Data Processing Subgroup. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009 Aug 15;25(16):2078-9. doi: 10.1093/bioinformatics/btp352. Epub 2009 Jun 8. PubMed PMID: 19505943; PubMed Central PMCID: PMC2723002.

## Software packaging/containerisation tools

- [Anaconda](https://anaconda.com)
Expand All @@ -31,5 +40,8 @@

- [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241)

> Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. doi: 10.5555/2600239.2600241.

- [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/)

> Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675.
75 changes: 42 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ![nf-core/bamtofastq](docs/images/nf-core-bamtofastq_logo_light.png#gh-light-mode-only) ![nf-core/bamtofastq](docs/images/nf-core-bamtofastq_logo_dark.png#gh-dark-mode-only)

[![AWS CI](https://img.shields.io/badge/CI%20tests-full%20size-FF9900?labelColor=000000&logo=Amazon%20AWS)](https://nf-co.re/bamtofastq/results)[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.XXXXXXX-1073c8?labelColor=000000)](https://doi.org/10.5281/zenodo.XXXXXXX)
[![AWS CI](https://img.shields.io/badge/CI%20tests-full%20size-FF9900?labelColor=000000&logo=Amazon%20AWS)](https://nf-co.re/bamtofastq/results)[![Cite with Zenodo](http://img.shields.io/badge/DOI-10.5281/zenodo.4022138-1073c8?labelColor=000000)](https://doi.org/10.5281/zenodo.4022138)

[![Nextflow](https://img.shields.io/badge/nextflow%20DSL2-%E2%89%A522.10.1-23aa62.svg)](https://www.nextflow.io/)
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
Expand All @@ -12,20 +12,26 @@

## Introduction

**nf-core/bamtofastq** is a bioinformatics pipeline that ...
**nf-core/bamtofastq** is a bioinformatics best-practice analysis pipeline that converts (un)mapped `.bam` files or `.cram` files into `fq.gz` files. Initially, it auto-detects, whether the input file contains single-end or paired-end reads. Following this step, the reads are sorted using `samtools collate` and extracted with `samtools fastq`. Furthermore, for mapped bam/cram files it is possible to only convert reads mapping to a specific region or chromosome. The obtained FastQ files can then be used to further process with other pipelines.

<!-- TODO nf-core:
Complete this sentence with a 2-3 sentence summary of what types of data the pipeline ingests, a brief overview of the
major pipeline sections and the types of output it produces. You're giving an overview to someone new
to nf-core here, in 15-20 seconds. For an example, see https://github.com/nf-core/rnaseq/blob/master/README.md#introduction
-->
The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool to run tasks across multiple compute infrastructures in a very portable manner. It uses Docker/Singularity containers making installation trivial and results highly reproducible. The [Nextflow DSL2](https://www.nextflow.io/docs/latest/dsl2.html) implementation of this pipeline uses one container per process which makes it much easier to maintain and update software dependencies. Where possible, these processes have been submitted to and installed from [nf-core/modules](https://github.com/nf-core/modules) in order to make them available to all nf-core pipelines, and to everyone within the Nextflow community!

<!-- TODO nf-core: Include a figure that guides the user through the major workflow steps. Many nf-core
workflows use the "tube map" design for that. See https://nf-co.re/docs/contributing/design_guidelines#examples for examples. -->
<!-- TODO nf-core: Fill in short bullet-pointed list of the default steps in the pipeline -->
On release, automated continuous integration tests run the pipeline on a full-sized dataset on the AWS cloud infrastructure. This ensures that the pipeline runs on AWS, has sensible resource allocation defaults set to run on real-world datasets, and permits the persistent storage of results to benchmark between pipeline releases and other analysis sources.The results obtained from the full-sized test can be viewed on the [nf-core website](https://nf-co.re/bamtofastq/results).

1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
2. Present QC for raw reads ([`MultiQC`](http://multiqc.info/))
## Pipeline summary

By default, the pipeline currently performs the following steps:

1. Quality control (QC) of input (bam/cram) files ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)).
2. Check if input files are single- or paired-end ([`Samtools`](https://www.htslib.org/)).
3. Compute statistics on input files ([`Samtools`](https://www.htslib.org/)).
4. Convert to fastq reads ([`Samtools`](https://www.htslib.org/)).
5. QC of converted fastq reads ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)).
6. Summarize QC and statistics before and after format conversion ([`MultiQC`](http://multiqc.info/)).

<p align="center">
<img title="Bamtofastq Workflow" src="docs/images/nf-core-bamtofastq-subway.png" width=60%>
</p>

## Usage

Expand All @@ -34,26 +40,26 @@
> to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline)
> with `-profile test` before running the workflow on actual data.

<!-- TODO nf-core: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
Explain what rows and columns represent. For instance (please edit as appropriate):
Download the pipeline and test it on a minimal dataset with a single command:

First, prepare a samplesheet with your input data that looks as follows:
```bash
nextflow run nf-core/bamtofastq -profile test,<docker/singularity/.../institute> --outdir './results'
```

To run your own analysis, start by preparing a samplesheet with your input data that looks as follows:

`samplesheet.csv`:

```csv
sample,fastq_1,fastq_2
CONTROL_REP1,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gz
sample_id,mapped,index,file_type
test,test1.bam,test1.bam.bai,bam
test2,test2.bam,test2.bam.bai,bam
```

Each row represents a fastq file (single-end) or a pair of fastq files (paired end).

-->
Each row represents a bam/cram file with or without indices.

Now, you can run the pipeline using:

<!-- TODO nf-core: update the following command to include all required parameters for a minimal example -->

```bash
nextflow run nf-core/bamtofastq \
-profile <docker/singularity/.../institute> \
Expand All @@ -68,19 +74,25 @@ nextflow run nf-core/bamtofastq \

For more details, please refer to the [usage documentation](https://nf-co.re/bamtofastq/usage) and the [parameter documentation](https://nf-co.re/bamtofastq/parameters).

## Pipeline output

To see the the results of a test run with a full size dataset refer to the [results](https://nf-co.re/bamtofastq/results) tab on the nf-core website pipeline page.
For more details about the output files and reports, please refer to the
[output documentation](https://nf-co.re/bamtofastq/output).
The nf-core/bamtofastq pipeline comes with documentation about the pipeline [usage](https://nf-co.re/bamtofastq/usage), [parameters](https://nf-co.re/bamtofastq/parameters) and [output](https://nf-co.re/bamtofastq/output).

## Credits

nf-core/bamtofastq was originally written by Friederike Hanssen, Susanne Jodoin.
nf-core/bamtofastq was originally written by Friederike Hanssen. It was ported to DSL2 by Susanne Jodoin.

We thank the following people for their extensive assistance in the development of this pipeline:

<!-- TODO nf-core: If applicable, make list of people who have also contributed -->
- [Gisela Gabernet](https://github.com/ggabernet)
- [Matilda Åslin](https://github.com/matrulda)
- [Susanne Jodoin](https://github.com/SusiJo)
- [Bruno Grande](https://github.com/BrunoGrandePhd)

### Resources

The individual steps of this pipeline are based of on the following tutorials and resources:

1. [Extracting paired FASTQ read data from a BAM mapping file](http://darencard.net/blog/2017-09-07-extract-fastq-bam/)
2. [Check if BAM is derived from pair-end or single-end reads](https://www.biostars.org/p/178730/)

## Contributions and Support

Expand All @@ -90,10 +102,7 @@ For further information or help, don't hesitate to get in touch on the [Slack `#

## Citations

<!-- TODO nf-core: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. -->
<!-- If you use nf-core/bamtofastq for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) -->

<!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
If you use nf-core/bamtofastq for your analysis, please cite it using the following doi: [10.5281/zenodo.4022138](https://doi.org/10.5281/zenodo.4022138)

An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.

Expand Down
13 changes: 10 additions & 3 deletions assets/methods_description_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ description: "Suggested text and references to use when describing pipeline usag
section_name: "nf-core/bamtofastq Methods Description"
section_href: "https://github.com/nf-core/bamtofastq"
plot_type: "html"
## TODO nf-core: Update the HTML below to your prefered methods description, e.g. add publication citation for this pipeline
## You inject any metadata in the Nextflow '${workflow}' object
data: |
<h4>Methods</h4>
<p>Data was processed using nf-core/bamtofastq v${workflow.manifest.version} ${doi_text} of the nf-core collection of workflows (<a href="https://doi.org/10.1038/s41587-020-0439-x">Ewels <em>et al.</em>, 2020</a>).</p>
Expand All @@ -13,7 +11,16 @@ data: |
<h4>References</h4>
<ul>
<li>Di Tommaso, P., Chatzou, M., Floden, E. W., Barja, P. P., Palumbo, E., & Notredame, C. (2017). Nextflow enables reproducible computational workflows. Nature Biotechnology, 35(4), 316-319. <a href="https://doi.org/10.1038/nbt.3820">https://doi.org/10.1038/nbt.3820</a></li>
<li>Ewels, P. A., Peltzer, A., Fillinger, S., Patel, H., Alneberg, J., Wilm, A., Garcia, M. U., Di Tommaso, P., & Nahnsen, S. (2020). The nf-core framework for community-curated bioinformatics pipelines. Nature Biotechnology, 38(3), 276-278. <a href="https://doi.org/10.1038/s41587-020-0439-x">https://doi.org/10.1038/s41587-020-0439-x</a></li>
<li>Ewels, P. A., Peltzer, A., Fillinger, S., Patel, H., Alneberg, J., Wilm, A., Garcia, M. U., Di Tommaso, P., & Nahnsen, S. (2020). The nf-core framework for community-curated bioinformatics pipelines. Nature Biotechnology, 38(3), 276-278. <br><a href="https://doi.org/10.1038/s41587-020-0439-x">https://doi.org/10.1038/s41587-020-0439-x</a></li>
<li>Hanssen, F. (2022) nf-core/bamtofastq <a href="https://doi.org/10.5281/zenodo.4022138">https://doi.org/10.5281/zenodo.4022138</a></li>
<li>Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online]. Available online <a href="https://www.bioinformatics.babraham.ac.uk/projects/fastqc/">https://www.bioinformatics.babraham.ac.uk/projects/fastqc/</a></li>
<li>Ewels, P. A., Magnusson, M., Lundin, S., Käller, S., MultiQC: summarize analysis results for multiple tools and samples in a single report, Bioinformatics, Volume 32, Issue 19, October 2016, Pages 3047–3048. <a href="https://doi.org/10.1093/bioinformatics/btw354">https://doi.org/10.1093/bioinformatics/btw354</a></li>
<li>Danecek, P., Bonfield, J. K., Liddle, J., Marshall, J., Ohan, V., Pollard, M. O., Whitwham, A., Keane, T., McCarthy, S. A., Davies, R. D., Li, H., (2021) Twelve years of SAMtools and BCFtools, GigaScience, Volume 10, Issue 2, giab008. <a href="https://doi.org/10.1093/gigascience/giab008">https://doi.org/10.1093/gigascience/giab008</a></li>
<li>Anaconda Software Distribution. (2020). Anaconda Documentation. Anaconda Inc. Retrieved from <a href="https://anaconda.com">https://anaconda.com</a></li>
<li>Grüning, B., Dale, R., Sjödin, A., Chapman, B. A., Rowe, J., Tomkins-Tinch, C. H., Valieris, R., Köster, J., & Bioconda Team (2018). Bioconda: sustainable and comprehensive software distribution for the life sciences. Nature methods, 15(7), 475–476. <a href="https://doi.org/10.1038/s41592-018-0046-7">https://doi.org/10.1038/s41592-018-0046-7</a></li>
<li>da Veiga Leprevost F., Grüning B., Aflitos S. A., Röst H. L., Uszkoreit J., Barsnes H., Vaudel M., Moreno P., Gatto L., Weber J., Bai M., Jimenez R. C., Sachsenberg T., Pfeuffer J., Alvarez R. V., Griss J., Nesvizhskii A. I., Perez-Riverol Y. (2017). BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics (Oxford, England), 33(16), 2580–2582. <a href="https://doi.org/10.1093/bioinformatics/btx192">https://doi.org/10.1093/bioinformatics/btx192</a></li>
<li>Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. <a href="https://dl.acm.org/doi/10.5555/2600239.2600241">https://dl.acm.org/doi/10.5555/2600239.2600241</a></li>
<li>Kurtzer GM., Sochat V., Bauer MW. (2017). Singularity: Scientific containers for mobility of compute. PLoS One, 12(5):e0177459. <a href="https://doi.org/10.1371/journal.pone.0177459">https://doi.org/10.1371/journal.pone.0177459</a></li>
</ul>
<div class="alert alert-info">
<h5>Notes:</h5>
Expand Down
2 changes: 2 additions & 0 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ report_section_order:
order: -1002

export_plots: true

fn_clean_sample_names: false
6 changes: 3 additions & 3 deletions assets/samplesheet.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sample,fastq_1,fastq_2
SAMPLE_PAIRED_END,/path/to/fastq/files/AEG588A1_S1_L002_R1_001.fastq.gz,/path/to/fastq/files/AEG588A1_S1_L002_R2_001.fastq.gz
SAMPLE_SINGLE_END,/path/to/fastq/files/AEG588A4_S4_L003_R1_001.fastq.gz,
sample_id,mapped,index,file_type
test,https://github.com/nf-core/test-datasets/raw/bamtofastq/test-datasets/data/genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam,https://github.com/nf-core/test-datasets/raw/bamtofastq/test-datasets/data/genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam.bai,bam
test2,https://github.com/nf-core/test-datasets/raw/bamtofastq/test-datasets/data/genomics/homo_sapiens/illumina/bam/test2.paired_end.sorted.bam,https://github.com/nf-core/test-datasets/raw/bamtofastq/test-datasets/data/genomics/homo_sapiens/illumina/bam/test2.paired_end.sorted.bam.bai,bam
Loading