@@ -78,26 +78,28 @@ class BedStatsModel(BaseModel):
7878
7979
8080class BedPEPHub (BaseModel ):
81- sample_name : str = ""
82- genome : str = ""
83- organism : str = ""
84- species_id : str = ""
85- cell_type : str = ""
86- cell_line : str = ""
87- assay : str = Field ("" , description = "Experimental protocol (e.g. ChIP-seq)" )
88- library_source : str = Field (
81+ sample_name : str | None = ""
82+ genome : str | None = ""
83+ organism : str | None = ""
84+ species_id : str | None = ""
85+ cell_type : str | None = ""
86+ cell_line : str | None = ""
87+ assay : str | None = Field ("" , description = "Experimental protocol (e.g. ChIP-seq)" )
88+ library_source : str | None = Field (
8989 "" , description = "Library source (e.g. genomic, transcriptomic)"
9090 )
91- genotype : str = Field ("" , description = "Genotype of the sample" )
92- target : str = Field ("" , description = "Target of the assay (e.g. H3K4me3)" )
93- antibody : str = Field ("" , description = "Antibody used in the assay" )
94- treatment : str = Field (
91+ genotype : str | None = Field ("" , description = "Genotype of the sample" )
92+ target : str | None = Field ("" , description = "Target of the assay (e.g. H3K4me3)" )
93+ antibody : str | None = Field ("" , description = "Antibody used in the assay" )
94+ treatment : str | None = Field (
9595 "" , description = "Treatment of the sample (e.g. drug treatment)"
9696 )
97- tissue : str = Field ("" , description = "Tissue type" )
98- global_sample_id : str = Field ("" , description = "Global sample identifier" )
99- global_experiment_id : str = Field ("" , description = "Global experiment identifier" )
100- description : str = Field ("" , description = "Description of the sample" )
97+ tissue : str | None = Field ("" , description = "Tissue type" )
98+ global_sample_id : str | None = Field ("" , description = "Global sample identifier" )
99+ global_experiment_id : str | None = Field (
100+ "" , description = "Global experiment identifier"
101+ )
102+ description : str | None = Field ("" , description = "Description of the sample" )
101103
102104 model_config = ConfigDict (extra = "allow" , populate_by_name = True )
103105
@@ -107,35 +109,34 @@ class StandardMeta(BaseModel):
107109 Standardized Bed file metadata
108110 """
109111
110- species_name : str = Field (
111- default = "" , description = "Name of species. e.g. Homo sapiens." , alias = "organism"
112+ species_name : str | None = Field (
113+ default = None ,
114+ description = "Name of species. e.g. Homo sapiens." ,
115+ alias = "organism" ,
112116 )
113117 species_id : str = ""
114118 genotype : str = Field ("" , description = "Genotype of the sample" )
115119 phenotype : str = Field ("" , description = "Phenotype of the sample" )
116120 description : str | None = ""
117121
118- cell_type : str = Field (
119- "" ,
122+ cell_type : str | None = Field (
123+ None ,
120124 description = "specific kind of cell with distinct characteristics found in an organism. e.g. Neurons, Hepatocytes, Adipocytes" ,
121125 )
122- cell_line : str = Field (
123- "" ,
126+ cell_line : str | None = Field (
127+ None ,
124128 description = "population of cells derived from a single cell and cultured in the lab for extended use, e.g. HeLa, HepG2, k562" ,
125129 )
126- tissue : str = Field ("" , description = "Tissue type" )
130+ tissue : str | None = Field (None , description = "Tissue type" )
127131
128- library_source : str = Field (
129- "" , description = "Library source (e.g. genomic, transcriptomic)"
130- )
131- assay : str = Field (
132- "" ,
133- description = "Experimental protocol (e.g. ChIP-seq)" ,
132+ library_source : str | None = Field (
133+ None , description = "Library source (e.g. genomic, transcriptomic)"
134134 )
135- antibody : str = Field ("" , description = "Antibody used in the assay" )
136- target : str = Field ("" , description = "Target of the assay (e.g. H3K4me3)" )
137- treatment : str = Field (
138- "" , description = "Treatment of the sample (e.g. drug treatment)"
135+ assay : str | None = Field (None , description = "Experimental protocol (e.g. ChIP-seq)" )
136+ antibody : str | None = Field (None , description = "Antibody used in the assay" )
137+ target : str | None = Field (None , description = "Target of the assay (e.g. H3K4me3)" )
138+ treatment : str | None = Field (
139+ None , description = "Treatment of the sample (e.g. drug treatment)"
139140 )
140141
141142 global_sample_id : list [str ] | None = Field (
@@ -145,7 +146,7 @@ class StandardMeta(BaseModel):
145146 None , description = "Global experiment identifier. e.g. GSE000"
146147 ) # excluded in training
147148
148- original_file_name : str = Field ("" , description = "Original file name" )
149+ original_file_name : str | None = Field (None , description = "Original file name" )
149150
150151 model_config = ConfigDict (
151152 populate_by_name = True ,
0 commit comments