Skip to content

Commit 42a4952

Browse files
authored
Merge pull request #7 from DavidsonGroup/refactor
Refactor and rewrite
2 parents 7381572 + 275a617 commit 42a4952

40 files changed

Lines changed: 84059 additions & 28394 deletions

.github/workflows/build.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,19 @@ jobs:
1616
name: test-linux
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
20+
21+
- name: Cache Rust dependencies
22+
uses: actions/cache@v4
23+
with:
24+
path: |
25+
~/.cargo/registry
26+
~/.cargo/git
27+
target
28+
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
29+
restore-keys: |
30+
${{ runner.os }}-cargo-test-
31+
2032
- name: Test
2133
uses: houseabsolute/actions-rust-cross@v0
2234
with:
@@ -28,7 +40,18 @@ jobs:
2840
needs: test
2941

3042
steps:
31-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
44+
45+
- name: Cache Rust dependencies
46+
uses: actions/cache@v4
47+
with:
48+
path: |
49+
~/.cargo/registry
50+
~/.cargo/git
51+
target
52+
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
53+
restore-keys: |
54+
${{ runner.os }}-cargo-build-
3255
3356
- name: Add build information to environment
3457
run: echo "CARGO_BUILD_DESC= [$(git rev-parse --short HEAD)]" >> $GITHUB_ENV
@@ -60,7 +83,18 @@ jobs:
6083
needs: test
6184

6285
steps:
63-
- uses: actions/checkout@v3
86+
- uses: actions/checkout@v4
87+
88+
- name: Cache Rust dependencies
89+
uses: actions/cache@v4
90+
with:
91+
path: |
92+
~/.cargo/registry
93+
~/.cargo/git
94+
target
95+
key: ${{ runner.os }}-cargo-macos-${{ hashFiles('**/Cargo.lock') }}
96+
restore-keys: |
97+
${{ runner.os }}-cargo-macos-
6498
6599
- name: Add x86_64-apple-darwin target
66100
run: rustup target add x86_64-apple-darwin

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/debug
22
/target
33
/temp
4+
/scratch
45

56
.DS_Store
67
.idea
@@ -11,3 +12,4 @@
1112
Cargo.lock
1213
**/*.rs.bk
1314

15+
.github/copilot-instructions.md

Cargo.toml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nailpolish"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]
@@ -14,16 +14,27 @@ env_logger = "0.11.3"
1414
handlebars = "6.2.0"
1515
indexmap = "2.5.0"
1616
log = "0.4.22"
17-
needletail = "^0.6.1"
17+
needletail = "^0.6.3"
1818
rayon = "1.10.0"
1919
regex = "1.10.6"
20-
serde = { version = "1.0.203", features = ["derive"] }
21-
serde_json = "1.0.118"
2220
spoa = { git = "https://github.com/olliecheng/spoa-rs" }
23-
tempfile = "3.14.0"
2421
thiserror = "1.0.64"
2522
predicates = "3.1.2"
2623
indoc = "2.0.5"
24+
rkyv = { version = "0.8.10", features = [
25+
"alloc",
26+
"bytecheck",
27+
"std",
28+
"indexmap-2",
29+
"smallvec-1",
30+
] }
31+
smallvec = "1.15.0"
32+
memmap = "0.7.0"
33+
bio = "2.2.0"
34+
itertools = "0.14.0"
35+
git-version = "0.3.9"
36+
serde = "1.0.219"
37+
serde_json = "1.0.140"
2738

2839
[[bin]]
2940
name = "nailpolish"

readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Build status](https://github.com/olliecheng/nailpolish/actions/workflows/build.yml/badge.svg)](https://github.com/olliecheng/nailpolish/actions/workflows/build.yml) ![Static Badge](https://img.shields.io/badge/libc-%E2%89%A5%202.17-blue) ![GitHub Release](https://img.shields.io/github/v/release/olliecheng/nailpolish?include_prereleases)
44

5-
65
`nailpolish` is a collection of tools made for the deduplication of UMIs when working with long read single cell data.
76

87
<div align="center">
@@ -50,7 +49,7 @@ $ nailpolish summary --index index.tsv
5049
and I can also transparently remove duplicate reads using:
5150

5251
```sh
53-
$ nailpolish call \
52+
$ nailpolish consensus \
5453
--index index.tsv \
5554
--input sample.fastq \
5655
--output sample_called.fastq \

src/call.rs

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)