4. Architecture analysis at node scale

4.1. Module requierement

4.1.1. Import standard module python

[1]:
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

4.1.2. Import strawberry modules

[2]:
import openalea.strawberry #import openalea.strawberry module
from openalea.strawberry.import_mtgfile import import_mtgfile, plant_number_by_varieties
from openalea.strawberry.analysis import extract_at_node_scale,prob_axillary_production

4.2. Import and read mtg files

  • Import and read mtg file for each varieties

[3]:
Gariguette = import_mtgfile(filename= "Gariguette")
Capriss = import_mtgfile(filename = "Capriss")
Darselect = import_mtgfile(filename = "Darselect")
Cir107 = import_mtgfile(filename = "Cir107")
Ciflorette = import_mtgfile(filename = "Ciflorette")
Clery = import_mtgfile(filename="Clery")
  • Import and read mtg for the varities Gariguette and Capriss in the single big mtg file

[4]:
All_varieties = import_mtgfile(filename=["Gariguette","Capriss","Darselect","Cir107","Ciflorette", "Clery"])
plant_number_by_varieties(All_varieties)
Gariguette : 54 plants
Ciflorette : 54 plants
Cir107 : 54 plants
Darselect : 54 plants
Clery : 54 plants
Capriss : 54 plants

4.3. Extraction of data at node scale

This section shows how to extract node scale data as a dataframe using extract_at_node_scale

[5]:
df_node_Gar = extract_at_node_scale(Gariguette)

4.4. Analysis at node scale

In this section you will find the available analyses at node scale and associated plots.

Currently, only the analysis of axillary production propability as function of node rank is possible.

  • probability of axillary production according to node rank allows to identify the probability of having a stolon (S), vegetative bud (VB), initiated bud (IB), floral bud (FB), aborted,rotten or dried bud (AB) and branch crown (BC) for each node. This function allows to calculate the probability for all orders but also by orders according to the sympodial way from main crown

[6]:
data=prob_axillary_production(Gariguette,order=0)

plt.plot(data, marker="o")
plt.legend(labels=data.columns,loc='center left', bbox_to_anchor=(1, 0.5))
p=plt.xticks(np.arange(min(data.index),max(data.index)+1,1.0))

../_images/user_4.Architecture_analysis_at_node_scale_16_0.png
[ ]: