Skip to content

Commit 04ec7fc

Browse files
committed
Merge branch '1-release-2025' of github.com:openalea/sequence_analysis into 1-release-2025
2 parents ab82a8a + 57c0932 commit 04ec7fc

10 files changed

Lines changed: 189 additions & 91 deletions

File tree

.readthedocs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
build:
4+
os: "ubuntu-24.04"
5+
tools:
6+
python: "mambaforge-22.9"
7+
8+
conda:
9+
environment: conda/environment.yml
10+
11+
sphinx:
12+
# Path to your Sphinx configuration file.
13+
configuration: doc/conf.py

conda/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: sequence_analysis_dev
22
channels:
33
- conda-forge
4+
- openalea3/label/dev
45
- openalea3
56
dependencies:
67
- python
78
- pip
89
- boost
910
- matplotlib-base
1011
- openalea.stat_tool
12+
- compilers
1113
- pip:
1214
- -e '..[test,dev,doc]'
13-

conda/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ requirements:
3333
{% for dep in build_deps %}
3434
- {{ dep }}
3535
{% endfor %}
36-
- cmake
37-
- make # [not win]
3836
- openalea.stat_tool
3937
- boost
4038

4139
build:
4240
- {{ compiler("cxx") }}
41+
- cmake
42+
- make # [not win]
4343

4444
run:
4545
- python

doc/pyplots/example_oak_2.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,20 @@
1414
#
1515
#########################################################################
1616
"""
17+
1718
__revision__ = "$Id: test_exploratory.py 8676 2010-04-20 15:28:46Z cokelaer $"
1819

20+
from os.path import join as pj
21+
1922
from openalea.sequence_analysis import *
20-
from openalea.sequence_analysis.estimate import Estimate
2123
from openalea.sequence_analysis import get_shared_data as path
22-
from os.path import join as pj
23-
seq0 = Sequences(pj(path ,"chene_sessile_15pa.seq"))
2424

25+
seq0 = Sequences(pj(path("chene_sessile_15pa.seq")))
2526

2627

2728
# change of unit for the variable diameter of the annual shoot
2829

2930
marginal3 = ExtractHistogram(seq0, "Value", 3)
3031
Plot(Cluster(marginal3, "Information", 0.75))
31-
#Plot(Cluster(marginal3, "Information", 0.61))
32-
#Plot(Cluster(marginal3, "Step", 10))
33-
34-
35-
32+
# Plot(Cluster(marginal3, "Information", 0.61))
33+
# Plot(Cluster(marginal3, "Step", 10))

doc/pyplots/example_oak_4.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
#
1515
#########################################################################
1616
"""
17+
1718
__revision__ = "$Id: test_exploratory.py 8676 2010-04-20 15:28:46Z cokelaer $"
1819

1920
from openalea.sequence_analysis import *
20-
from openalea.sequence_analysis.estimate import Estimate
2121
from openalea.sequence_analysis import get_shared_data as path
22-
from os.path import join as pj
23-
seq0 = Sequences(pj(path ,"chene_sessile_15pa.seq"))
24-
#Plot(seq0, ViewPoint="Data")
22+
23+
seq0 = Sequences(path("chene_sessile_15pa.seq"))
24+
# Plot(seq0, ViewPoint="Data")
2525

2626

2727
# change of unit for the variable diameter of the annual shoot
2828

2929
marginal3 = ExtractHistogram(seq0, "Value", 3)
30-
#Plot(Cluster(marginal3, "Information", 0.75))
31-
#Plot(Cluster(marginal3, "Information", 0.61))
32-
#Plot(Cluster(marginal3, "Step", 10))
30+
# Plot(Cluster(marginal3, "Information", 0.75))
31+
# Plot(Cluster(marginal3, "Information", 0.61))
32+
# Plot(Cluster(marginal3, "Step", 10))
3333

3434
vec10 = Vectors(seq0)
3535

3636
# plot of the average sequence
37-
#Plot(Regression(vec10, "MovingAverage", 1, 2, [1]))
37+
# Plot(Regression(vec10, "MovingAverage", 1, 2, [1]))
3838

3939
vec95 = ValueSelect(vec10, 1, 95)
4040
vec96 = ValueSelect(vec10, 1, 96)
@@ -43,10 +43,12 @@
4343
VarianceAnalysis(vec10, 1, 2, "N")
4444

4545

46-
#print type(ExtractHistogram(vec95, 2))
46+
# print type(ExtractHistogram(vec95, 2))
4747

48-
Compare(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2), "N")
48+
Compare(
49+
ExtractHistogram(vec95, 2),
50+
ExtractHistogram(vec96, 2),
51+
ExtractHistogram(vec97, 2),
52+
"N",
53+
)
4954
Plot(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2))
50-
51-
52-

doc/pyplots/example_oak_5.py

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
#
1515
#########################################################################
1616
"""
17+
1718
__revision__ = "$Id: test_exploratory.py 8676 2010-04-20 15:28:46Z cokelaer $"
1819

20+
import os.path.join as pj
21+
1922
from openalea.sequence_analysis import *
20-
from openalea.sequence_analysis.estimate import Estimate
2123
from openalea.sequence_analysis import get_shared_data as path
22-
from os.path import join as pj
23-
seq0 = Sequences(pj(path ,"chene_sessile_15pa.seq"))
24-
#Plot(seq0, ViewPoint="Data")
24+
25+
seq0 = Sequences(pj(path("chene_sessile_15pa.seq")))
26+
# Plot(seq0, ViewPoint="Data")
2527

2628

2729
# change of unit for the variable diameter of the annual shoot
@@ -34,7 +36,7 @@
3436
vec10 = Vectors(seq0)
3537

3638
# plot of the average sequence
37-
#Plot(Regression(vec10, "MovingAverage", 1, 2, [1]))
39+
# Plot(Regression(vec10, "MovingAverage", 1, 2, [1]))
3840

3941
vec95 = ValueSelect(vec10, 1, 95)
4042
vec96 = ValueSelect(vec10, 1, 96)
@@ -43,18 +45,28 @@
4345
VarianceAnalysis(vec10, 1, 2, "N")
4446

4547

46-
print type(ExtractHistogram(vec95, 2))
48+
print(type(ExtractHistogram(vec95, 2)))
4749

48-
Compare(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2), "N")
49-
#Plot(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2))
50+
Compare(
51+
ExtractHistogram(vec95, 2),
52+
ExtractHistogram(vec96, 2),
53+
ExtractHistogram(vec97, 2),
54+
"N",
55+
)
56+
# Plot(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2))
5057

5158
ContingencyTable(vec10, 1, 4)
5259

5360
# one-way variance analysis based on ranks
5461

5562
VarianceAnalysis(vec10, 1, 4, "O")
56-
Compare(ExtractHistogram(vec95, 4), ExtractHistogram(vec96, 4), ExtractHistogram(vec97, 4), "O")
63+
Compare(
64+
ExtractHistogram(vec95, 4),
65+
ExtractHistogram(vec96, 4),
66+
ExtractHistogram(vec97, 4),
67+
"O",
68+
)
5769
Plot(ExtractHistogram(vec95, 4), ExtractHistogram(vec96, 4), ExtractHistogram(vec97, 4))
5870

59-
#Plot(ExtractHistogram(vec95, 5), ExtractHistogram(vec96, 5), ExtractHistogram(vec97, 5))
60-
#Plot(ExtractHistogram(vec95, 6), ExtractHistogram(vec96, 6), ExtractHistogram(vec97, 6))
71+
# Plot(ExtractHistogram(vec95, 5), ExtractHistogram(vec96, 5), ExtractHistogram(vec97, 5))
72+
# Plot(ExtractHistogram(vec95, 6), ExtractHistogram(vec96, 6), ExtractHistogram(vec97, 6))

doc/pyplots/example_oak_6.py

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,32 @@
1414
#
1515
#########################################################################
1616
"""
17+
1718
__revision__ = "$Id: test_exploratory.py 8676 2010-04-20 15:28:46Z cokelaer $"
1819

20+
from os.path import join as pj
21+
1922
from openalea.sequence_analysis import *
20-
from openalea.sequence_analysis.estimate import Estimate
21-
from openalea.sequence_analysis.data import path
2223
from openalea.sequence_analysis import get_shared_data as path
23-
from os.path import join as pj
24-
seq0 = Sequences(pj(path ,"chene_sessile_15pa.seq"))
24+
from openalea.sequence_analysis.data import path
25+
from openalea.sequence_analysis.estimate import Estimate
2526

26-
#Plot(seq0, ViewPoint="Data")
27+
seq0 = Sequences(pj(path("chene_sessile_15pa.seq")))
28+
29+
# Plot(seq0, ViewPoint="Data")
2730

2831

2932
# change of unit for the variable diameter of the annual shoot
3033

3134
marginal3 = ExtractHistogram(seq0, "Value", 3)
32-
#Plot(Cluster(marginal3, "Information", 0.75))
33-
#Plot(Cluster(marginal3, "Information", 0.61))
34-
#Plot(Cluster(marginal3, "Step", 10))
35+
# Plot(Cluster(marginal3, "Information", 0.75))
36+
# Plot(Cluster(marginal3, "Information", 0.61))
37+
# Plot(Cluster(marginal3, "Step", 10))
3538

3639
vec10 = Vectors(seq0)
3740

3841
# plot of the average sequence
39-
#Plot(Regression(vec10, "MovingAverage", 1, 2, [1]))
42+
# Plot(Regression(vec10, "MovingAverage", 1, 2, [1]))
4043

4144
vec95 = ValueSelect(vec10, 1, 95)
4245
vec96 = ValueSelect(vec10, 1, 96)
@@ -45,36 +48,58 @@
4548
VarianceAnalysis(vec10, 1, 2, "N")
4649

4750

48-
print type(ExtractHistogram(vec95, 2))
51+
print(type(ExtractHistogram(vec95, 2)))
4952

50-
Compare(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2), "N")
51-
#Plot(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2))
53+
Compare(
54+
ExtractHistogram(vec95, 2),
55+
ExtractHistogram(vec96, 2),
56+
ExtractHistogram(vec97, 2),
57+
"N",
58+
)
59+
# Plot(ExtractHistogram(vec95, 2), ExtractHistogram(vec96, 2), ExtractHistogram(vec97, 2))
5260

5361
ContingencyTable(vec10, 1, 4)
5462

5563
# one-way variance analysis based on ranks
5664

5765
VarianceAnalysis(vec10, 1, 4, "O")
58-
Compare(ExtractHistogram(vec95, 4), ExtractHistogram(vec96, 4), ExtractHistogram(vec97, 4), "O")
59-
#Plot(ExtractHistogram(vec95, 4), ExtractHistogram(vec96, 4), ExtractHistogram(vec97, 4))
66+
Compare(
67+
ExtractHistogram(vec95, 4),
68+
ExtractHistogram(vec96, 4),
69+
ExtractHistogram(vec97, 4),
70+
"O",
71+
)
72+
# Plot(ExtractHistogram(vec95, 4), ExtractHistogram(vec96, 4), ExtractHistogram(vec97, 4))
6073

61-
#Plot(ExtractHistogram(vec95, 5), ExtractHistogram(vec96, 5), ExtractHistogram(vec97, 5))
62-
#Plot(ExtractHistogram(vec95, 6), ExtractHistogram(vec96, 6), ExtractHistogram(vec97, 6))
74+
# Plot(ExtractHistogram(vec95, 5), ExtractHistogram(vec96, 5), ExtractHistogram(vec97, 5))
75+
# Plot(ExtractHistogram(vec95, 6), ExtractHistogram(vec96, 6), ExtractHistogram(vec97, 6))
6376

6477
vec11 = ValueSelect(vec10, 4, 1)
6578
vec12 = ValueSelect(vec10, 4, 2)
6679
vec13 = ValueSelect(vec10, 4, 3, 4)
6780

68-
#Plot(ExtractHistogram(vec11, 2), ExtractHistogram(vec12, 2), ExtractHistogram(vec13, 2))
69-
#Plot(ExtractHistogram(vec11, 5), ExtractHistogram(vec12, 5), ExtractHistogram(vec13, 5))
70-
71-
mixt20 = Estimate(ExtractHistogram(vec10, 2), "MIXTURE", "NB", "NB", "NB", "NB", NbComponent="Estimated")
81+
# Plot(ExtractHistogram(vec11, 2), ExtractHistogram(vec12, 2), ExtractHistogram(vec13, 2))
82+
# Plot(ExtractHistogram(vec11, 5), ExtractHistogram(vec12, 5), ExtractHistogram(vec13, 5))
83+
84+
mixt20 = Estimate(
85+
ExtractHistogram(vec10, 2),
86+
"MIXTURE",
87+
"NB",
88+
"NB",
89+
"NB",
90+
"NB",
91+
NbComponent="Estimated",
92+
)
7293
Display(mixt20)
7394
Plot(mixt20)
7495
Plot(ExtractDistribution(mixt20, "Mixture"))
7596

76-
mixt21 = Estimate(ExtractHistogram(vec10, 5), "MIXTURE", "NB", "NB", "NB", "NB", NbComponent="Estimated")
77-
78-
79-
80-
97+
mixt21 = Estimate(
98+
ExtractHistogram(vec10, 5),
99+
"MIXTURE",
100+
"NB",
101+
"NB",
102+
"NB",
103+
"NB",
104+
NbComponent="Estimated",
105+
)

0 commit comments

Comments
 (0)