Skip to content
/ quangpy Public

quangpy: a python package for quantitative genetics analysis

License

Notifications You must be signed in to change notification settings

r1cheu/quangpy

Repository files navigation

quangpy: a python package for quantitative genetics analysis

quangpy mainly provides Joint Scale Analysis and Variance Decomposition Analysis.

Installation

pip install quangpy

Getting Started

input data format

The input file should be separated by tab and provide the following columns in the same order:

  • population: population name
  • mean: mean of the population phenotype
  • var: variance of the population phenotype

The following is an example of the input data format:

mean var
b1l 7.5 0.010000
b1s 5.575 0.004096
f1 5.5 0.007396
f2 6.595 0.013924
p1 9.125 0.008281
p2 5.475 0.003249

Joint Scale Analysis

from quangpy import JointScale

input_data = "/path/to/input/data"

js = JointScale(input_data)
js.fit(("m", "a"))

Variance Decomposition Analysis

from quangpy import VarianceDecomposition

input_data = "/path/to/input/data"
vd = VarianceDecomposition(input_data)
vd.fit(("m", "a", "d", "aa", "dd"))

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

quangpy: a python package for quantitative genetics analysis

Topics

Resources

License

Stars

Watchers

Forks

Languages