Skip to content

Commit 9adf5cb

Browse files
authored
Merge pull request #206 from dvitale199/sexcheck
Sexcheck
2 parents 90e30bd + 489fe02 commit 9adf5cb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ requirements.txt
99
.DS_Store
1010
dist/*
1111
the_real_genotools.egg-info/*
12-
geno_tools.egg-info/*
12+
geno_tools.egg-info/*
13+
.venv/

genotools/qc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def run_sex_prune(self, check_sex=[0.25,0.75]):
165165
bfiles_to_pfiles(pfile_path=geno_path)
166166

167167
# check sex 2 methods
168-
plink_cmd1 = f"{plink_exec} --bfile {geno_path} --check-sex 0.25 0.75 --maf 0.05 --out {sex_tmp1}"
169-
plink_cmd2 = f"{plink_exec} --bfile {geno_path} --chr 23 --from-bp 2781479 --to-bp 155701383 --maf 0.05 --geno 0.05 --hwe 1E-5 --check-sex 0.25 0.75 --out {sex_tmp2}"
168+
plink_cmd1 = f"{plink_exec} --bfile {geno_path} --check-sex {check_sex[0]} {check_sex[1]} --maf 0.05 --out {sex_tmp1}"
169+
plink_cmd2 = f"{plink_exec} --bfile {geno_path} --chr 23 --from-bp 2781479 --to-bp 155701383 --maf 0.05 --geno 0.05 --hwe 1E-5 --check-sex {check_sex[0]} {check_sex[1]} --out {sex_tmp2}"
170170

171171
cmds = [plink_cmd1, plink_cmd2]
172172
for cmd in cmds:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
setup(
2020
name='the_real_genotools',
21-
version='1.3.4',
21+
version='1.3.5',
2222
packages=find_packages(),
2323
author='Dan Vitale',
2424
author_email='[email protected]',

0 commit comments

Comments
 (0)