ch.setFormatter(formatter) root.addHandler(ch) set_logging() session = iHMPSession(username, password) print("Required fields: ") print(MicrobiomeAssayPrep.required_fields()) prep = MicrobiomeAssayPrep() prep.comment = "Hello world!" prep.pride_id = "PRIDE ID" prep.center = "the center" prep.contact = "first name last name" prep.sample_name = "name of the sample" prep.experiment_type = "PRIDE:0000429, Shotgun proteomics" prep.prep_id = "the prep id" prep.storage_duration = 30 prep.study = "prediabetes" prep.title = "the title" # Optional properties prep.short_label = "the short label" prep.url = ["http://prep.url"] prep.species = "the species" prep.cell_type = "the cell type" prep.tissue = "test tissue" prep.reference = "the reference" prep.protocol_name = "name of the protocol"
import sys username = "******" password = "******" session = iHMPSession(username, password) print("Required fields: ") print(MicrobiomeAssayPrep.required_fields()) prep = MicrobiomeAssayPrep() prep.comment = "Hello world!" prep.pride_id = "PRIDE ID" prep.center = "the center" prep.contact = "first name last name" prep.sample_name = "name of the sample" prep.experiment_type = "PRIDE:0000429, Shotgun proteomics" prep.prep_id = "the prep id" prep.storage_duration = 30 prep.study = "prediabetes" prep.title = "the title" # Optional properties prep.short_label = "the short label" prep.url = [ "http://prep.url" ] prep.species = "the species" prep.cell_type = "the cell type" prep.tissue = "test tissue" prep.reference = "the reference"