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

DEVELOP-122: Clear general statistics table #8

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ fastq-screen containers, so this is a temporary workaround for that. Here's how
- Download fastqc-screen from [here](https://www.bioinformatics.babraham.ac.uk/projects/fastq_screen/fastq_screen_v0.13.0.tar.gz).
- Uncompress it
- Run `fastq_screen --get_genomes`


# How to run the nextflow pipeline
Awesome, you're all set! Let's try generating reports for your favourite runfolder:
```
cd nextflow
nextflow -c config/nextflow.config run run_multiqc_nextflow.nf \
--runfolder ~/large_disk/180126_HSX122_0568_BHLFWLBBXX_small/ \
--fastq_screen_db ~/large_disk/FastQ_Screen_Genomes/
```
24 changes: 24 additions & 0 deletions nextflow/config/multiqc_flowcell_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Config for flowcell Reports

subtitle: "SNP&SEQ Technology Platform"
intro_text: |
This is a report containing quality control information about your project run at the SNP&SEQ Technology
Platform. If you have any questions, please do not hesitate to contact us at
<a href="mailto:[email protected]">[email protected]</a>

custom_logo: 'assets/UU_logo_tranp4f125px.png'
custom_logo_url: 'http://sequencing.se'
custom_logo_title: 'SNP&SEQ Technology Platform'

table_columns_visible:
FastQC:
percent_duplicates: False
percent_gc: False
total_sequences: False

top_modules:
- 'bcl2fastq'
- 'interop'

remove_sections:
- 'fastqc_sequence_counts'
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# QC criteria for NGI Uppsala, based on values in INS-00123
# Compatible with MultiQC v1.6
# Config for project reports

subtitle: "SNP&SEQ Technology Platform"
intro_text: |
Expand All @@ -11,7 +10,6 @@ custom_logo: 'assets/UU_logo_tranp4f125px.png'
custom_logo_url: 'http://sequencing.se'
custom_logo_title: 'SNP&SEQ Technology Platform'


clarity:
name_edit_regex: '^.*.\/(.*)_L00\d_[R|I]\d_001\.fastq\.gz$'

Expand Down Expand Up @@ -43,57 +41,9 @@ clarity:
# 'Insert size (bp)':
# description: 'Target insert size'

table_columns_visible:
FastQC:
percent_duplicates: False


max_table_rows: 1000

table_cond_formatting_rules:
mqc-generalstats-qualimap-percentage_aligned:
pass:
- gt: 97.1
fail:
- lt: 97.1

mqc-generalstats-qualimap-avg_gc:
pass:
- gt: 40.5
- lt: 42.1
fail:
- lt: 40.5
- gt: 42.1

mqc-generalstats-qualimap-median_insert_size:
pass:
- gt: 317
- lt: 428
fail:
- lt: 317
- gt: 428

mqc-generalstats-qualimap-10_x_pc:
pass:
- gt: 91
fail:
- lt: 91

mqc-generalstats-qualimap-30_x_pc:
pass:
- gt: 58
fail:
- lt: 58

mqc-generalstats-snpeff-Number_of_variants_before_filter:
pass:
- gt: 4.8
- lt: 5.3
fail:
- lt: 4.8
- gt: 5.3

mqc-generalstats-snpeff-Ts_Tv_ratio:
pass:
- gt: 1.98
- lt: 2.01
fail:
- lt: 1.98
- gt: 2.01
remove_sections:
- 'fastqc_sequence_counts'
11 changes: 7 additions & 4 deletions nextflow/run_multiqc_nextflow.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ Channel
params.fastq_screen_config = "config/fastq_screen.conf"
fastq_screen_config = file(params.fastq_screen_config)

params.multiqc_config = "config/multiqc_config.yaml"
multiqc_config = file(params.multiqc_config)
params.multiqc_flowcell_config = "config/multiqc_flowcell_config.yaml"
multiqc_flowcell_config = file(params.multiqc_flowcell_config)

params.multiqc_project_config = "config/multiqc_project_config.yaml"
multiqc_project_config = file(params.multiqc_project_config)

fastq_screen_db = file(params.fastq_screen_db)

Expand Down Expand Up @@ -107,7 +110,7 @@ process MultiQCPerFlowcell {
file (fastqscreen:'FastQScreen/*') from fastq_screen_results_for_flowcell.map{ it.get(1) }.collect().ifEmpty([])
file (interop_summary:'Interop_summary/*') from interop_summary_results.collect().ifEmpty([])
file runfolder
file config from multiqc_config
file config from multiqc_flowcell_config
file assets from assets

output:
Expand Down Expand Up @@ -141,7 +144,7 @@ process MultiQCPerProject {
input:
set project, file(fastqc: "*") from fastqc_results_for_project_grouped_by_project
set project_fastq_screen, file(fastqc_screen: "*") from fastq_screen_results_for_project_grouped_by_project
file config from multiqc_config
file config from multiqc_project_config
file runfolder
file assets from assets

Expand Down