Skip to content

Commit

Permalink
fixed bug for hapmap data conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
YinLiLin committed Jan 13, 2025
1 parent 22b8ee2 commit afa8cfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: rMVP
Type: Package
Title: Memory-Efficient, Visualize-Enhanced, Parallel-Accelerated GWAS
Tool
Version: 1.3.5
Date: 2024-12-30
Version: 1.3.6
Date: 2025-01-14
Authors@R: c( person("Lilin", "Yin", role = "aut"),
person("Haohao", "Zhang", role = "aut"),
person("Zhenshuang", "Tang", role = "aut"),
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rMVP [![](https://img.shields.io/badge/Issues-%2B-brightgreen.svg)](https://github.com/XiaoleiLiuBio/rMVP/issues/new) [![](http://www.r-pkg.org/badges/version/rMVP?color=red)](https://cran.r-project.org/package=rMVP) [![CRAN Version](https://www.r-pkg.org/badges/version/rMVP?color=yellow)](https://CRAN.R-project.org/package=rMVP) [![](https://img.shields.io/badge/GitHub-1.3.5-blueviolet.svg)]() ![](http://cranlogs.r-pkg.org/badges/grand-total/rMVP?color=green) [![](https://cranlogs.r-pkg.org/badges/rMVP)](https://cran.r-project.org/package=rMVP) <a href="https://hits.seeyoufarm.com"/><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fxiaolei-lab%2FrMVP"/></a>
# rMVP [![](https://img.shields.io/badge/Issues-%2B-brightgreen.svg)](https://github.com/XiaoleiLiuBio/rMVP/issues/new) [![](http://www.r-pkg.org/badges/version/rMVP?color=red)](https://cran.r-project.org/package=rMVP) [![CRAN Version](https://www.r-pkg.org/badges/version/rMVP?color=yellow)](https://CRAN.R-project.org/package=rMVP) [![](https://img.shields.io/badge/GitHub-1.3.6-blueviolet.svg)]() ![](http://cranlogs.r-pkg.org/badges/grand-total/rMVP?color=green) [![](https://cranlogs.r-pkg.org/badges/rMVP)](https://cran.r-project.org/package=rMVP) <a href="https://hits.seeyoufarm.com"/><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fxiaolei-lab%2FrMVP"/></a>

## An [r](https://) package for [M](https://)emory-efficient, [V](https://)isualization-enhanced, and [P](https://)arallel-accelerated Genome-Wide Association Study

Expand All @@ -9,7 +9,7 @@
</a>
</p>

### #-----------------***rMVP [v1.3.5]() is coming, and stronger and faster again!***------------------#
### #-----------------***rMVP [v1.3.6]() is coming, and stronger and faster again!***------------------#

### Repos:
**Github:** https://github.com/xiaolei-lab/rMVP
Expand Down
2 changes: 1 addition & 1 deletion src/data_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ double hapmap_marker_parser(string m, char major, double NA_C) {
(m[1] != 'A' && m[1] != 'T' && m[1] != 'G' && m[1] != 'C')) {
return NA_C;
} else {
return ((m[0] == major) ? '0' : '1') + ((m[1] == major) ? '0' : '1');
return ((m[0] == major) ? 0 : 1) + ((m[1] == major) ? 0 : 1);
}
}
return NA_C;
Expand Down

0 comments on commit afa8cfe

Please sign in to comment.