filter damaged variants: clean output + VCF filtering

- flag C>T/G>A at read ends (end<=10) as FFPE-suspect, strand bias as supporting evidence
- outputs: candidate_variants.tsv [is_ffpe_suspect,ffpe_reason], clean_variants.tsv,
  ffpe_suspect_variants.tsv, candidate_CtoT/GtoA_clean.bed
- optional --vcf: produce .clean.vcf (without damaged) and .ffpe_flagged.vcf;
  with --keep-damaged mark FILTER=FFPE instead of removing
- auto-create BAM/FASTA index if missing, improved error messages
This commit is contained in:
2026-09-06 18:18:29 +03:00
parent 5fe6298926
commit 5385f76447
2 changed files with 181 additions and 6 deletions
+11
View File
@@ -3,3 +3,14 @@ __pycache__/
*.pyc
test_data/
FFPE_QC/
FFPE_sample/
*.bam
*.bai
*.fai
hg38.fa
hg38.fa.gz
*.vcf.gz
*.tbi
*.zip
README.html
124/