feat: het indel product calling — ref-length FASTA + dual-track products#6
Draft
jbrestel wants to merge 8 commits into
Draft
feat: het indel product calling — ref-length FASTA + dual-track products#6jbrestel wants to merge 8 commits into
jbrestel wants to merge 8 commits into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rence length - Hom and het indels now emit ref_seq[pos:pos+len(REF)] instead of ALT allele or N masks - Ensures consensus FASTA always matches reference length; indel info tracked in DB - Also fixed SNP detection to check that allele length matches REF length - Added test_makeConsensusFastaFromGvcf.py with 4 test cases covering hom/het indels and low coverage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…hema with zygosity/alleles Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…is now reference-length
… het indels now emit products Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Nis reserved exclusively for low/no-coverage positions.genomic_indelstable withzygosity,ref_allele,alt_allelecolumns replaces the prior hom-only approach.findValues.plnow parses GT fields and emits the full 7-column TSV.processSequenceVariations.jlapplies indels to CDS sequences at product-calling time — hom indels emit one product (ALT-applied), het indels emit two products (REF + ALT), consistent with how het SNPs are handled today.Files Changed
bin/findValues.plmodules/mergeExperiments.nfgenomic_indelstable extended to 7 columnsbin/makeConsensusFastaFromGvcf.pybin/makeCodingData.jlfasta_offset; extendcodingIndels.dbschemabin/processSequenceVariations.jlget_indel_shift; addlookup_cds_indel,apply_indel_to_cds; indel product pathtesting/t/findValues.ttesting/t/test_makeConsensusFastaFromGvcf.pytesting/t/makeCodingData.jltesting/t/processSequenceVariations.jlTest Plan
python3 testing/t/test_makeConsensusFastaFromGvcf.py(4/4)julia testing/t/makeCodingData.jlandjulia testing/t/processSequenceVariations.jlPERL5LIB=... prove testing/t/findValues.tmergeExperimentsworkflow with a sample that has het indels and verifyproduct.datcontains both REF and ALT products🤖 Generated with Claude Code