Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/2f/5825f7c966af52a3ff5b2cb082e33f/tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.tsv
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/arriba/blacklist_hg38_GRCh38_v2.4.0.tsv.gz
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/7b/794b10d7fcdf87cb535609b97c22ce/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/7b/794b10d7fcdf87cb535609b97c22ce/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/stage-99ebc9bd-f9f1-4b2c-b9a0-02ddaf99f257/ed/cac574e455bdcf55a155d65fb3ed05/starfusion_filter_config.yaml
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/blacklist_breakpoint_database_2026-04-27.tsv
==> STAGING COMPLETE (6 inputs)
=== DEBUGGING INFORMATION ===
Current working directory: /tmp/nxf.onZFQQ6Za0
Input files:
- starfusion_tsv: tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.tsv
- blacklist: blacklist_hg38_GRCh38_v2.4.0.tsv.gz
- filter_config: starfusion_filter_config.yaml
- aih_blacklist_breakpoints: blacklist_breakpoint_database_2026-04-27.tsv
=== PYTHON INFORMATION ===
/usr/local/bin/python
Python 3.11.14
/usr/local/bin/python3
Python 3.11.14
=== SCRIPT LOCATION ===
Checking for filter_starfusion_main.py:
/tmp/nxf.onZFQQ6Za0/nextflow-bin/filter_starfusion_main.py
filter_starfusion_main.py not in current directory
bin/filter_starfusion_main.py not found
bin/ directory does not exist
=== ENVIRONMENT PATH ===
/tmp/nxf.onZFQQ6Za0/nextflow-bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
=== CURRENT DIRECTORY CONTENTS ===
total 65264
drwx------. 3 1000 root 4096 Jun 8 09:47 .
drwxrwxrwx. 4 root root 86 Jun 8 09:47 ..
-rw-r--r--. 1 1000 root 0 Jun 8 09:47 .command.err
-rw-r--r--. 1 1000 root 884 Jun 8 09:47 .command.out
-rw-r--r--. 1 1000 root 14589 Jun 8 09:47 .command.run
-rw-r--r--. 1 1000 root 3236 Jun 8 09:47 .command.sh
-rw-r--r--. 1 1000 root 0 Jun 8 09:47 .command.trace
-rw-r--r--. 1 1000 root 10714998 Jun 8 09:47 blacklist_breakpoint_database_2026-04-27.tsv
-rw-r--r--. 1 1000 root 54779787 Jun 8 09:47 blacklist_hg38_GRCh38_v2.4.0.tsv.gz
drwxr-xr-x. 3 1000 root 4096 Jun 8 09:47 nextflow-bin
-rw-r--r--. 1 1000 root 4128 Jun 8 09:47 starfusion_filter_config.yaml
-rw-r--r--. 1 1000 root 1292299 Jun 8 09:47 tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.tsv
=== PROJECT DIRECTORY INFO ===
NXF_PROJECT_DIR: not set
baseDir: not set
=== Running filter script ===
================================================================================
STEP 1: LOADING STAR-FUSION PREDICTIONS
================================================================================
Loading STAR-Fusion predictions from: tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.tsv
✓ Loaded: 3130 fusions
================================================================================
STEP 2: CONVERTING TO BREAKPOINT_ID FORMAT
================================================================================
✓ Converted to breakpoint_ID format: 3130 valid, 0 invalid
================================================================================
STEP 3: FLAGGING WITH BLACKLIST
================================================================================
Loading blacklist (this may take a while)...
Loading blacklist from: blacklist_hg38_GRCh38_v2.4.0.tsv.gz
Loaded 9381 single rules and 16721785 pair rules
Indexed blacklist (bin_size=100000)
Flagging fusions with blacklist...
✓ Flagged 302 of 3130 fusions as blacklisted
================================================================================
STEP 3b: AIH CURATED BREAKPOINT BLACKLIST
================================================================================
Loading AIH blacklist table from: blacklist_breakpoint_database_2026-04-27.tsv
Qualified breakpoint keys (orientations): 1378
AIH curated blacklist: matched 151 fusion rows (breakpoint_ID in qualified set)
================================================================================
STEP 4: APPLYING YAML-BASED FILTER
================================================================================
✓ Filter initialized from: starfusion_filter_config.yaml
Applying filter criteria (adding CALL column)...
✓ Filter applied: 80 pass (CALL=1), 3050 fail (CALL=0)
Total fusions: 3130 (all rows retained)
Added FILTER column: PASS=80, FAIL=3050
✓ Verified: All 349 blacklisted fusions have CALL=0
================================================================================
STEP 5: GENERATING SUMMARY STATISTICS
================================================================================
================================================================================
FILTERING SUMMARY
================================================================================
Total fusions: 3130
Pass (CALL=1): 80 (2.6%)
Fail (CALL=0): 3050 (97.4%)
Blacklist Flagging:
Total blacklisted: 349
✓ All 349 blacklisted fusions have CALL=0
Failure Reasons (top 10):
Read count too low: 1 < 8: 1799
Excluded SpliceType: INCL_NON_REF_SPLICE: 738
Blacklisted: 198
Blacklisted; aih_curated_blacklist score(3): 104
Read count too low: 2 < 8: 69
aih_curated_blacklist score(3): 43
Excluded annotation pattern: HGNC_GENEFAM: 38
Read count too low: 3 < 8: 12
Excluded annotation pattern: GTEx_recurrent_StarF2019: 10
Read count too low: 6 < 8: 7
Breakdown by SpliceType:
INCL_NON_REF_SPLICE: 7 pass, 1229 fail (total: 1236)
ONLY_REF_SPLICE: 73 pass, 1821 fail (total: 1894)
Read Count Statistics:
Fusions with < 3 total reads: 2877
Of these, 2877 have CALL=0
================================================================================
STEP 6: EXPORTING RESULTS
================================================================================
✓ Results exported to: tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.filtered.tsv
Total fusions: 3130
CALL=1 (pass): 80
CALL=0 (fail): 3050
✓ Passing fusions (CALL=1) exported to: tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.filtered_pass_only.tsv
✓ Summary exported to: tih_rna_sample_00480_B23WHTKLT4_2.starfusion.starfusion.fusion_predictions.filter_summary.txt
================================================================================
✓ FILTERING COMPLETE
================================================================================