Skip to content

Commit

Permalink
feat: convenience wrapper workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher committed Nov 27, 2024
1 parent cbeb2e3 commit 5e07a3b
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions workflows/methylation/methylation-standard.wdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version 1.1

import "./methylation-cohort.wdl" as cohort
import "./methylation-preprocess.wdl" as preprocess

workflow methylation {
meta {
description: "Run the methylation pipeline on a cohort of samples"
outputs: {
beta_swan_norm_unfiltered_genomic: "Normalized beta values for all probes that map to the genome",
combined_beta: "Matrix (in CSV format) containing beta values for every (common) probe on the array as rows and all of the input samples as columns.",
filtered_beta: "Matrix (in CSV format) containing only beta values for the retained probes (top N highest standard deviation) for all provided samples.",
filtered_probeset: "List of probe names that were retained after filtering to the top N highest standard deviation",
umap_embedding: "UMAP embedding for all samples",
umap_plot: "UMAP plot for all samples",
}
}

parameter_meta {
green_idats: "Array of raw green IDAT files from the Illumina methylation array"
red_idats: "Array of raw red IDAT files from the Illumina methylation array"
}

input {
Array[File] green_idats
Array[File] red_idats
}

scatter (pair in zip(green_idats, red_idats)) {
call preprocess.methylation_preprocess { input:
idats = pair
}
}

call cohort.methylation_cohort { input:
unfiltered_normalized_beta =
methylation_preprocess.beta_swan_norm_unfiltered_genomic,
}

output {
Array[File] beta_swan_norm_unfiltered_genomic =
methylation_preprocess.beta_swan_norm_unfiltered_genomic
File combined_beta = methylation_cohort.combined_beta
File filtered_beta = methylation_cohort.filtered_beta
File filtered_probeset = methylation_cohort.filtered_probeset
File umap_embedding = methylation_cohort.umap_embedding
File umap_plot = methylation_cohort.umap_plot
}
}

0 comments on commit 5e07a3b

Please sign in to comment.