Skip to content

Commit

Permalink
fix: solve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyota committed May 23, 2024
2 parents fabd30a + 9528620 commit d4d1d04
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 21 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/genoboost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
run: cargo build --manifest-path ./projects_rust/Cargo.toml --verbose


#test_example:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - uses: actions/checkout@v2
# - name: test
# run: |
# bash ./genoboost.sh
test_example:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: test
run: |
bash ./genoboost.sh
#test_1kg:
# runs-on: ubuntu-latest
Expand Down
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GenoBoost v1.1.0
# GenoBoost v1.0.8

[![GenoBoost](https://github.com/rickyota/genoboost/actions/workflows/genoboost.yml/badge.svg)](https://github.com/rickyota/genoboost/actions/workflows/genoboost.yml)
[![Release](https://github.com/rickyota/genoboost/actions/workflows/publish.yml/badge.svg)](https://github.com/rickyota/genoboost/actions/workflows/publish.yml)
[![Build](https://github.com/rickyota/genoboost/actions/workflows/build.yml/badge.svg)](https://github.com/rickyota/genoboost/actions/workflows/build.yml)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10205397.svg)](https://doi.org/10.5281/zenodo.10205397)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10205707.svg)](https://doi.org/10.5281/zenodo.10205707)

## <a name="started"></a>Getting Started

Expand All @@ -21,7 +21,7 @@ $ genoboost train \

## Table of Contents

- [GenoBoost v1.0.7](#genoboost-v107)
- [GenoBoost v1.0.8](#genoboost-v108)
- [Getting Started](#getting-started)
- [Table of Contents](#table-of-contents)
- [News](#news)
Expand Down Expand Up @@ -53,8 +53,9 @@ $ genoboost train \

- [v1.1.0](https://github.com/rickyota/genoboost/releases/tag/v1.1.0) (May 23, 2024)
- Clean code.
- [v1.0.7](https://github.com/rickyota/genoboost/releases/tag/v1.0.7) (Nov 25, 2023)
- [v1.0.8](https://github.com/rickyota/genoboost/releases/tag/v1.0.8) (Nov 25, 2023)
- Initial version.
- Tested on Rocky Linux 8.9 and MacOS 14.3.1.


## <a name="introduction"></a>Introduction
Expand All @@ -78,12 +79,12 @@ For now, the input genotype format is allowed for plink1 or plink2 only.

### <a name="install"></a>Installation

Using arm architecture including Macbook M1, M2 chip will slow down due to unavailability of SIMD.
Using arm architecture, including Macbook M1 and M2 chips, will stop or slow down the software due to the unavailability of SIMD.
I plan to deal with it in the future.

#### <a name="install-plink1"></a>Plink1 Input

If you want to input plink1, download a program for your computer from [here][release].
If you want to input plink1, download a compiled program for Linux (tested on Rocky Linux<=8.9), macOS (tested on <=14.3.1), and Windows (not tested) from [here][release]. This should take less than 1 minute.

#### <a name="install-plink2"></a>Plink2 Input

Expand Down Expand Up @@ -130,9 +131,11 @@ $ ./genoboost train \
--file-phe ./example/genot.cov \
--cov age,sex \
--major-a2-train \
--seed 51
--seed 55
```

This test code should take less than 2 minutes.

#### <a name="train-train-only"></a>Without Validation

If you want to treat all samples as a training dataset, use `--train-only` option. GenoBoost produces SNV weights each for learning rate. Use `--iter-snv` or `--iter` to control the maximum number of SNVs or iterations for training.
Expand Down Expand Up @@ -165,7 +168,7 @@ $ ./genoboost train \
--phe PHENO1 \
--cov age,sex \
--major-a2-train \
--seed 51
--seed 55
```

#### <a name="train-cv"></a>Cross-validation
Expand All @@ -180,7 +183,7 @@ $ ./genoboost train \
--cov age,sex \
--major-a2-train \
--cross-validation 5 \
--seed 51
--seed 55
```

#### <a name="train-option"></a>Options for Training
Expand Down
2 changes: 1 addition & 1 deletion genoboost.docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ genoboost-docker train \
--file-phe "$file_cov" \
--cov age,sex \
--major-a2-train \
--seed 51
--seed 55

# score
genoboost-docker score \
Expand Down
3 changes: 2 additions & 1 deletion test/script/genoboost.cv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ cp ./projects_rust/target/release/genoboost ./genoboost
--cov age,sex \
--learning-rates "0.5 0.2" \
--cross-validation 5 \
--major-a2-train
--major-a2-train \
--seed 55

# score
./genoboost score \
Expand Down
2 changes: 1 addition & 1 deletion test/script/genoboost.docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ genoboost-docker train \
--file-phe "$file_cov" \
--cov age,sex \
--major-a2-train \
--seed 51
--seed 55

# score
genoboost-docker score \
Expand Down
2 changes: 1 addition & 1 deletion test/script/genoboost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cp ./projects_rust/target/release/genoboost ./genoboost
--learning-rates "0.5 0.2" \
--cov age,sex \
--major-a2-train \
--seed 51
--seed 55


#--verbose \
Expand Down

0 comments on commit d4d1d04

Please sign in to comment.