Extracts cfDNA fragmentomics features (DELFI genome-wide short/long ratios, WPS nucleosome positioning, Griffin GC-corrected accessibility, end-motifs/MDS, OCF) from plasma WGS for cancer detection and tissue-of-origin. The features are four views of one nucleosome-footprint object, so GC correction and protocol-matching are non-negotiable.
pip install finaletoolkit pysam numpy pandas matplotlib
# Griffin: clone github.com/adoebley/Griffin and run its Snakemake pipeline (not pip-installable)
# DELFI is a methodology + company, not a package -- compute its features via finaletoolkit
Tell your AI agent what you want to do: - "Compute a genome-wide DELFI short/long fragment ratio profile for cancer detection" - "Profile nucleosome accessibility around TF binding sites for tissue of origin" - "Calculate end-motif frequencies and the Motif Diversity Score for my sample" - "GC-correct my fragmentomic features before comparing samples across batches" - "Apply in-silico size selection to enrich tumor fraction at low ctDNA"
"Run a GC-corrected DELFI score across 5 Mb bins for my plasma BAM and flag bins deviating from a healthy reference."
"Compute a custom short(100-150 bp)/long(151-220 bp) ratio profile and explain why it is not comparable across sequencing batches."
"Set up the Griffin Snakemake pipeline to profile nucleosome accessibility around a TF site list for subtype calling."
"Compute WPS over a promoter region and identify nucleosome positions and TF footprints."
"Extract 4-mer end-motif frequencies and compute the Motif Diversity Score, and interpret a raised MDS in the context of DNASE1L3 biology."
"My sample has tumor fraction below 0.03 -- recommend a feature family and whether to apply 90-150 bp size selection."
.frag.gz filedelfi, Griffin, or a standalone corrector)filter-file, not filter-bam