Skip to content

4 Custom Labels

Joses W. Ho edited this page Aug 20, 2018 · 1 revision

Load experiment

In [1]: expt1=esp.espresso(folder=path_to_expt1)
In [2]: expt1
1 feedlog with a total of 30 flies.
3 genotypes ['w1118;Trh-Gal4' 'w1118;UAS-Gz-TrpA1;Trh-Zal' 'Trh-Gal4>UAS-GZ-TrpA1_Trh-ZAL'].
1 temperature [22].
1 foodtype ['5% sucrose + 5% yeast extract'].

Attach custom label

Why attach custom labels? TBC

In [3]: expt1.attach_label(label_name='starved_time',label_value='24hr')

The attach_label() function will print out a message acknowledging the label attached.

starved_time has been added as a new label, with '24hr' as the custom value.

Let's examine the modified experiment.

In [4]: expt1
1 feedlog with a total of 30 flies.
3 genotypes ['w1118;Trh-Gal4' 'w1118;UAS-Gz-TrpA1;Trh-Zal' 'Trh-Gal4>UAS-GZ-TrpA1_Trh-ZAL'].
1 temperature [22].
1 label has been added: ['starved_time']

Notice the last line: the ESPRESSO object notes that a custom label has been added.

Attach custom label by concatenating existing columns

TBC

Remove custom label(s)

TBC

Remove all custom labels

TBC

Clone this wiki locally