Commit 6bec4f68 authored by bue's avatar bue 🐮

@ annotTutorial : superset smoketest evolution

parent 9f845fc3
This source diff could not be displayed because it is too large. You can view the blob instead.
###
# title: acpipeTemplateCode_es8C002.py
#
# date: 2018-03-28
# license: GPL>=3
# author: bue
#
# description:
# acpipe script to generate a superset related acjson file.
# template automatically generated by annot softawre.
# check out: https://gitlab.com/biotransistor/annot
###
# python library
import json
# acpipe library
# check out: https://gitlab.com/biotransistor/acpipe_acjson
import acpipe_acjson.acjson as ac
import acpipe_aushon.gal2acjson as acgal
# load perturbationsetsets
with open('../../experiment_acjson/acaxis/acpipe_acjson-es-1layout2v3_ac.json') as f_json:
d_es1layout2v3 = json.load(f_json)
with open('../../experiment_acjson/acaxis/acpipe_acjson-es-2layout2v3_ac.json') as f_json:
d_es2layout2v3 = json.load(f_json)
with open('../../experiment_acjson/acaxis/acpipe_acjson-es-3layout2v3_ac.json') as f_json:
d_es3layout2v3 = json.load(f_json)
with open('../../experiment_acjson/acaxis/acpipe_acjson-esCol-1v2_ac.json') as f_json:
d_escol1v2 = json.load(f_json)
# supersetfiles code
d_acgal = acgal.well8x35x20(
s_runid = "es8v005",
s_gal_txt = "../../experiment_acjson/supersetfile/gal20151215LI8X005.gal",
ld_sourceplate_acjson = [
d_es1layout2v3,
d_es2layout2v3,
d_es3layout2v3,
],
s_opath=None,
)
# fuse acaxis acjson files
ac.acfuserepeat0011(
d_acjsonmajor=d_acgal,
d_acjsonminor=d_escol1v2,
s_ambiguous='timeseries',
b_deepcopy=False,
)
# relabel
ac.acrelabel(
s_runid="es8C002",
s_log="{} + {}".format(
d_acgal["log"],
d_escol1v2["acid"],
),
d_iacjson=d_acgal,
s_runtype=d_acgal["runtype"],
b_deepcopy=False,
)
# write to json file
print(f"write acjson file: {d_acgal['acid']}")
with open(d_acgal['acid'], 'w') as f_acjson:
json.dump(d_acgal, f_acjson, sort_keys=True)
......@@ -29,14 +29,36 @@ with open('../../experiment_acjson/acaxis/acpipe_acjson-es-2layout2v3_ac.json')
with open('../../experiment_acjson/acaxis/acpipe_acjson-es-3layout2v3_ac.json') as f_json:
d_es3layout2v3 = json.load(f_json)
with open('../../experiment_acjson/acaxis/acpipe_acjson-esCol-1v2_ac.json') as f_json:
d_escol1v2 = json.load(f_json)
# supersetfiles code
acgal.well8x35x20(
s_runid = "es8v005",
d_acgal = acgal.well8x35x20(
s_runid = "es8X005",
s_gal_txt = "../../experiment_acjson/supersetfile/gal20151215LI8X005.gal",
ld_sourceplate_acjson = [
d_es1layout2v3,
d_es2layout2v3,
d_es3layout2v3,
],
s_opath="./",
s_opath=None,
)
# fuse acaxis acjson files
ac.acfuserepeat0011(
d_acjsonmajor=d_acgal,
d_acjsonminor=d_escol1v2,
s_ambiguous='timeseries',
b_deepcopy=False,
)
# relabel
d_acgal["log"] = "{} + {}".format(
d_acgal["log"],
d_escol1v2["acid"],
)
# write to json file
print(f"write acjson file: {d_acgal['acid']}")
with open(d_acgal['acid'], 'w') as f_acjson:
json.dump(d_acgal, f_acjson, sort_keys=True)
......@@ -32,9 +32,12 @@ with open('../../experiment_acjson/acaxis/acpipe_acjson-es-3layout2v4_ac.json')
with open('../../experiment_acjson/acaxis/acpipe_acjson-es-4layout1v1_ac.json') as f_json:
d_es4layout1v1 = json.load(f_json)
with open('../../experiment_acjson/acaxis/acpipe_acjson-esCol-1v2_ac.json') as f_json:
d_escol1v2 = json.load(f_json)
# supersetfiles code
acgal.well8x35x20(
s_runid = "es8v006",
d_acgal = acgal.well8x35x20(
s_runid = "es8X006",
s_gal_txt = "../../experiment_acjson/supersetfile/gal20160419LI8X006.gal",
ld_sourceplate_acjson = [
d_es1layout2v3,
......@@ -42,5 +45,24 @@ acgal.well8x35x20(
d_es3layout2v4,
d_es4layout1v1,
],
s_opath="./",
s_opath=None,
)
# fuse acaxis acjson files
ac.acfuserepeat0011(
d_acjsonmajor=d_acgal,
d_acjsonminor=d_escol1v2,
s_ambiguous='timeseries',
b_deepcopy=False,
)
# relabel
d_acgal["log"] = "{} + {}".format(
d_acgal["log"],
d_escol1v2["acid"],
)
# write to json file
print(f"write acjson file: {d_acgal['acid']}")
with open(d_acgal['acid'], 'w') as f_acjson:
json.dump(d_acgal, f_acjson, sort_keys=True)
......@@ -29,14 +29,36 @@ with open('../../experiment_acjson/acaxis/acpipe_acjson-es-2layout3v6_ac.json')
with open('../../experiment_acjson/acaxis/acpipe_acjson-es-3layout2v6_ac.json') as f_json:
d_es3layout2v6 = json.load(f_json)
with open('../../experiment_acjson/acaxis/acpipe_acjson-esCol-1v2_ac.json') as f_json:
d_escol1v2 = json.load(f_json)
# supersetfiles code
acgal.well8x35x20(
s_runid = "es8v008",
d_acgal = acgal.well8x35x20(
s_runid = "es8X008",
s_gal_txt = "../../experiment_acjson/supersetfile/gal20161219LI8X008.gal",
ld_sourceplate_acjson = [
d_es1layout3v6,
d_es2layout3v6,
d_es3layout2v6,
],
s_opath="./",
s_opath=None,
)
# fuse acaxis acjson files
ac.acfuserepeat0011(
d_acjsonmajor=d_acgal,
d_acjsonminor=d_escol1v2,
s_ambiguous='timeseries',
b_deepcopy=False,
)
# relabel
d_acgal["log"] = "{} + {}".format(
d_acgal["log"],
d_escol1v2["acid"],
)
# write to json file
print(f"write acjson file: {d_acgal['acid']}")
with open(d_acgal['acid'], 'w') as f_acjson:
json.dump(d_acgal, f_acjson, sort_keys=True)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment