Automatic statistical and agronomic interpretation of agricultural experiments
Project description
AgroDesign
AgroDesign is a unified analysis framework for agricultural experiments.
Instead of manually choosing statistical tests, you describe the experiment — AgroDesign automatically performs the correct analysis and produces biological recommendations.
It converts experimental data directly into decisions, reports, figures, and publication-ready outputs.
Install
pip install agrodesign
5-Minute Example
Randomized Complete Block Design (variety trial)
import pandas as pd
from agrodesign.experiment import Experiment
df = pd.DataFrame({
"Block":["B1","B1","B1","B1",
"B2","B2","B2","B2",
"B3","B3","B3","B3",
"B4","B4","B4","B4"],
"Variety":["V1","V2","V3","V4"]*4,
"Yield":[48,52,56,60,45,50,54,58,47,51,55,59,46,49,53,57]
})
result = Experiment(df,"Yield").rcbd("Variety","Block").run()
result
Output:
AgroResult (RCBD)
Response: Yield
Significant factors: Variety
Best treatment: V4
Expected yield: 58.50
What can you do next?
print(result) # Full scientific report
result.summary() # Agronomic recommendation
result.plot() # Publication figures
result.export("report") # Tables + plots folder
Universal Workflow
All analyses follow the same pattern:
result = (
Experiment(data, response)
.design(...)
.run()
)
| Command | Meaning |
|---|---|
result |
Decision snapshot |
print(result) |
Scientific statistical report |
summary() |
Farmer/agronomic recommendation |
plot() |
Visualization |
export() |
Publication files |
Supported Experimental Designs
| Category | Designs |
|---|---|
| Field trials | CRD, RCBD |
| Input studies | Factorial, Split-plot |
| Random variation | Mixed models (BLUP) |
| Breeding trials | Multi-environment (G×E stability) |
| Multi-year data | .by("Year") grouped analysis |
| Multiple traits | Automatic combined ranking |
Example Analyses
Factorial experiment
Experiment(df,"Yield").factorial(["Nitrogen","Spacing"]).run()
Mixed model (adjusted performance)
Experiment(df,"Yield").mixed(fixed=["Treatment"], random=["Block"]).run()
Multi-environment trial (stability)
Experiment(df,"Yield").gxe("Genotype","Environment","Rep").run()
Multi-year experiment
Experiment(df,"Yield").by("Year").rcbd("Variety","Block").run()
Multi-trait selection
Experiment(df,["Yield","Height"]).rcbd("Variety","Block").run()
What AgroDesign Handles Automatically
- Correct ANOVA model construction
- Error-term selection
- Mean separation (LSD, Tukey, DMRT)
- Interaction interpretation rules
- Mixed-model BLUP ranking
- G×E stability analysis (AMMI, GGE, FW, ER)
- Assumption diagnostics
- Publication-ready plots
No manual statistical decisions required.
Philosophy
Traditional workflow:
Choose model → run statistics → interpret biology
AgroDesign workflow:
Describe experiment → AgroDesign chooses statistics → interpret biology
Citation
If you use AgroDesign in academic work:
AgroDesign v0.6.0 — Stable Research Release https://github.com/DeepStatistix/AgroDesign
(DOI will be added via Zenodo)
License
MIT License
Author
Aqib Gul DeepStatistix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agrodesign-0.7.0.tar.gz.
File metadata
- Download URL: agrodesign-0.7.0.tar.gz
- Upload date:
- Size: 53.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa91eda0dd55764eeaa1f0484be7380df90f218f0f2d096e743c2f14a3dcd537
|
|
| MD5 |
61972972f686e92a904232283112a5f9
|
|
| BLAKE2b-256 |
1337496304497d679f7e829eb4cc960b418ce683a9b88177adde3f8a9ba7dafa
|
File details
Details for the file agrodesign-0.7.0-py3-none-any.whl.
File metadata
- Download URL: agrodesign-0.7.0-py3-none-any.whl
- Upload date:
- Size: 66.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8299fabd6f3f94b6737d91baa69ff09a5136936afbe4266df72f6386009853
|
|
| MD5 |
0823c3cdd0bfda36043a4bd17989072d
|
|
| BLAKE2b-256 |
2875356ae9dde9eb7e68075b7d7b73d9d4bcddaf3e6770152b38d14dd4250f6b
|