gwaslab 3.6.5__py3-none-any.whl → 3.6.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gwaslab might be problematic. Click here for more details.

gwaslab/g_version.py CHANGED
@@ -17,8 +17,8 @@ def _get_version():
17
17
  def gwaslab_info():
18
18
  # version meta information
19
19
  dic={
20
- "version":"3.6.5",
21
- "release_date":"20250625"
20
+ "version":"3.6.6",
21
+ "release_date":"20250704"
22
22
  }
23
23
  return dic
24
24
 
gwaslab/io_read_pipcs.py CHANGED
@@ -11,7 +11,8 @@ def _read_pipcs(data,
11
11
  group=None,
12
12
  studie_names=None,
13
13
  log=Log(),
14
- verbose=True):
14
+ verbose=True,
15
+ **readcsv_kwargs):
15
16
 
16
17
  log.write("Start to load PIP and CREDIBLE_SET_INDEX from file...",verbose=verbose)
17
18
  log.write(" -File:{}".format(output_prefix),verbose=verbose)
@@ -32,14 +33,14 @@ def _read_pipcs(data,
32
33
  pipcs_single_list=[]
33
34
  for index,pipcs_path in enumerate(pipcs_path_list):
34
35
  log.write(" -Loading {}:".format(pipcs_loci_list[index]) + pipcs_path)
35
- pipcs_single = pd.read_csv(pipcs_path)
36
+ pipcs_single = pd.read_csv(pipcs_path,**readcsv_kwargs)
36
37
  if "LOCUS" not in pipcs_single.columns:
37
38
  pipcs_single["LOCUS"]=pipcs_loci_list[index]
38
39
  pipcs_single_list.append(pipcs_single)
39
40
 
40
41
  pipcs = pd.concat(pipcs_single_list, axis=0, ignore_index=True)
41
42
  else:
42
- pipcs = pd.read_csv("{}".format(output_prefix))
43
+ pipcs = pd.read_csv("{}".format(output_prefix),**readcsv_kwargs)
43
44
 
44
45
  if "CHR" not in pipcs.columns:
45
46
  log.write(" -Merging CHR and POS from main dataframe...",verbose=verbose)
gwaslab/io_to_formats.py CHANGED
@@ -402,11 +402,11 @@ def tofmt(sumstats,
402
402
 
403
403
  ####################################################################################################################
404
404
  def _write_tabular(sumstats,rename_dictionary, path, tab_fmt, to_csvargs, to_tabular_kwargs, log, verbose):
405
- chr_header = rename_dictionary["CHR"]
406
405
  if tab_fmt=="tsv" or tab_fmt=="csv":
407
406
  try:
408
407
  log.write(f" -Fast to csv mode...",verbose=verbose)
409
408
  if "@" in path:
409
+ chr_header = rename_dictionary["CHR"]
410
410
  log.write(f" -@ detected: writing each chromosome to a single file...",verbose=verbose)
411
411
  log.write(" -Chromosomes:{}...".format(list(sumstats["CHR"].unique())),verbose=verbose)
412
412
  for single_chr in list(sumstats["CHR"].unique()):
@@ -420,6 +420,7 @@ def _write_tabular(sumstats,rename_dictionary, path, tab_fmt, to_csvargs, to_tab
420
420
  except:
421
421
  log.write(f"Error in using fast_to_csv. Falling back to original implementation.",verbose=verbose)
422
422
  if "@" in path:
423
+ chr_header = rename_dictionary["CHR"]
423
424
  log.write(f" -@ detected: writing each chromosome to a single file...",verbose=verbose)
424
425
  log.write(" -Chromosomes:{}...".format(list(sumstats["CHR"].unique())),verbose=verbose)
425
426
  for single_chr in list(sumstats["CHR"].unique()):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gwaslab
3
- Version: 3.6.5
3
+ Version: 3.6.6
4
4
  Summary: A collection of handy tools for GWAS SumStats
5
5
  Author-email: Yunye <gwaslab@gmail.com>
6
6
  Project-URL: Homepage, https://cloufield.github.io/gwaslab/
@@ -18,7 +18,7 @@ gwaslab/g_meta.py,sha256=pXtSsQfFPv2UJmOxKMmLtcsp_Ku_H73YP7PnlfMd0sg,6472
18
18
  gwaslab/g_meta_update.py,sha256=dWgz4kcq9bvsXycCjfhoYtcJHlEP4HRdYoQ8KFqMyTQ,2490
19
19
  gwaslab/g_vchange_status.py,sha256=w3zsYYOcCaI3PTeboonvkQjudzUAfVIgATzRdiPViZs,1939
20
20
  gwaslab/g_vchange_status_polars.py,sha256=kxyGQCur0ibVFBCyZghA-XNf_kLDXKK-l7VC-Om2IdA,1839
21
- gwaslab/g_version.py,sha256=L9As6MEHYqrYQ9btjVuz0_cWbUsC8ODJU-zYh4YIZ_I,1964
21
+ gwaslab/g_version.py,sha256=O0RYviQ98EWaeYDgFXJmxW8qQ8nWSiuXxk7V9Ym8E-s,1964
22
22
  gwaslab/hm_casting.py,sha256=xoq1E4Tp5VC4aLWfq9-_AfiQzb1WZAHrnZG33W4sCOE,14178
23
23
  gwaslab/hm_casting_polars.py,sha256=CAPfCucj-ARtwP80EuHc9q2gLdj8TL_XQ7_sEC9LxA0,11440
24
24
  gwaslab/hm_harmonize_sumstats.py,sha256=2MeWnWmMHpLWjUMTVqExpg_3mE1VIaBsh6Mz3ffJCMc,84761
@@ -28,9 +28,9 @@ gwaslab/io_preformat_input.py,sha256=jIacIVymCfHVBlonUCFRmUJobLcxMWn2w_vWqXjESPg
28
28
  gwaslab/io_preformat_input_polars.py,sha256=HGdi6rXPQnYjTW8fMUds-uF6Lt8uElL3Er_Afv3OjTc,24767
29
29
  gwaslab/io_process_args.py,sha256=TIv0DyaVEcHnLBGdOD52GBZiO6nAQJycAmmVdEYPmRE,1918
30
30
  gwaslab/io_read_ldsc.py,sha256=9tV4AfQZmCAyiNSR9uALmXWOytWhBdT0pfMAY5Mx_QQ,13407
31
- gwaslab/io_read_pipcs.py,sha256=MPkdVDff_JTmoBCDswg_GO0UQ1tFas2rI0jLuMRqRjY,2891
31
+ gwaslab/io_read_pipcs.py,sha256=w0UsP2lyGpYpNosw3LSI2zs54LTgDMizCQlePla4Vsc,2959
32
32
  gwaslab/io_read_tabular.py,sha256=EG-C6KhCutt4J4LlOMgXnqzJvU-EZXzVhMvaDFnHrMM,2380
33
- gwaslab/io_to_formats.py,sha256=uAmZ4xzVoJqXGXxwTZlbppli4fPc2EshnuTJm2DC4v8,32799
33
+ gwaslab/io_to_formats.py,sha256=PlBarRW4QbDI2HE4RLSb4yA_xBjJapajeBPzQsYk8s8,32865
34
34
  gwaslab/io_to_pickle.py,sha256=HhePU0VcaGni0HTNU0BqoRaOnrr0NOxotgY6ISdx3Ck,1833
35
35
  gwaslab/ldsc_irwls.py,sha256=83JbAMAhD0KOfpv4IJa6LgUDfQjp4XSJveTjnhCBJYQ,6142
36
36
  gwaslab/ldsc_jackknife.py,sha256=XrWHoKS_Xn9StG1I83S2vUMTertsb-GH-_gOFYUhLeU,17715
@@ -112,9 +112,9 @@ gwaslab/data/hapmap3_SNPs/hapmap3_db150_hg19.snplist.gz,sha256=qD9RsC5S2h6l-OdpW
112
112
  gwaslab/data/hapmap3_SNPs/hapmap3_db151_hg38.snplist.gz,sha256=Y8ZT2FIAhbhlgCJdE9qQVAiwnV_fcsPt72usBa7RSBM,10225828
113
113
  gwaslab/data/high_ld/high_ld_hla_hg19.bed.gz,sha256=R7IkssKu0L4WwkU9SrS84xCMdrkkKL0gnTNO_OKbG0Y,219
114
114
  gwaslab/data/high_ld/high_ld_hla_hg38.bed.gz,sha256=76CIU0pibDJ72Y6UY-TbIKE9gEPwTELAaIbCXyjm80Q,470
115
- gwaslab-3.6.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
116
- gwaslab-3.6.5.dist-info/licenses/LICENSE_before_v3.4.39,sha256=GhLOU_1UDEKeOacYhsRN_m9u-eIuVTazSndZPeNcTZA,1066
117
- gwaslab-3.6.5.dist-info/METADATA,sha256=gZzr7kuI49hnQm09FQgzzMIWGw0FI7lCIFfxw34f1dw,7073
118
- gwaslab-3.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
- gwaslab-3.6.5.dist-info/top_level.txt,sha256=PyY6hWtrALpv2MAN3kjkIAzJNmmBTH5a2risz9KwH08,8
120
- gwaslab-3.6.5.dist-info/RECORD,,
115
+ gwaslab-3.6.6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
116
+ gwaslab-3.6.6.dist-info/licenses/LICENSE_before_v3.4.39,sha256=GhLOU_1UDEKeOacYhsRN_m9u-eIuVTazSndZPeNcTZA,1066
117
+ gwaslab-3.6.6.dist-info/METADATA,sha256=QUXTQeaGhZ9x28IikmoJ5TIkABVj9AxbN4wfqnr9Ogw,7073
118
+ gwaslab-3.6.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
+ gwaslab-3.6.6.dist-info/top_level.txt,sha256=PyY6hWtrALpv2MAN3kjkIAzJNmmBTH5a2risz9KwH08,8
120
+ gwaslab-3.6.6.dist-info/RECORD,,