Skip to content

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.

License

Notifications You must be signed in to change notification settings

sravel/MLG_assign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Locus Genotypes assign

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
pip3 install MLG_assign
  • To run the gui, just call program
MLG_assign
# or
MLG_assign gui
# 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

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages