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

Bugfix/figure creation #129

Merged
merged 2 commits into from
Aug 7, 2024
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
2 changes: 1 addition & 1 deletion modules/local/plot_entity_binding_ratios.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ process PLOT_ENTITY_BINDING_RATIOS {
publishDir "${params.outdir}/figures", mode: params.publish_dir_mode

input:
path prep_entity_binding_ratios
each path(prep_entity_binding_ratios)
path alleles

output:
Expand Down
2 changes: 1 addition & 1 deletion modules/local/plot_score_distribution.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ process PLOT_SCORE_DISTRIBUTION {
'biocontainers/bioconductor-alphabeta:1.8.0--r41hdfd78af_0' }"

input:
path prep_scores
each path(prep_scores)
path alleles
path conditions

Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.bin.1.tsv.gz").exists() },
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_all.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log"),
path("$outputDir/logs/download_proteins.log")).match("logs") },
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_assembly_only.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.tsv.gz").exists() }
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_bins_only.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.bin.1.tsv.gz").exists() }
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_coassembly.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.tsv.gz").exists() },
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_mhcflurry.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.tsv.gz").exists() }
)
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_mhcnuggets_1.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.tsv.gz").exists() }
)
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_mhcnuggets_2.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.DPB1_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.DPB1_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.DPB1_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.DQB1_02_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.DQB1_02_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.DQB1_02_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.tsv.gz").exists() }
)
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_mouse.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.H2-Db.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.H2-Db.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.H2-Db.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.H2-Ld.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.H2-Ld.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.H2-Ld.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/WARNING_unify_peptide_lengths.log"),
path("$outputDir/logs/download_proteins.log")).match("logs") },
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_mouse_all_pep_lengths.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.H2-Db.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.H2-Db.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.H2-Db.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.H2-Ld.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.H2-Ld.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.H2-Ld.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log")).match("logs") },
{ assert new File("$outputDir/prodigal/proteins.pred_0.tsv.gz").exists() }
)
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_taxa_only.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log"),
path("$outputDir/logs/download_proteins.log")).match("logs") },
Expand Down
3 changes: 3 additions & 0 deletions tests/pipeline/test_taxa_specific_assembly.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ nextflow_pipeline {
{ assert new File("$outputDir/figures/entity_binding_ratios.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.A_01_01.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/entity_binding_ratios.with_points.B_07_02.pdf").exists() },
{ assert new File("$outputDir/figures/prediction_score_distribution.B_07_02.pdf").exists() },
{ assert snapshot(path("$outputDir/logs/prediction_warnings.log"),
path("$outputDir/logs/SUCCEEDED_unify_peptide_lengths.log"),
path("$outputDir/logs/download_proteins.log")).match("logs") },
Expand Down
Loading