Skip to main content

About this package

Python /3.7+ PyPi MLG-assign

Multi-Locus Genotypes (MLGs) are frequently used to carry out population genetics of clonal organisms. Tools to assign genotyped individuals to MLGs were integrated in some genetic software. However, these tools usually fail to appropriately deal with missing data. Missing data sometimes lead to potentially assign a individual genotype to several MLGs. For example, the multilocus genotype 100/200/999 (where 999 is a missing data) could be assigned to MLG 100/200/300 and to MLG 100/200/302. Despite this ambiguity, most tools assign the genotype with missing data to one or the other MLG. We developed a script that :

  • group in the same MLG individuals with no missing data and with the same genotype,

  • mark as unassigned individuals with missing data that could be assigned to more than one MLG.

Exemple of multilocus genotype table

Pymrs47

Pyrms427

Pyrms657

Pyrms77B

Pyrms63

Pyrms83B

Pyrms607

Pyrms37

Pyrms233

Pyrms319

Pyrms99B

Pyrms43B

MD2249

163

211

168

200

151

115

284

197

253

284

241

350

MD2245

163

211

168

202

151

115

284

197

253

284

241

999

MD2129

163

211

168

194

151

115

284

197

253

284

241

999

MD2125

163

211

168

194

151

115

284

197

253

284

241

999

MD2124

163

211

168

194

151

115

284

197

253

284

241

999

MD1936

163

211

168

194

151

115

284

197

253

284

241

999

MD1832

163

213

168

194

151

115

284

197

253

284

241

999

MD1831

163

213

168

194

151

115

284

197

253

284

241

999

MD1826

163

213

168

194

151

115

284

197

253

284

241

999

MD1708

163

211

168

194

151

999

281

197

253

284

241

328

MD1689

163

211

168

194

151

999

278

197

253

284

241

999

Install

pip3 install MLG_assign

Usage

Running MLG_assign with GUI

  • To run the gui, just call program

MLG_assign
# or
MLG_assign gui

Running MLG_assign with command line

# see help
MLG_assign cmd -h

usage: MLG_assign cmd [-h] -e <path/to/file/Excel> -s sheet name>

optional arguments:
  -h, --help            show this help message and exit

Input mandatory infos for running:
  -e <path/to/file/Excel>, --excel <path/to/file/Excel>
                        Matrix excel file
  -s sheet name>, --sheet sheet name>
                        Name of sheet in excel file

# run script
MLG_assign cmd -e Test_MLG.xlsx -s test

Test data

Data test avail at: https://github.com/sravel/MLG_assign/blob/master/Test_MLG.xlsx

wget https://github.com/sravel/MLG_assign/blob/master/Test_MLG.xlsx

Metadata

Release files for MLG-assign 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for MLG-assign 1.0.3
File Interpreter ABI Platform
MLG_assign-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / MLG_assign-1.0.3-py2.py3-none-any.whl

Download URL MLG_assign-1.0.3-py2.py3-none-any.whl
Size 15.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
495c2a2b017c0bc567a8dcd2bf3cedd30b3f11e168870b06727447c0bda48e26
BLAKE2b-256 checksum
How to use checksums
0a12542445615536d662f6831de8276fb091984d0350e6b84b41dfcad6fb0751
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page