Skip to content

Commit

Permalink
Merge pull request #20 from jeffersonfparil/dev
Browse files Browse the repository at this point in the history
Close issue #19
  • Loading branch information
jeffersonfparil authored Feb 19, 2024
2 parents 0407d68 + b479dcd commit dc00b7b
Show file tree
Hide file tree
Showing 43 changed files with 21,272 additions and 85,963 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/r.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: 🚀
on:
push:
branches:
- main
- dev
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- name: Build | Compile
run: cargo check
test:
name: Test
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
# - macOS-latest
rust:
- stable
# - beta
# - nightly
runs-on: ${{ matrix.os }}
needs: [compile]
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: ${{ matrix.rust }}
- name: Tests | Rust
run: cargo test
- name: Build | Compile | Test on test data
run: |
cargo run -- -h
cargo run -- -f tests/test_2.csv -m mean
cargo run -- -f tests/test_2.sync -m mean
cargo run -- -f tests/test_2.vcf -m mean
cargo run -- -f tests/test_2.csv -m mean --pool-sizes=11,12,13,14,15,16,17,18,19,20
cargo run -- -f tests/test_2.sync -m mean --pool-sizes=11,12,13,14,15,16,17,18,19,20
cargo run -- -f tests/test_2.vcf -m mean --pool-sizes=11,12,13,14,15,16,17,18,19,20
cargo run -- -f tests/test_2.csv
cargo run -- -f tests/test_2.sync
cargo run -- -f tests/test_2.vcf
cargo run -- -f tests/test_2.csv --min-loci-corr=-1.0 --max-pool-dist=-1.0 --min-l-loci=1 --min-k-neighbours=1
cargo run -- -f tests/test_2.sync --min-loci-corr=-1.0 --max-pool-dist=-1.0 --min-l-loci=1 --min-k-neighbours=1
cargo run -- -f tests/test_2.vcf --min-loci-corr=-1.0 --max-pool-dist=-1.0 --min-l-loci=1 --min-k-neighbours=1
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/src/rust/Cargo.lock
/src/rust/target/
/src/rust/tests/test-*
/tests/test.vcf-*
/Cargo.lock
/target/
/tests/test*-*
/tests/test*.vcf-*
/tests/test*.sync-*
/tests/test*.csv-*
/tests/perf.slurm
/tests/slurm-*
/tests/apple.vcf
Expand Down
9 changes: 3 additions & 6 deletions src/rust/Cargo.toml → Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ name = 'imputef'
version = '0.1.0'
edition = '2021'

[lib]
crate-type = [ 'staticlib' ]
name = 'imputef'

[dependencies]
extendr-api = '*'
clap = { version="3.2.23", features=["derive"]}
ndarray = { version = "0.15.6", features = ["rayon"]}
ndarray-linalg = "0.16"
# ndarray-linalg = { version = "0.16.0", features = ["intel-mkl-static"] }
# ndarray-linalg = { version = "0.16.0", features = ["openblas"] }
ndarray-linalg = { version = "0.16.0", features = ["intel-mkl-static"] }
statrs = "0.16.0"
rand = "0.8.5"
rayon = "1.7.0"
Expand Down
12 changes: 0 additions & 12 deletions DESCRIPTION

This file was deleted.

5 changes: 0 additions & 5 deletions NAMESPACE

This file was deleted.

17 changes: 0 additions & 17 deletions R/extendr-wrappers.R

This file was deleted.

Loading

0 comments on commit dc00b7b

Please sign in to comment.