java.lang.Object
org.phenopackets.phenopackettools.builder.PhenopacketBuilder

public class PhenopacketBuilder extends Object
  • Method Details

    • create

      public static PhenopacketBuilder create(String id, org.phenopackets.schema.v2.core.MetaData metaData)
    • individual

      public PhenopacketBuilder individual(org.phenopackets.schema.v2.core.Individual subject)
    • addPhenotypicFeature

      public PhenopacketBuilder addPhenotypicFeature(String id, String label)
    • addPhenotypicFeature

      public PhenopacketBuilder addPhenotypicFeature(org.phenopackets.schema.v2.core.PhenotypicFeature feature)
    • addPhenotypicFeatures

      public PhenopacketBuilder addPhenotypicFeatures(List<org.phenopackets.schema.v2.core.PhenotypicFeature> features)
    • addMeasurement

      public PhenopacketBuilder addMeasurement(org.phenopackets.schema.v2.core.Measurement measurement)
    • addMeasurements

      public PhenopacketBuilder addMeasurements(List<org.phenopackets.schema.v2.core.Measurement> measurementList)
    • addBiosample

      public PhenopacketBuilder addBiosample(org.phenopackets.schema.v2.core.Biosample biosample)
    • addAllBiosamples

      public PhenopacketBuilder addAllBiosamples(List<org.phenopackets.schema.v2.core.Biosample> biosampleList)
    • addInterpretation

      public PhenopacketBuilder addInterpretation(org.phenopackets.schema.v2.core.Interpretation interpretation)
    • addDisease

      public PhenopacketBuilder addDisease(org.phenopackets.schema.v2.core.Disease disease)
    • addDiseases

      public PhenopacketBuilder addDiseases(List<org.phenopackets.schema.v2.core.Disease> diseaseList)
    • addMedicalAction

      public PhenopacketBuilder addMedicalAction(org.phenopackets.schema.v2.core.MedicalAction medicalAction)
    • addFile

      public PhenopacketBuilder addFile(org.phenopackets.schema.v2.core.File file)
    • build

      public org.phenopackets.schema.v2.Phenopacket build()
    • addMedicalActions

      public PhenopacketBuilder addMedicalActions(List<org.phenopackets.schema.v2.core.MedicalAction> previousTreatments)