v2 CN: synthetic implant evaluation (CYTO-022); reference GTC discovery follows symlinks

216 implanted events in 22 synthetic GSA samples (4 replicates per kind x fraction x
size; reference model from 30 other samples): constitutional DEL/DUP 16/16 at 5-20 Mb,
mosaic loss/gain/CN-LOH at 15 % / 5 Mb 12/12.
This commit is contained in:
kemal committed 2026-09-29 01:30:07 +01:00
1 parent 724e87dc66
commit 457eaf65e7
3 files changed
+246 -1

No files matched your search

+2 -1
View File
@@ -88,9 +88,10 @@ def run_build_model(
n_ref = 0
if reference_gtcs is not None:
from simurg.cn.model import reference_stats
from simurg.formats.discovery import discover_gtcs
from simurg.formats.gtc import read_gtc
paths = sorted(reference_gtcs.rglob("*.gtc"))
paths = sorted(discover_gtcs(reference_gtcs).values()) # E_NO_INPUT when there is none
if len(paths) > max_reference:
idx = np.random.default_rng(42).choice(len(paths), max_reference, replace=False)
paths = [paths[i] for i in sorted(idx)]