ch = logging.StreamHandler(sys.stdout) ch.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 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"
from cutlass import iHMPSession from pprint import pprint import tempfile 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"