1+ from dandischema import DandiBaseModel
2+
3+
4+ class BioSample (DandiBaseModel ):
5+ """Description of the sample that was studied"""
6+
7+ identifier : Identifier = Field (nskey = "schema" )
8+ sampleType : SampleType = Field (
9+ description = "Identifier for the sample characteristics (e.g., from OBI, Encode)." ,
10+ nskey = "dandi" ,
11+ )
12+ assayType : Optional [List [AssayType ]] = Field (
13+ None , description = "Identifier for the assay(s) used (e.g., OBI)." , nskey = "dandi"
14+ )
15+ anatomy : Optional [List [Anatomy ]] = Field (
16+ None ,
17+ description = "Identifier for what organ the sample belongs "
18+ "to. Use the most specific descriptor from sources such as UBERON." ,
19+ nskey = "dandi" ,
20+ )
21+
22+ wasDerivedFrom : Optional [List ["BioSample" ]] = Field (
23+ None ,
24+ description = "Describes the hierarchy of sample derivation or aggregation." ,
25+ nskey = "prov" ,
26+ )
27+ wasAttributedTo : Optional [List [Participant ]] = Field (
28+ None ,
29+ description = "Participant(s) or Subject(s) associated with this sample." ,
30+ nskey = "prov" ,
31+ )
32+ sameAs : Optional [List [Identifier ]] = Field (None , nskey = "schema" )
33+ hasMember : Optional [List [Identifier ]] = Field (None , nskey = "prov" )
34+
35+ _ldmeta = {
36+ "rdfs:subClassOf" : ["schema:Thing" , "prov:Entity" ],
37+ "rdfs:label" : "Information about the biosample." ,
38+ "nskey" : "dandi" ,
39+ }
0 commit comments