genal-python 1.4.7__tar.gz → 1.4.8__tar.gz

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.
Files changed (43) hide show
  1. {genal_python-1.4.7 → genal_python-1.4.8}/PKG-INFO +1 -1
  2. {genal_python-1.4.7 → genal_python-1.4.8}/genal/__init__.py +1 -1
  3. {genal_python-1.4.7 → genal_python-1.4.8}/genal/lift.py +2 -0
  4. {genal_python-1.4.7 → genal_python-1.4.8}/pyproject.toml +1 -1
  5. {genal_python-1.4.7 → genal_python-1.4.8}/.DS_Store +0 -0
  6. {genal_python-1.4.7 → genal_python-1.4.8}/.gitignore +0 -0
  7. {genal_python-1.4.7 → genal_python-1.4.8}/.readthedocs.yaml +0 -0
  8. {genal_python-1.4.7 → genal_python-1.4.8}/Genal_flowchart.png +0 -0
  9. {genal_python-1.4.7 → genal_python-1.4.8}/LICENSE +0 -0
  10. {genal_python-1.4.7 → genal_python-1.4.8}/README.md +0 -0
  11. {genal_python-1.4.7 → genal_python-1.4.8}/docs/.DS_Store +0 -0
  12. {genal_python-1.4.7 → genal_python-1.4.8}/docs/Makefile +0 -0
  13. {genal_python-1.4.7 → genal_python-1.4.8}/docs/make.bat +0 -0
  14. {genal_python-1.4.7 → genal_python-1.4.8}/docs/requirements.txt +0 -0
  15. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/.DS_Store +0 -0
  16. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/Images/Genal_flowchart.png +0 -0
  17. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/Images/MR_plot_SBP_AS.png +0 -0
  18. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/Images/genal_logo.png +0 -0
  19. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/api.md +0 -0
  20. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/concepts.md +0 -0
  21. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/conf.py +0 -0
  22. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/faq.md +0 -0
  23. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/index.md +0 -0
  24. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/introduction.md +0 -0
  25. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/methods.md +0 -0
  26. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/setup.md +0 -0
  27. {genal_python-1.4.7 → genal_python-1.4.8}/docs/source/workflows.md +0 -0
  28. {genal_python-1.4.7 → genal_python-1.4.8}/genal/Geno.py +0 -0
  29. {genal_python-1.4.7 → genal_python-1.4.8}/genal/MR.py +0 -0
  30. {genal_python-1.4.7 → genal_python-1.4.8}/genal/MR_tools.py +0 -0
  31. {genal_python-1.4.7 → genal_python-1.4.8}/genal/MRpresso.py +0 -0
  32. {genal_python-1.4.7 → genal_python-1.4.8}/genal/association.py +0 -0
  33. {genal_python-1.4.7 → genal_python-1.4.8}/genal/clump.py +0 -0
  34. {genal_python-1.4.7 → genal_python-1.4.8}/genal/colocalization.py +0 -0
  35. {genal_python-1.4.7 → genal_python-1.4.8}/genal/constants.py +0 -0
  36. {genal_python-1.4.7 → genal_python-1.4.8}/genal/extract_prs.py +0 -0
  37. {genal_python-1.4.7 → genal_python-1.4.8}/genal/genes.py +0 -0
  38. {genal_python-1.4.7 → genal_python-1.4.8}/genal/geno_tools.py +0 -0
  39. {genal_python-1.4.7 → genal_python-1.4.8}/genal/proxy.py +0 -0
  40. {genal_python-1.4.7 → genal_python-1.4.8}/genal/snp_query.py +0 -0
  41. {genal_python-1.4.7 → genal_python-1.4.8}/genal/tools.py +0 -0
  42. {genal_python-1.4.7 → genal_python-1.4.8}/genal_logo.png +0 -0
  43. {genal_python-1.4.7 → genal_python-1.4.8}/gitignore +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: genal-python
3
- Version: 1.4.7
3
+ Version: 1.4.8
4
4
  Summary: A python toolkit for polygenic risk scoring and mendelian randomization.
5
5
  Author-email: Cyprien Rivier <riviercyprien@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -5,7 +5,7 @@ from .geno_tools import Combine_Geno
5
5
  from .genes import filter_by_gene_func
6
6
  from .constants import CONFIG_DIR
7
7
 
8
- __version__ = "1.4.7"
8
+ __version__ = "1.4.8"
9
9
 
10
10
  config_path = os.path.join(CONFIG_DIR, "config.json")
11
11
 
@@ -51,6 +51,8 @@ def lift_data(
51
51
  # Prepare the data for lifting: handle missing values in CHR, POS columns
52
52
  nrows = data.shape[0]
53
53
  data.dropna(subset=["CHR", "POS"], inplace=True)
54
+ # Remove absurd positions
55
+ data = data[data.POS < 300_000_000]
54
56
  data.reset_index(drop=True, inplace=True)
55
57
  n_na = nrows - data.shape[0]
56
58
  if n_na:
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "genal-python" # Updated name for PyPI
7
- version = "1.4.7"
7
+ version = "1.4.8"
8
8
  authors = [{name = "Cyprien Rivier", email = "riviercyprien@gmail.com"}]
9
9
  description = "A python toolkit for polygenic risk scoring and mendelian randomization."
10
10
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes