Phenotype

dbgen.tables.phenotype

class dbgen.tables.phenotype.Phenotype(*args, **values)
Parameters
  • name – name (e.g. substance name or phenotype name)

  • phenotype – corresponding phenotype (e.g. resistant/susceptible to a substance)

  • sample – reference to the corresponding sample

  • dataset – reference to the corresponding dataset

  • species – reference to the corresponding species

exception DoesNotExist
exception MultipleObjectsReturned
dbgen.tables.phenotype.import_data(species_name: str, dataset_name: str, dataset_file: str)

Import dataset

Parameters
  • species_name – species name

  • dataset_name – dataset names (e.g. name of the corresponding publication)

  • dataset_file – input file path