junidude14 commited on
Commit
9278e95
·
verified ·
1 Parent(s): 96d84b1

Archive 4 checkpoints (1-4)

Browse files
paper-releases/pbisc-diffusion/updates/20261014T113716Z-figure1-overview-training-corpus/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/tools/figure1_overview_20261014.py ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Original, editable biological overview glyphs inspired by the supplied panel d."""
2
+ from pathlib import Path
3
+ import hashlib
4
+ import json
5
+ import os
6
+ import sys
7
+ import numpy as np
8
+ if os.environ.get('CUDA_VISIBLE_DEVICES') != '':
9
+ raise SystemExit('CPU-only: CUDA_VISIBLE_DEVICES must be empty')
10
+ D=Path(__file__).resolve().parents[1]
11
+ M=D.parents[1]
12
+ A=D/'data/figure1_revision_20261014/overview'
13
+ O=D/'figures/figure1_revision_20261014/overview'
14
+ sys.path.insert(0,str(D/'tools'))
15
+ import style
16
+ import matplotlib.pyplot as plt
17
+ from matplotlib.patches import PathPatch, Circle, FancyArrowPatch, Rectangle
18
+ from matplotlib.path import Path as MPath
19
+ INK='#222222'; BLUE='#168FE5'; PALE='#D7ECF9'; GOLD='#D9B23F'
20
+ CELL=['#4C7195','#9ABACF','#C98A4B','#6B977B','#A3BE97','#9576A2']
21
+
22
+
23
+ def sha(p):
24
+ with Path(p).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
25
+
26
+
27
+ def organic(ax,x,y,rx,ry,colour,edge='none',lw=.8,phase=0,alpha=1):
28
+ t=np.linspace(0,2*np.pi,145)
29
+ r=1+.045*np.sin(3*t+phase)+.025*np.cos(5*t-phase)
30
+ xy=np.column_stack([x+rx*r*np.cos(t),y+ry*r*np.sin(t)])
31
+ ax.add_patch(PathPatch(MPath(xy,closed=True),facecolor=colour,edgecolor=edge,lw=lw,alpha=alpha,zorder=2))
32
+
33
+
34
+ def cell(ax,x,y,r,c,phase=0,nucleus=True):
35
+ organic(ax,x,y,r,r*.91,c,phase=phase)
36
+ if nucleus:organic(ax,x-r*.12,y+r*.02,r*.40,r*.38,'#FFFFFF',phase=phase+1,alpha=.53)
37
+
38
+
39
+ def cloud(ax,x,y,scale=1,noise=False):
40
+ coords=[(-.45,.20),(-.19,.36),(.10,.30),(.41,.20),(-.53,-.11),(-.24,-.02),(.05,.02),(.35,-.08),(-.31,-.32),(.02,-.30),(.37,-.34)]
41
+ for j,(dx,dy) in enumerate(coords):
42
+ cell(ax,x+dx*scale,y+dy*scale,.115*scale, '#C8CDD1' if noise else CELL[j%len(CELL)],phase=j*.7,nucleus=not noise)
43
+
44
+
45
+ def model(ax,x,y,adapted=False,scale=1):
46
+ organic(ax,x,y,.56*scale,.51*scale,PALE,edge='#93BAD4',lw=1.0,phase=.8)
47
+ pts=np.array([[-.30,.19],[0,.29],[.29,.14],[-.30,-.17],[0,-.03],[.27,-.20],[.02,-.31]])*scale
48
+ for a,b in [(0,1),(0,3),(0,4),(1,2),(1,4),(2,4),(2,5),(3,4),(3,6),(4,5),(4,6),(5,6)]:
49
+ ax.plot([x+pts[a,0],x+pts[b,0]],[y+pts[a,1],y+pts[b,1]],color='#86B6D6',lw=.9,zorder=3)
50
+ for i,(dx,dy) in enumerate(pts):cell(ax,x+dx,y+dy,.078*scale,BLUE,phase=i,nucleus=False)
51
+ if adapted:
52
+ for i,(dx,dy) in enumerate([(.47,.34),(.57,.05),(.44,-.37)]):
53
+ ax.plot([x+.20*scale,x+dx*scale],[y+dy*.5*scale,y+dy*scale],color='#9D8946',lw=.9,zorder=3)
54
+ cell(ax,x+dx*scale,y+dy*scale,.095*scale,GOLD,phase=i,nucleus=False)
55
+
56
+
57
+ def arrow(ax,start,end,via=None,label=None,label_xy=None):
58
+ if via:
59
+ verts=[start,*via,end]
60
+ path=MPath(verts,[MPath.MOVETO]+[MPath.LINETO]*(len(verts)-1))
61
+ patch=FancyArrowPatch(path=path,arrowstyle='-|>',mutation_scale=12,lw=1.05,color=INK,zorder=1)
62
+ else:patch=FancyArrowPatch(start,end,arrowstyle='-|>',mutation_scale=12,lw=1.05,color=INK,zorder=1)
63
+ ax.add_patch(patch)
64
+ if label:
65
+ lx,ly=label_xy or ((start[0]+end[0])/2,(start[1]+end[1])/2+.18)
66
+ ax.text(lx,ly,label,ha='center',va='center',fontsize=10.5,color=INK,
67
+ bbox=dict(facecolor='white',edgecolor='none',pad=1.5))
68
+
69
+
70
+ def bars(ax,x,y,w=.7,h=.42):
71
+ vals=[.16,.55,.9,.36,.71,.18,.43,.78,.29]
72
+ for j,v in enumerate(vals):ax.add_patch(Rectangle((x-w/2+j*w/len(vals),y),w/len(vals)*.67,h*v,facecolor='#B89D4D',edgecolor='none',zorder=3))
73
+ ax.plot([x-w/2,x+w/2],[y,y],color='#888888',lw=.6)
74
+
75
+
76
+ def main():
77
+ A.mkdir(parents=True,exist_ok=True);O.mkdir(parents=True,exist_ok=True)
78
+ fig,ax=plt.subplots(figsize=(12.3,5.7));ax.axis('off');ax.set_xlim(-.1,12.3);ax.set_ylim(-.6,5.1);ax.set_aspect('equal')
79
+ for x,num,title in [(.12,'1','Pretrain on single cells'),(4.45,'2','Adapt on measured pairs'),(8.5,'3','Generate from new bulk')]:
80
+ ax.text(x,4.94,num,fontsize=16,fontweight='bold',va='top')
81
+ ax.text(x+.30,4.94,title,fontsize=14,va='top',fontweight='bold')
82
+ # Training: same-sample member counts define the conditioning pseudobulk.
83
+ cloud(ax,.90,3.72,.92)
84
+ ax.text(.90,2.94,'33.14M\ntraining cells',ha='center',va='top',fontsize=12.5,linespacing=1.35)
85
+ arrow(ax,(1.48,3.73),(2.12,3.73))
86
+ organic(ax,2.87,3.65,.58,.83,'#F3F3F0',edge='#B4B6B2',phase=2)
87
+ bars(ax,2.87,3.87,.71,.40)
88
+ ax.text(2.87,4.46,'Same sample',ha='center',fontsize=11)
89
+ ax.text(2.87,3.68,'Pseudobulk',ha='center',fontsize=10.5)
90
+ cell(ax,2.87,3.31,.19,CELL[3],phase=1.4)
91
+ ax.text(2.87,2.99,'Member cell',ha='center',fontsize=10.5)
92
+ arrow(ax,(2.66,2.78),(2.22,2.16),label='condition + target',label_xy=(3.10,2.35))
93
+ model(ax,2.00,1.60)
94
+ ax.text(2.00,.86,'Pretrained PBISC',ha='center',fontsize=13,fontweight='bold')
95
+ ax.text(2.00,.49,'Learn gene value and detection',ha='center',fontsize=10.5,color='#555555')
96
+ # Adaptation: pairing is represented by a light common envelope, not a Venn overlap.
97
+ organic(ax,6.22,3.67,1.20,.64,'#F2F5F3',phase=1)
98
+ bars(ax,5.63,3.55,.73,.52)
99
+ cloud(ax,6.83,3.75,.66)
100
+ ax.text(6.22,4.46,'Paired samples · same donor',ha='center',fontsize=11)
101
+ ax.text(5.63,3.04,'Measured bulk',ha='center',fontsize=10.5)
102
+ ax.text(6.83,3.04,'scRNA-seq',ha='center',fontsize=10.5)
103
+ arrow(ax,(6.22,2.81),(6.22,2.19),label='LoRA adaptation',label_xy=(7.28,2.53))
104
+ arrow(ax,(2.66,1.60),(5.54,1.60),label='pretrained weights',label_xy=(4.09,1.83))
105
+ model(ax,6.22,1.60,adapted=True)
106
+ ax.text(6.22,.86,'Adapted PBISC',ha='center',fontsize=13,fontweight='bold')
107
+ ax.scatter([5.40],[.48],s=30,c=GOLD,zorder=5)
108
+ ax.text(5.56,.48,'Trainable adapters',ha='left',va='center',fontsize=10.5,color='#555555')
109
+ # Inference: new measured bulk is shared; N_gen noise draws produce cells.
110
+ bars(ax,9.25,3.60,.80,.55)
111
+ ax.text(9.25,4.46,'New measured bulk',ha='center',fontsize=10.5)
112
+ cloud(ax,11.35,3.79,.65,noise=True)
113
+ ax.text(11.35,4.46,'Gaussian noise',ha='center',fontsize=10.5)
114
+ arrow(ax,(9.43,3.35),(9.94,2.95))
115
+ arrow(ax,(11.18,3.30),(10.76,2.95))
116
+ model(ax,10.35,2.49,adapted=True,scale=.9)
117
+ arrow(ax,(6.96,1.60),(9.69,2.49),via=[(8.54,1.60),(8.54,2.49)],label='reuse model',label_xy=(7.82,1.83))
118
+ arrow(ax,(10.35,1.94),(10.35,1.34),label='denoise',label_xy=(11.20,1.67))
119
+ cloud(ax,10.35,.85,1.01)
120
+ ax.text(10.35,.18,'Generated single cells',ha='center',fontsize=12.5,fontweight='bold')
121
+ ax.plot([.12,12.08],[-.13,-.13],color='#D7D7D7',lw=.7)
122
+ ax.text(6.10,-.43,'Held-out paired evaluation: cell composition · disease signals · rare populations',
123
+ ha='center',va='center',fontsize=11.6,color='#444444')
124
+ fig.subplots_adjust(left=.01,right=.99,top=.99,bottom=.01)
125
+ for ext in ['png','pdf','svg']:fig.savefig(O/f'experimental_overview.{ext}',dpi=260)
126
+ plt.close(fig)
127
+ detail=('Original schematic redrawn with editable organic vector circles, muted fills, thin dark arrows and open white space, '
128
+ 'inspired by the supplied reference panel d. No scientific objects or numeric results were copied from that paper. '
129
+ '33,141,380 is the verified unique training-cell universe. A same-sample K-cell recipe supplies pseudobulk conditioning '
130
+ 'to each member target cell. Pretrained weights initialize LoRA adaptation on measured bulk–scRNA pairs. '
131
+ 'New measured bulk and independent Gaussian-noise draws generate cells, without supplied cell-type quotas. '
132
+ 'Cell colours and model-node glyphs are schematic, not counts, measured populations or a literal architecture. '
133
+ 'The main model uses no cell-type/disease input labels; Figure2 oracle/prediction-hint ablations are separate. '
134
+ 'Generated annotations are post hoc. Conditioning recipe K and generated-cell number N_gen are distinct. '
135
+ 'Held-out scRNA is evaluation truth, never shown as an inference input. Rare-population endpoints are evaluation '
136
+ 'objectives, not a claim of completed source-cluster recovery; Figure6 bulk-only published-finding reproduction remains TODO.')
137
+ src=[Path(__file__),M/'runs/f01_6k_1x_seed20260627/ALLCELL_DATA_CONTRACT.json',
138
+ D/'data/figure_assignment_20261013/AUTHOR_SCOPE.md',D/'PBISC-Diffusion_color_palette_20261013.md',
139
+ Path('/home/sj_server_1/PBISC/paper-release-20260928/manuscript/scripts/build_figure1_architecture_nature.py')]
140
+ result={'schema':'pbisc.figure1-overview.20261014.v1','slides':[{'kind':'content','title':'Experimental overview',
141
+ 'section':'Figure 1','deck_group':'Figure 1','section_label':'Fig. 1a','layout':'full','keywords':[],
142
+ 'figures':[str((O/'experimental_overview.png').relative_to(D))],
143
+ 'footnote':'Schematic. K defines the pseudobulk recipe; N_gen defines generated-cell count. Held-out scRNA is used only for evaluation.',
144
+ 'footnote_full':detail,'sources':'; '.join(str(p) for p in src)}],
145
+ 'reference_style':{'path':'/home/sj_server_1/.codex/attachments/15a605fb-2cca-4162-9f87-354b7c57cac6/codex-clipboard-98e511c6-7c97-416f-9054-2e6db758e44e.png','interpretation':'panel d: organic flat circles, minimal black arrows, white background; existing method palette retained'},
146
+ 'assets':[str(p) for p in O.glob('*')], 'sources':[{'path':str(p),'sha256':sha(p)} for p in src],
147
+ 'new_training':False,'new_inference':False}
148
+ (A/'result.json').write_text(json.dumps(result,indent=2)+'\n')
149
+
150
+
151
+ if __name__=='__main__':main()
paper-releases/pbisc-diffusion/updates/20261014T113716Z-figure1-overview-training-corpus/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/tools/figure1_train_corpus_20261014.py ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Exact training-source composition; metadata-only, bounded streaming.
3
+
4
+ The source support chart uses all 41,395,184 corpus cells. This derivative
5
+ counts the actual train split, including the unlabelled overlay, once per
6
+ cell. It never estimates training composition by rescaling source shares.
7
+ """
8
+ from __future__ import annotations
9
+
10
+ import ast
11
+ from collections import Counter
12
+ import csv
13
+ import gzip
14
+ import hashlib
15
+ import json
16
+ from pathlib import Path
17
+ import re
18
+
19
+ import matplotlib
20
+ matplotlib.use('Agg')
21
+ import matplotlib.pyplot as plt
22
+ from matplotlib.patches import Rectangle
23
+ import numpy as np
24
+ import pandas as pd
25
+ import pyarrow.parquet as pq
26
+
27
+ D = Path(__file__).resolve().parents[1]
28
+ M = D.parents[1]
29
+ MS = Path('/home/sj_server_1/PBISC/paper-release-20260928/manuscript')
30
+ C = MS/'source_data/corpus'
31
+ M7 = M.parent/'model_7_no_annotation_sh_hwang/data'
32
+ E2 = M7/'e2_full_source/metadata/obs_sc.parquet'
33
+ BLOCK = Path('/home/sj_server_1/PBISC/PBISC-data/single-cell-data-block-blood/metadata/obs_sc.parquet')
34
+ DATA = D/'data/figure1_revision_20261014/train_corpus'
35
+ FIG = D/'figures/figure1_revision_20261014/train_corpus'
36
+ KEY = ['dataset_id','donor_id','sample_id']
37
+ INK, SUB = '#1A1A1A', '#626262'
38
+ SOURCES, ASSETS = {}, []
39
+
40
+
41
+ def sha(path):
42
+ h=hashlib.sha256()
43
+ with Path(path).open('rb') as f:
44
+ for chunk in iter(lambda:f.read(1<<20),b''): h.update(chunk)
45
+ return h.hexdigest()
46
+
47
+
48
+ def source(path, role):
49
+ path=Path(path)
50
+ SOURCES[str(path)]={'path':str(path),'host':'server_1','sha256':sha(path),
51
+ 'bytes':path.stat().st_size,'role':role}
52
+ return path
53
+
54
+
55
+ def doc(path,role): return json.loads(source(path,role).read_text())
56
+
57
+
58
+ def table(path,role): return pd.read_csv(source(path,role))
59
+
60
+
61
+ def output_csv(name,rows):
62
+ p=DATA/(name+'.csv')
63
+ with p.open('w',newline='') as f:
64
+ w=csv.DictWriter(f,fieldnames=list(rows[0]));w.writeheader();w.writerows(rows)
65
+ ASSETS.append(str(p))
66
+
67
+
68
+ def output_json(name,data):
69
+ p=DATA/(name+'.json');p.write_text(json.dumps(data,indent=2)+'\n');ASSETS.append(str(p));return p
70
+
71
+
72
+ def geo(acc):
73
+ rows={}
74
+ p=source(C/'geo'/f'{acc}_series_matrix.txt.gz','original compact GEO donor metadata')
75
+ with gzip.open(p,'rt') as f:
76
+ for line in f:
77
+ if not line.startswith('!Sample_'):continue
78
+ k,*v=line.rstrip('\n').split('\t');rows.setdefault(k,[]).append([x.strip('"') for x in v])
79
+ t=pd.DataFrame({'gsm':rows['!Sample_geo_accession'][0],'title':rows['!Sample_title'][0]})
80
+ for v in rows.get('!Sample_characteristics_ch1',[]):
81
+ for i,s in enumerate(v):
82
+ if ': ' in s:
83
+ k,x=s.split(': ',1);t.loc[i,k.strip()]=x.strip()
84
+ for i,v in enumerate(rows.get('!Sample_description',[])):t[f'description_{i}']=v
85
+ return t
86
+
87
+
88
+ def aggregate():
89
+ summ=doc(C/'corpus_summary.json','all-source totals used for independent replay checks')
90
+ g=table(C/'corpus_cellgroups.csv','cell-level condition and split counts, including overlay')
91
+ samples=table(C/'corpus_samples.csv','compact registered sample and split table')
92
+ ds=table(C/'corpus_datasets.csv','independent train totals by dataset')
93
+ srcct=table(C/'corpus_celltypes.csv','independent all-source L1/L2 counts')
94
+ contract=doc(M/'runs/f01_6k_1x_seed20260627/ALLCELL_DATA_CONTRACT.json','completed training all-cell coverage contract')
95
+ idx=doc(M7/'e2_full_index/dataset_manifest.json','training corpus fingerprint and registered split')
96
+ si=pd.read_parquet(source(M7/'e2_full_index/metadata/sample_index.parquet','exact sample-to-train/validation/test assignment'))
97
+ assert not si.duplicated(KEY).any()
98
+ for col in KEY:si[col]=si[col].astype(str)
99
+ assert set(si.sample_key)==set(samples.sample_key)
100
+ sc=samples.merge(si[['sample_key','n_cells','split']],on='sample_key',suffixes=('_table','_index'),validate='one_to_one')
101
+ assert (sc.n_cells_table==sc.n_cells_index).all() and (sc.split_table==sc.split_index).all()
102
+ source(C/'README.md','source-condition interpretation and biological-donor correction rules')
103
+ source(MS/'scripts/corpus/build_corpus_tables.py','source-condition and donor harmonization implementation')
104
+ colorcode=source(MS/'scripts/corpus/build_figure1_corpus.py','preserved biological category colors and L1 merge rules')
105
+ maps={}
106
+ for n in ast.parse(colorcode.read_text()).body:
107
+ if isinstance(n,ast.Assign):
108
+ for t in n.targets:
109
+ if isinstance(t,ast.Name) and t.id in ['COND_COLOR','L1_COLOR','L1_ORDER','L1_MERGE']:
110
+ maps[t.id]=ast.literal_eval(n.value)
111
+ # Canonical donor corrections match the corpus table builder. GSE274680
112
+ # source keys are per visit; actual subjects are retrieved through GSM.
113
+ g274=geo('GSE274680');subjects=g274['subject id'].fillna(g274['subject'])
114
+ assert subjects.notna().all()
115
+ gsm_subject=dict(zip(g274.gsm,subjects))
116
+ g132=geo('GSE132802');dress_dx=dict(zip(g132.description_0.str.strip(),g132['disease diagnosis']))
117
+ donor_correction={}
118
+ counts=Counter();sample_counts=Counter();shards=[];overlay=Counter()
119
+ files=sorted(E2.glob('*.parquet'));assert len(files)==432
120
+ for fi,ep in enumerate(files):
121
+ source(ep,'corpus sample membership and original row identity metadata')
122
+ epq=pq.ParquetFile(ep)
123
+ ov=ep.name.endswith('__strict_overlay.parquet')
124
+ is274=ep.name.startswith('061_A')
125
+ bp=None if ov else BLOCK/ep.name
126
+ if bp:
127
+ source(bp,'matched original source L1 annotation metadata')
128
+ bpq=pq.ParquetFile(bp)
129
+ assert epq.metadata.num_rows==bpq.metadata.num_rows
130
+ bcols=['source_row_index','celltype_l1']+(['source_file'] if is274 else [])
131
+ bb=iter(bpq.iter_batches(batch_size=65536,columns=bcols,use_threads=False))
132
+ local=Counter();nrows=0
133
+ for eb in epq.iter_batches(batch_size=65536,columns=KEY+['source_row_index'],use_threads=False):
134
+ e=eb.to_pandas()
135
+ for col in KEY:e[col]=e[col].astype(str)
136
+ if ov:e['celltype_l1']='No label (overlay)'
137
+ else:
138
+ b=next(bb).to_pandas()
139
+ assert len(b)==len(e) and np.array_equal(b.source_row_index.to_numpy(),e.source_row_index.to_numpy())
140
+ e['celltype_l1']=b.celltype_l1.astype(str).to_numpy()
141
+ if is274:
142
+ e['source_file']=b.source_file.astype(str).to_numpy()
143
+ for r in e[KEY+['source_file']].drop_duplicates().itertuples(index=False):
144
+ k=tuple(r[:3]);gsm=re.search(r'(GSM\d+)_',r.source_file).group(1)
145
+ corrected=gsm_subject[gsm]
146
+ assert k not in donor_correction or donor_correction[k]==corrected
147
+ donor_correction[k]=corrected
148
+ # Aggregate per sample before the compact join to avoid per-cell
149
+ # string-heavy joined tables. No expression values are accessed.
150
+ a=e.groupby(KEY+['celltype_l1'],observed=True).size().rename('cells').reset_index()
151
+ a=a.merge(si[KEY+['split','sample_key']],on=KEY,how='left',validate='many_to_one')
152
+ assert a.split.notna().all()
153
+ for r in a.itertuples(index=False):
154
+ counts[(r.split,r.celltype_l1)]+=int(r.cells)
155
+ local[r.split]+=int(r.cells);sample_counts[r.sample_key]+=int(r.cells)
156
+ if ov:overlay[r.split]+=int(r.cells)
157
+ nrows+=len(e)
158
+ assert nrows==epq.metadata.num_rows
159
+ if bp:assert next(bb,None) is None
160
+ shards.append({'shard':ep.name,'n_cells':nrows,'train':local['train'],'val':local['val'],'test':local['test'],'overlay':ov})
161
+ if fi%40==0:print(f'metadata {fi+1}/{len(files)}',flush=True)
162
+ assert sum(counts.values())==summ['cells']
163
+ all_l1=Counter()
164
+ for (s,c),n in counts.items():all_l1[c]+=n
165
+ assert dict(all_l1)==summ['celltype_l1_cells']
166
+ assert dict(srcct.groupby('celltype_l1').n_cells.sum())==dict(all_l1)
167
+ assert all(sample_counts[r.sample_key]==r.n_cells for r in si.itertuples(index=False))
168
+ split_totals={s:sum(n for (ss,c),n in counts.items() if ss==s) for s in ['train','val','test']}
169
+ assert split_totals==summ['split_cells']
170
+ assert sum(overlay.values())==summ['overlay_cells']
171
+ assert split_totals['train']==contract['coverage_after_topup']['train_universe_cells']==33141380
172
+ assert contract['coverage_after_topup']['train_cells_covered_after_topup']==33141380
173
+ assert idx['corpus_fingerprint']==contract['pairing']['source_corpus_fingerprint']
174
+ train=g[g.split=='train'];N=int(train.n_cells.sum())
175
+ assert N==33141380==int(ds.train_cells.sum())==int(si.loc[si.split=='train','n_cells'].sum())
176
+ cond={k:int(v) for k,v in train.groupby('condition').n_cells.sum().items()}
177
+ cells=Counter()
178
+ for (s,c),n in counts.items():
179
+ if s=='train':cells[maps['L1_MERGE'].get(c,c)]+=n
180
+ assert sum(cells.values())==N and set(cells)==set(maps['L1_ORDER'])
181
+ donors=set();all_donors=set();ds_train=set()
182
+ for r in si.itertuples(index=False):
183
+ k=(r.dataset_id,r.donor_id,r.sample_id)
184
+ if r.dataset_id.startswith('061_A'):dn=donor_correction[k]
185
+ elif r.dataset_id.startswith('300b_A'):dn='healthy volunteer' if dress_dx[r.donor_id]=='Healthy' else 'DRESS patient'
186
+ else:dn=r.donor_id
187
+ all_donors.add((r.dataset_id,dn))
188
+ if r.split=='train':donors.add((r.dataset_id,dn));ds_train.add(r.dataset_id)
189
+ assert len(all_donors)==summ['donors']==3199
190
+ nh=N-cond['Healthy'];risk=cond['ACPA+ at risk of RA']
191
+ cmv=int(train.loc[train.cmv_seropositive_healthy,'n_cells'].sum())
192
+ iv=int(train.loc[(train.condition=='Healthy')&(train.handling=='in vitro'),'n_cells'].sum())
193
+ z={'n_cells':N,'datasets':len(ds_train),'samples':int((si.split=='train').sum()),'donors':len(donors),
194
+ 'healthy_cells':cond['Healthy'],'disease_or_at_risk_cells':nh,'at_risk_cells':risk,
195
+ 'disease_history_without_at_risk_cells':nh-risk,'condition_cells':cond,'celltype_cells':dict(cells),
196
+ 'healthy_cmv_seropositive_cells':cmv,'healthy_in_vitro_cells':iv,'overlay_cells':dict(overlay),
197
+ 'split_cells':split_totals,'corpus_fingerprint':idx['corpus_fingerprint'],'maps':maps,
198
+ 'source_total_cells':summ['cells'],'all_source_donors':len(all_donors),
199
+ 'checks':{'source_row_alignment_all_base_shards':True,'all_source_l1_replay_matches_saved_table':True,
200
+ 'all_sample_counts_replay_matches_index':True,'all_split_counts_match_saved_tables':True,
201
+ 'donor_correction_replay_matches_saved_total':True,'all_train_covered_by_final_run_contract':True}}
202
+ output_csv('celltype_by_split',[{'split':s,'celltype_l1':c,'n_cells':n,'share_of_split':n/split_totals[s]}
203
+ for (s,c),n in sorted(counts.items())])
204
+ output_csv('training_celltype_counts',[{'celltype':c,'n_cells':cells[c],'training_fraction':cells[c]/N,'color':maps['L1_COLOR'][c]}
205
+ for c in maps['L1_ORDER']])
206
+ output_csv('training_condition_counts',[{'condition':c,'n_cells':cond[c],'training_fraction':cond[c]/N,
207
+ 'disease_detail_fraction':cond[c]/nh if c!='Healthy' else '',
208
+ 'color':maps['COND_COLOR'][c]} for c in summ['conditions_order']])
209
+ output_csv('shard_checks',shards)
210
+ output_csv('training_dataset_counts',[{'dataset_prefix':r.dataset_prefix,'dataset':r.short_name,'train_cells':int(r.train_cells)} for r in ds.itertuples(index=False)])
211
+ return z
212
+
213
+
214
+ def donut(ax,counts,colors,top,bottom):
215
+ ax.pie(counts,colors=colors,startangle=90,counterclock=False,
216
+ wedgeprops={'width':.29,'edgecolor':'white','linewidth':1.4})
217
+ ax.text(0,.06,top,ha='center',va='center',fontsize=22,fontweight='bold')
218
+ ax.text(0,-.18,bottom,ha='center',va='center',fontsize=12,color=SUB)
219
+ ax.set_aspect('equal')
220
+
221
+
222
+ def plot(z):
223
+ N=z['n_cells'];cond=z['condition_cells'];cts=z['celltype_cells'];maps=z['maps'];nh=z['disease_or_at_risk_cells']
224
+ fig=plt.figure(figsize=(12.3,5.6))
225
+ fig.text(.028,.965,f"33,141,380 training cells · {z['datasets']} datasets · {z['samples']:,} samples · {z['donors']:,} donor identities",fontsize=16,fontweight='bold')
226
+ fig.text(.028,.887,'Healthy versus disease / at-risk',fontsize=14,fontweight='bold')
227
+ fig.text(.355,.887,'Disease / at-risk detail',fontsize=14,fontweight='bold')
228
+ fig.text(.687,.887,'Training cell-type composition',fontsize=14,fontweight='bold')
229
+ a=fig.add_axes([.035,.461,.275,.415]);b=fig.add_axes([.367,.461,.275,.415]);c=fig.add_axes([.700,.461,.275,.415])
230
+ donut(a,[cond['Healthy'],nh],[maps['COND_COLOR']['Healthy'],'#94776F'],'33.14M','training cells')
231
+ detail=sorted((k for k in cond if k!='Healthy'),key=cond.get,reverse=True)
232
+ donut(b,[cond[k] for k in detail],[maps['COND_COLOR'][k] for k in detail],f'{nh/1e6:.3f}M','disease / at-risk')
233
+ ct=maps['L1_ORDER'];donut(c,[cts[k] for k in ct],[maps['L1_COLOR'][k] for k in ct],'33.14M','training cells')
234
+ fig.text(.028,.431,f"Healthy: {cond['Healthy']:,} ({cond['Healthy']/N*100:.1f}%)",fontsize=12.4,fontweight='bold',color='#52647D')
235
+ fig.text(.028,.384,f"Disease / at-risk: {nh:,} ({nh/N*100:.1f}%)",fontsize=11.5,color='#765B54')
236
+ fig.text(.028,.305,'Healthy donor status includes:',fontsize=12,fontweight='bold')
237
+ fig.text(.028,.259,f"• {z['healthy_in_vitro_cells']/1e6:.3f}M in-vitro cytokine/PBS or IL-36 cells\n• {z['healthy_cmv_seropositive_cells']/1e6:.3f}M CMV-seropositive healthy cells\n• Post-vaccination draws",fontsize=10.8,va='top',linespacing=1.6,color=SUB)
238
+ fig.text(.028,.130,'ACPA+ at risk is not confirmed RA.',fontsize=11,fontweight='bold')
239
+ fig.text(.028,.082,f"Disease/history excluding at-risk: {z['disease_history_without_at_risk_cells']/N*100:.2f}%\nAt-risk alone: {z['at_risk_cells']/N*100:.2f}% of training cells",fontsize=10.5,va='top',linespacing=1.4,color=SUB)
240
+ for i,k in enumerate(detail):
241
+ y=.433-i*.035
242
+ fig.patches.append(Rectangle((.350,y-.010),.010,.019,transform=fig.transFigure,color=maps['COND_COLOR'][k],lw=0))
243
+ fig.text(.368,y,k,fontsize=10.5,va='center')
244
+ fig.text(.653,y,f'{cond[k]:,} · {cond[k]/nh*100:.1f}%',fontsize=10.3,color=SUB,va='center',ha='right')
245
+ for i,k in enumerate(ct):
246
+ y=.433-i*.035
247
+ fig.patches.append(Rectangle((.685,y-.010),.010,.019,transform=fig.transFigure,color=maps['L1_COLOR'][k],lw=0))
248
+ fig.text(.703,y,k,fontsize=10.5,va='center')
249
+ pct=cts[k]/N*100;pp=f'{pct:.1f}%' if pct>=.1 else '<0.1%'
250
+ fig.text(.987,y,f'{cts[k]:,} · {pp}',fontsize=10.3,color=SUB,va='center',ha='right')
251
+ fig.text(.355,.026,'Each training source cell is counted once; not recipe-weighted exposure.',fontsize=10.8,color=SUB)
252
+ for ext in ['png','pdf','svg']:
253
+ p=FIG/('training_corpus_composition.'+ext);fig.savefig(p,dpi=220,facecolor='white');ASSETS.append(str(p))
254
+ plt.close(fig)
255
+ return str((FIG/'training_corpus_composition.png').relative_to(D))
256
+
257
+
258
+ def main():
259
+ DATA.mkdir(parents=True,exist_ok=True);FIG.mkdir(parents=True,exist_ok=True)
260
+ plt.rcParams.update({'font.family':'sans-serif','font.sans-serif':['Arial','Liberation Sans'],
261
+ 'font.size':14,'pdf.fonttype':42,'svg.fonttype':'none','figure.facecolor':'white','text.color':INK})
262
+ z=aggregate();figure=plot(z)
263
+ source(Path(__file__).resolve(),'reproducible exact training split metadata aggregation and figure builder')
264
+ ver=output_json('verified_data',z)
265
+ roster=output_json('source_hashes',{'schema':'pbisc.training-corpus-source-hashes.v1','sources':list(SOURCES.values())})
266
+ source(roster,'complete 432 E2 plus 404 matched annotation source metadata hash roster and compact contracts')
267
+ source(ver,'exact training-source statistics and independent numeric checks')
268
+ bindings=[SOURCES[str(ver)],SOURCES[str(roster)],SOURCES[str(Path(__file__).resolve())]]
269
+ note=(f"Exact training-source composition from the same 33,141,380-cell universe covered by the final f01_6k_1x_seed20260627 run. "
270
+ f"22 datasets, {z['samples']:,} samples, {z['donors']:,} biological donor identities after the original corpus GEO corrections. "
271
+ f"Healthy {z['healthy_cells']:,} ({z['healthy_cells']/z['n_cells']*100:.4f}%); disease/at-risk {z['disease_or_at_risk_cells']:,}. "
272
+ "Condition counts use saved cell-level groups filtered to train, never sample-majority labels. Cell types are recomputed from matching corpus and source annotation metadata, with row identity checked for every base shard and exact sample membership joined to the registered train split. "
273
+ f"All {z['overlay_cells']['train']:,} train overlay cells remain included as Unlabelled. Source-cell replay across all splits matches the independently saved 41,395,184-cell L1 summary exactly. "
274
+ "ACPA+ is risk, not confirmed RA; Post-COVID is historical/post-infection; Cytopenia is not equated with confirmed malignancy. Healthy includes stimulation, post-vaccination and CMV-seropositive donors. Cell/condition labels are descriptive, not final base-model inputs. Unique source-cell proportions do not describe recipe-weighted target exposure. "
275
+ "This panel does not assert biological donor-disjoint internal validation; the original 27-donor cross-split caveat remains.")
276
+ panel={'key':'main_figure1_training_corpus','kind':'content','title':'Pretraining data: 33.14 million training cells',
277
+ 'subtitle':'Actual training-split composition, with each source cell counted once',
278
+ 'figure':figure,'figures':[figure],'section':'Figure 1','section_label':'Figure 1 · main panel',
279
+ 'keywords':[],'footnote':'Exact training split; disease / at-risk includes ACPA+ risk. Counts describe unique source cells, not recipe-weighted exposure.',
280
+ 'note':note,'footnote_full':note,'palette':'biological','source_refs':[b['path'] for b in bindings],'source_bindings':bindings}
281
+ output_json('hashes',{'sources':list(SOURCES.values()),'outputs':[{'path':p,'sha256':sha(p)} for p in ASSETS]})
282
+ result={'schema':'pbisc.figure1.training-corpus.v1','panels':[panel],'slides':[panel],
283
+ 'assets':ASSETS+[str(DATA/'result.json')],'sources':list(SOURCES.values()),'verified_data':z,
284
+ 'new_training':False,'new_inference':False,'raw_expression_payload_read':False}
285
+ (DATA/'result.json').write_text(json.dumps(result,indent=2)+'\n')
286
+ print(json.dumps({'cells':z['n_cells'],'healthy':z['healthy_cells'],'donors':z['donors'],
287
+ 'assets':len(result['assets']),'sources':len(SOURCES),'result':str(DATA/'result.json')}),flush=True)
288
+
289
+
290
+ if __name__=='__main__':main()
paper-releases/pbisc-diffusion/updates/20261014T113716Z-figure1-overview-training-corpus/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/tools/verify_figure1_master_20261014.py ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Verify source hashes, page preservation, embedded pictures and rendered bounds."""
2
+ from pathlib import Path
3
+ from datetime import datetime,timezone
4
+ import hashlib
5
+ import json
6
+ import sys
7
+ import fitz
8
+ from pptx import Presentation
9
+ D=Path(__file__).resolve().parents[1]
10
+ A=D/'data/figure1_revision_20261014';Q=A/'qa'
11
+ sys.path.insert(0,str(D/'tools'))
12
+ import verify_expanded_master_20261013 as H
13
+ H.QA=Q
14
+
15
+
16
+ def sha(path):
17
+ with Path(path).open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
18
+
19
+
20
+ def main():
21
+ Q.mkdir(exist_ok=True)
22
+ spec=json.loads((A/'spec.json').read_text());m=json.loads((A/'manifest.json').read_text())
23
+ records=spec['slides'];pp=D/spec['deck']['output_pptx'];pf=D/spec['deck']['output_pdf']
24
+ prs=Presentation(pp);pdf=fitz.open(pf);fail=[]
25
+ counts={'spec':len(records),'pptx':len(prs.slides),'pdf':len(pdf)}
26
+ if set(counts.values())!={m['total_slides']}:fail.append(['page_counts',counts])
27
+ if sorted(s['parent_154_page'] for s in records if 'parent_154_page' in s)!=list(range(1,155)):fail.append(['parent_coverage'])
28
+ if sorted(s['original_slide'] for s in records if 'original_slide' in s)!=list(range(1,77)):fail.append(['original_coverage'])
29
+ for p,b in m['sources'].items():
30
+ if sha(p)!=b['sha256']:fail.append(['source_hash',p])
31
+ for p,h in m['protected_sources'].items():
32
+ if sha(p)!=h:fail.append(['protected_hash',p])
33
+ original=json.loads(Path(m['parent_spec']).read_text())['slides']
34
+ for s in records:
35
+ if 'parent_154_page' in s and s['parent_154_page']!=7 and s.get('figures',[])!=original[s['parent_154_page']-1].get('figures',[]):
36
+ fail.append(['parent_picture_replaced',s['parent_154_page']])
37
+ images=[];fonts=set()
38
+ for n,(slide,s) in enumerate(zip(prs.slides,records),1):
39
+ images.append(H._image_proofs(slide,s,n,fail))
40
+ for shape in slide.shapes:
41
+ if shape.left < -2 or shape.top < -2 or shape.left+shape.width > prs.slide_width+2 or shape.top+shape.height > prs.slide_height+2:
42
+ fail.append(['shape_bounds',n,shape.name])
43
+ for tf in H._text_frames(shape):
44
+ for paragraph in tf.paragraphs:
45
+ for run in paragraph.runs:fonts.update(H._font_names(run,paragraph))
46
+ if fonts!={'Arial'}:fail.append(['font',sorted(fonts)])
47
+ for n,page in enumerate(pdf,1):
48
+ for block in page.get_text('dict')['blocks']:
49
+ for line in block.get('lines',[]):
50
+ for span in line.get('spans',[]):
51
+ x0,y0,x1,y1=span['bbox']
52
+ if x0<-.75 or y0<-.75 or x1>page.rect.width+.75 or y1>page.rect.height+.75:
53
+ fail.append(['pdf_text_bounds',n,span['text']])
54
+ renders=H._render(pdf,records)
55
+ m['output']['pdf']={'path':str(pf),'sha256':sha(pf)}
56
+ (A/'manifest.json').write_text(json.dumps(m,indent=2)+'\n')
57
+ report=dict(schema='pbisc.figure1-revision.qa.v1',checked_at=datetime.now(timezone.utc).isoformat(),
58
+ status='automated_pass_visual_pending' if not fail else 'failed',automated_checks_pass=not fail,
59
+ failures=fail,counts=counts,parent154_represented=True,modified_parent_pages=[7],original76_preserved=True,
60
+ newpages=m['newpages'],groups=m['groups'],image_checks=images,renders=renders,fonts=sorted(fonts),
61
+ artifacts=m['output'],visual_review={'status':'pending'})
62
+ (Q/'VERIFICATION.json').write_text(json.dumps(report,indent=2)+'\n')
63
+ print(json.dumps({'pass':not fail,'counts':counts,'failures':fail}))
64
+ if fail:raise SystemExit(1)
65
+
66
+
67
+ if __name__=='__main__':main()
paper-releases/pbisc-diffusion/updates/20261014T113716Z-figure1-overview-training-corpus/diffusion/metadata/request.json ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "assets": [
3
+ {
4
+ "host": "server_1",
5
+ "kind": "report",
6
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/AGENTS.md",
7
+ "state": "completed"
8
+ },
9
+ {
10
+ "host": "server_1",
11
+ "kind": "report",
12
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/ara/trace/exploration_tree.yaml",
13
+ "state": "completed"
14
+ },
15
+ {
16
+ "host": "server_1",
17
+ "kind": "report",
18
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/ara/trace/pm_reasoning_log.yaml",
19
+ "state": "completed"
20
+ },
21
+ {
22
+ "host": "server_1",
23
+ "kind": "report",
24
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/ara/trace/sessions/2026-10-14_001.yaml",
25
+ "state": "completed"
26
+ },
27
+ {
28
+ "host": "server_1",
29
+ "kind": "report",
30
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/ara/trace/sessions/session_index.yaml",
31
+ "state": "completed"
32
+ },
33
+ {
34
+ "host": "server_1",
35
+ "kind": "report",
36
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/PBISC-Diffusion_expanded_master_20261014_figure1.pdf",
37
+ "state": "completed"
38
+ },
39
+ {
40
+ "host": "server_1",
41
+ "kind": "report",
42
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/PBISC-Diffusion_expanded_master_20261014_figure1.pptx",
43
+ "state": "completed"
44
+ },
45
+ {
46
+ "host": "server_1",
47
+ "kind": "report",
48
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/README.md",
49
+ "state": "completed"
50
+ },
51
+ {
52
+ "host": "server_1",
53
+ "kind": "report",
54
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/README.md",
55
+ "state": "completed"
56
+ },
57
+ {
58
+ "host": "server_1",
59
+ "kind": "report",
60
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/manifest.json",
61
+ "state": "completed"
62
+ },
63
+ {
64
+ "host": "server_1",
65
+ "kind": "report",
66
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/overview/result.json",
67
+ "state": "completed"
68
+ },
69
+ {
70
+ "host": "server_1",
71
+ "kind": "table",
72
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/page_map.csv",
73
+ "state": "completed"
74
+ },
75
+ {
76
+ "host": "server_1",
77
+ "kind": "report",
78
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/VERIFICATION.json",
79
+ "state": "completed"
80
+ },
81
+ {
82
+ "host": "server_1",
83
+ "kind": "report",
84
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact01.png",
85
+ "state": "completed"
86
+ },
87
+ {
88
+ "host": "server_1",
89
+ "kind": "report",
90
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact02.png",
91
+ "state": "completed"
92
+ },
93
+ {
94
+ "host": "server_1",
95
+ "kind": "report",
96
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact03.png",
97
+ "state": "completed"
98
+ },
99
+ {
100
+ "host": "server_1",
101
+ "kind": "report",
102
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact04.png",
103
+ "state": "completed"
104
+ },
105
+ {
106
+ "host": "server_1",
107
+ "kind": "report",
108
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact05.png",
109
+ "state": "completed"
110
+ },
111
+ {
112
+ "host": "server_1",
113
+ "kind": "report",
114
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact06.png",
115
+ "state": "completed"
116
+ },
117
+ {
118
+ "host": "server_1",
119
+ "kind": "report",
120
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact07.png",
121
+ "state": "completed"
122
+ },
123
+ {
124
+ "host": "server_1",
125
+ "kind": "report",
126
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact08.png",
127
+ "state": "completed"
128
+ },
129
+ {
130
+ "host": "server_1",
131
+ "kind": "report",
132
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact09.png",
133
+ "state": "completed"
134
+ },
135
+ {
136
+ "host": "server_1",
137
+ "kind": "report",
138
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact10.png",
139
+ "state": "completed"
140
+ },
141
+ {
142
+ "host": "server_1",
143
+ "kind": "report",
144
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact11.png",
145
+ "state": "completed"
146
+ },
147
+ {
148
+ "host": "server_1",
149
+ "kind": "report",
150
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact12.png",
151
+ "state": "completed"
152
+ },
153
+ {
154
+ "host": "server_1",
155
+ "kind": "report",
156
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/contact13.png",
157
+ "state": "completed"
158
+ },
159
+ {
160
+ "host": "server_1",
161
+ "kind": "report",
162
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/slide001.png",
163
+ "state": "completed"
164
+ },
165
+ {
166
+ "host": "server_1",
167
+ "kind": "report",
168
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/slide006.png",
169
+ "state": "completed"
170
+ },
171
+ {
172
+ "host": "server_1",
173
+ "kind": "report",
174
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/slide007.png",
175
+ "state": "completed"
176
+ },
177
+ {
178
+ "host": "server_1",
179
+ "kind": "report",
180
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/slide008.png",
181
+ "state": "completed"
182
+ },
183
+ {
184
+ "host": "server_1",
185
+ "kind": "report",
186
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/qa/slide009.png",
187
+ "state": "completed"
188
+ },
189
+ {
190
+ "host": "server_1",
191
+ "kind": "report",
192
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/render.log",
193
+ "state": "completed"
194
+ },
195
+ {
196
+ "host": "server_1",
197
+ "kind": "code",
198
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/render.py",
199
+ "state": "completed"
200
+ },
201
+ {
202
+ "host": "server_1",
203
+ "kind": "report",
204
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/spec.json",
205
+ "state": "completed"
206
+ },
207
+ {
208
+ "host": "server_1",
209
+ "kind": "report",
210
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/VERIFICATION.json",
211
+ "state": "completed"
212
+ },
213
+ {
214
+ "host": "server_1",
215
+ "kind": "table",
216
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/celltype_by_split.csv",
217
+ "state": "completed"
218
+ },
219
+ {
220
+ "host": "server_1",
221
+ "kind": "report",
222
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/hashes.json",
223
+ "state": "completed"
224
+ },
225
+ {
226
+ "host": "server_1",
227
+ "kind": "report",
228
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/result.json",
229
+ "state": "completed"
230
+ },
231
+ {
232
+ "host": "server_1",
233
+ "kind": "table",
234
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/shard_checks.csv",
235
+ "state": "completed"
236
+ },
237
+ {
238
+ "host": "server_1",
239
+ "kind": "report",
240
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/source_hashes.json",
241
+ "state": "completed"
242
+ },
243
+ {
244
+ "host": "server_1",
245
+ "kind": "table",
246
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/training_celltype_counts.csv",
247
+ "state": "completed"
248
+ },
249
+ {
250
+ "host": "server_1",
251
+ "kind": "table",
252
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/training_condition_counts.csv",
253
+ "state": "completed"
254
+ },
255
+ {
256
+ "host": "server_1",
257
+ "kind": "table",
258
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/training_dataset_counts.csv",
259
+ "state": "completed"
260
+ },
261
+ {
262
+ "host": "server_1",
263
+ "kind": "report",
264
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure1_revision_20261014/train_corpus/verified_data.json",
265
+ "state": "completed"
266
+ },
267
+ {
268
+ "host": "server_1",
269
+ "kind": "report",
270
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/figure_assignment_20261013/STRENGTHENING_PROPOSAL.md",
271
+ "state": "completed"
272
+ },
273
+ {
274
+ "host": "server_1",
275
+ "kind": "figure",
276
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/figure1_revision_20261014/overview/experimental_overview.pdf",
277
+ "state": "completed"
278
+ },
279
+ {
280
+ "host": "server_1",
281
+ "kind": "figure",
282
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/figure1_revision_20261014/overview/experimental_overview.png",
283
+ "state": "completed"
284
+ },
285
+ {
286
+ "host": "server_1",
287
+ "kind": "figure",
288
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/figure1_revision_20261014/overview/experimental_overview.svg",
289
+ "state": "completed"
290
+ },
291
+ {
292
+ "host": "server_1",
293
+ "kind": "figure",
294
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/figure1_revision_20261014/train_corpus/training_corpus_composition.pdf",
295
+ "state": "completed"
296
+ },
297
+ {
298
+ "host": "server_1",
299
+ "kind": "figure",
300
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/figure1_revision_20261014/train_corpus/training_corpus_composition.png",
301
+ "state": "completed"
302
+ },
303
+ {
304
+ "host": "server_1",
305
+ "kind": "figure",
306
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/figure1_revision_20261014/train_corpus/training_corpus_composition.svg",
307
+ "state": "completed"
308
+ },
309
+ {
310
+ "host": "server_1",
311
+ "kind": "code",
312
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/tools/build_figure1_master_20261014.py",
313
+ "state": "completed"
314
+ },
315
+ {
316
+ "host": "server_1",
317
+ "kind": "code",
318
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/tools/figure1_overview_20261014.py",
319
+ "state": "completed"
320
+ },
321
+ {
322
+ "host": "server_1",
323
+ "kind": "code",
324
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/tools/figure1_train_corpus_20261014.py",
325
+ "state": "completed"
326
+ },
327
+ {
328
+ "host": "server_1",
329
+ "kind": "code",
330
+ "source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/tools/verify_figure1_master_20261014.py",
331
+ "state": "completed"
332
+ }
333
+ ],
334
+ "inference_locations": [],
335
+ "project_id": "pbisc-diffusion",
336
+ "summary": "Figure1a organic vector redesign and exact33.14M training-corpus mainFigure1b;155-page deck, no model experiments; metadata-only aggregation and fullsource preservation."
337
+ }