-
Notifications
You must be signed in to change notification settings - Fork 109
Np add hla to warp #1643
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
base: develop
Are you sure you want to change the base?
Np add hla to warp #1643
Conversation
Remember to squash merge! |
🔍Changelog Validation Results:
|
🔍Version Validation Results:
|
all_of_us/hla/README.md
Outdated
## HLAGenotyping | ||
#### Background | ||
|
||
This WDL workflow performs HLA genotyping using three separate tools—HLA-HD, Polysolver, and OptiType—and generates a consensus genotype call. It supports both BAM and CRAM input formats and is designed to isolate HLA regions and call genotypes at high accuracy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"is designed to isolate HLA regions and call genotypes at high accuracy" repeats the previous sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 removed this sentence as its redundant
all_of_us/hla/README.md
Outdated
|
||
Key characteristics: | ||
- Uses GATK to extract and prepare HLA-specific reads. | ||
- Runs HLA-HD, and conditionally runs Polysolver and OptiType if sufficient allele information is detected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace "if sufficient allele information is detected" with "when HLA-HD fails to emit a three-field allele".
all_of_us/hla/README.md
Outdated
Key characteristics: | ||
- Uses GATK to extract and prepare HLA-specific reads. | ||
- Runs HLA-HD, and conditionally runs Polysolver and OptiType if sufficient allele information is detected. | ||
- Generates harmonized, two-field genotype calls from all tools. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It generates three-field genotypes, and most of the time uses only HLA-HD.
all_of_us/hla/README.md
Outdated
- Generates harmonized, two-field genotype calls from all tools. | ||
- Outputs a consensus genotype combining results from all callers. | ||
- Designed for hg38 reference genome. | ||
- Includes support for Terra-specific input quirks (e.g., `EMPTY_STRING_HACK` for optional fields). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a hack necessary to circumvent the outdated version of cromwell that Terra is tied to. It doesn't need to be listed as a characteristic of the workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed!
all_of_us/hla/README.md
Outdated
- `File ref_fasta` – Reference FASTA file | ||
- `File ref_fai` – FASTA index file | ||
- `File ref_dict` – Reference dictionary file | ||
- `File hla_intervals` – Interval list specifying HLA regions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps say "specifying HLA region of chromosome 6"
all_of_us/hla/README.md
Outdated
|
||
#### Step 4. Optitype (conditional) | ||
- If HLA-HD emits at least one two-field genotype, runs Optitype. | ||
- Genotypes A/B/C loci using paired-end FASTQs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say A/B/C genes rather than loci
all_of_us/hla/README.md
Outdated
|
||
#### Step 5. Consensus (conditional) | ||
- If both Polysolver and Optitype ran, generates a consensus genotype: | ||
- For A/B/C genes, overrides HLA-HD with Polysolver results if Polysolver and Optitype agree. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be precise, HLA-HD and Polysolver emit three-field resolution, while Optitype emits two-field. Optitype and Polysolver override HLA-HD if the two-field Optitype genotype is consistent with the Polysolver three field genotype.
all_of_us/hla/README.md
Outdated
#### Step 5. Consensus (conditional) | ||
- If both Polysolver and Optitype ran, generates a consensus genotype: | ||
- For A/B/C genes, overrides HLA-HD with Polysolver results if Polysolver and Optitype agree. | ||
- For other loci, retains HLA-HD results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loci --> genes
all_of_us/hla/README.md
Outdated
## MakeTable | ||
#### Background | ||
|
||
This WDL workflow consolidates HLA consensus calls from multiple samples into a single summary table. It generates a tabular output where each row represents a sample and each column represents one HLA allele call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify that diploid genotypes are represented by giving each gene two consecutive columns, one for each allele. Homozygous genotypes simply repeat the same allele, once in both columns.
- `Array[File] consensus_calls` – List of consensus result files, one per sample | ||
- `Array[String] sample_ids` – List of sample IDs (must be the same length and order as `consensus_calls`) | ||
|
||
#### Step 1. Combine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's only one step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True! I may keep this as is just to keep formatting consistent between AoU ReadMes.
Remember to squash merge! |
🔍Version Validation Results:
|
🔍Changelog Validation Results:
|
Description
Give your PR a concise yet descriptive title.
Please explain the changes you made here.
Explain the motivation for making this change. What existing problem does the pull request solve?
Mention any issues fixed, addressed, or otherwise related to this pull request, including issue numbers or hard links for issues in other repos.
You can delete these instructions once you have written your PR description.
Checklist
If you can answer "yes" to the following items, please add a checkmark next to the appropriate checklist item(s) and notify our WARP team by tagging @broadinstitute/warp-admins in a comment on this PR.