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

add masked_positions and masked_positions_file arguments to task polyphonia_detect_cross_contamination #499

Merged
merged 5 commits into from
Dec 15, 2023
Merged
Changes from 3 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
6 changes: 6 additions & 0 deletions pipes/WDL/tasks/tasks_intrahost.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ task polyphonia_detect_cross_contamination {
Int min_read_depth = 100
Array[File]? read_depths
Int max_mismatches = 1
String? masked_positions
File? masked_positions_file

Array[File]? plate_maps
Int? plate_size = 96
Expand Down Expand Up @@ -44,6 +46,8 @@ task polyphonia_detect_cross_contamination {
read_depths: { description: "Read depth tables (tab-separated, no header: reference name, position, read depth); provide alongside vcf files or heterozygosity tables if min-depth>0" }
min_genome_coverage: { description: "Minimum proportion genome covered for a sample to be included" }
max_mismatches: { description: "Maximum allowed bases in contaminating sample consensus not matching contaminated sample alleles" }
masked_positions: { description: "1-indexed positions to mask (e.g., 1-10,50,55-70)" }
masked_positions_file: { description: "1-indexed positions to mask, one per line" }

plate_maps: { description: "Optional plate map(s) (tab-separated, no header: sample name, plate position (e.g., A8))" }
plate_size: { description: "Standard plate size (6-well, 12-well, 24, 48, 96, 384, 1536, 3456)" }
Expand Down Expand Up @@ -83,6 +87,8 @@ task polyphonia_detect_cross_contamination {
~{'--min-readcount ' + min_readcount} \
~{'--max-mismatches ' + max_mismatches} \
~{'--min-maf ' + min_maf} \
~{'--masked-positions ' + masked_positions} \
--masked-positions-file ~{masked_positions_file} \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If masked positions file is optional, you should use the same optional parameter syntax as masked positions so it works properly if empty

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thank you!

$PLATE_MAPS_INPUT \
~{'--plate-size ' + plate_size} \
~{'--plate-columns ' + plate_columns} \
Expand Down
Loading