Class PhenopacketBuilder
java.lang.Object
org.phenopackets.phenopackettools.builder.PhenopacketBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddAllBiosamples
(List<org.phenopackets.schema.v2.core.Biosample> biosampleList) addBiosample
(org.phenopackets.schema.v2.core.Biosample biosample) addDisease
(org.phenopackets.schema.v2.core.Disease disease) addDiseases
(List<org.phenopackets.schema.v2.core.Disease> diseaseList) addFile
(org.phenopackets.schema.v2.core.File file) addInterpretation
(org.phenopackets.schema.v2.core.Interpretation interpretation) addMeasurement
(org.phenopackets.schema.v2.core.Measurement measurement) addMeasurements
(List<org.phenopackets.schema.v2.core.Measurement> measurementList) addMedicalAction
(org.phenopackets.schema.v2.core.MedicalAction medicalAction) addMedicalActions
(List<org.phenopackets.schema.v2.core.MedicalAction> previousTreatments) addPhenotypicFeature
(String id, String label) addPhenotypicFeature
(org.phenopackets.schema.v2.core.PhenotypicFeature feature) addPhenotypicFeatures
(List<org.phenopackets.schema.v2.core.PhenotypicFeature> features) org.phenopackets.schema.v2.Phenopacket
build()
static PhenopacketBuilder
individual
(org.phenopackets.schema.v2.core.Individual subject)
-
Method Details
-
create
public static PhenopacketBuilder create(String id, org.phenopackets.schema.v2.core.MetaData metaData) -
individual
-
addPhenotypicFeature
-
addPhenotypicFeature
public PhenopacketBuilder addPhenotypicFeature(org.phenopackets.schema.v2.core.PhenotypicFeature feature) -
addPhenotypicFeatures
public PhenopacketBuilder addPhenotypicFeatures(List<org.phenopackets.schema.v2.core.PhenotypicFeature> features) -
addMeasurement
-
addMeasurements
public PhenopacketBuilder addMeasurements(List<org.phenopackets.schema.v2.core.Measurement> measurementList) -
addBiosample
-
addAllBiosamples
public PhenopacketBuilder addAllBiosamples(List<org.phenopackets.schema.v2.core.Biosample> biosampleList) -
addInterpretation
public PhenopacketBuilder addInterpretation(org.phenopackets.schema.v2.core.Interpretation interpretation) -
addDisease
-
addDiseases
-
addMedicalAction
public PhenopacketBuilder addMedicalAction(org.phenopackets.schema.v2.core.MedicalAction medicalAction) -
addFile
-
build
public org.phenopackets.schema.v2.Phenopacket build() -
addMedicalActions
public PhenopacketBuilder addMedicalActions(List<org.phenopackets.schema.v2.core.MedicalAction> previousTreatments)
-