Skip to content

Commit 9d77159

Browse files
10x Genomicsbaraaorabi
authored andcommitted
feat: Cell Ranger 10.1.0
1 parent f6011c3 commit 9d77159

94 files changed

Lines changed: 49870 additions & 2382 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 1082 additions & 797 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,72 @@ opt-level = 3
2727
[profile.test]
2828
opt-level = 3
2929

30+
[workspace.lints.rust]
31+
# Lint groups
32+
future_incompatible = "deny"
33+
nonstandard_style = "deny"
34+
rust_2018_idioms = "deny"
35+
unused = "deny"
36+
warnings = "deny"
37+
# Individual lints
38+
unused_qualifications = "deny"
39+
40+
[workspace.lints.clippy]
41+
complexity = "deny"
42+
perf = "deny"
43+
style = "deny"
44+
suspicious = "deny"
45+
comparison_chain = { level = "allow", priority = 1 }
46+
47+
# nursery
48+
needless_collect = "deny"
49+
or_fun_call = "deny"
50+
51+
# pedantic
52+
borrow_as_ptr = "deny"
53+
cloned_instead_of_copied = "deny"
54+
enum_glob_use = "deny"
55+
explicit_deref_methods = "deny"
56+
explicit_into_iter_loop = "deny"
57+
explicit_iter_loop = "deny"
58+
filter_map_next = "deny"
59+
flat_map_option = "deny"
60+
from_iter_instead_of_collect = "deny"
61+
ignored_unit_patterns = "deny"
62+
implicit_clone = "deny"
63+
inefficient_to_string = "deny"
64+
manual_assert = "deny"
65+
manual_instant_elapsed = "deny"
66+
manual_is_variant_and = "deny"
67+
manual_let_else = "deny"
68+
manual_ok_or = "deny"
69+
manual_string_new = "deny"
70+
map_unwrap_or = "deny"
71+
match_wildcard_for_single_variants = "deny"
72+
mut_mut = "deny"
73+
needless_bitwise_bool = "deny"
74+
needless_continue = "deny"
75+
needless_for_each = "deny"
76+
needless_raw_string_hashes = "deny"
77+
option_as_ref_cloned = "deny"
78+
ptr_as_ptr = "deny"
79+
ptr_cast_constness = "deny"
80+
redundant_closure_for_method_calls = "deny"
81+
redundant_else = "deny"
82+
ref_as_ptr = "deny"
83+
semicolon_if_nothing_returned = "deny"
84+
single_char_pattern = "deny"
85+
unchecked_time_subtraction = "deny"
86+
unicode_not_nfc = "deny"
87+
uninlined_format_args = "deny"
88+
unnecessary_join = "deny"
89+
unnecessary_wraps = "deny"
90+
unnested_or_patterns = "deny"
91+
unused_self = "deny"
92+
used_underscore_binding = "deny"
93+
wildcard_imports = "deny"
94+
3095
[workspace.dependencies]
3196
itertools = ">=0.10"
32-
rand = { version = "0.9", default-features = false, features = ["small_rng"] }
97+
rand = { version = "0.10", default-features = false }
98+
rand_distr = "0.6"

bhtsne/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ include = [
2020
"contrib/tsne/tsne/bh_sne_src/vptree.h",
2121
]
2222

23+
[lints]
24+
workspace = true
25+
2326
[dependencies]
2427
ndarray = "0.16"
2528
smart-default = "*"

bhtsne/build.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ fn main() {
77
build
88
.cpp(true)
99
.warnings(false)
10-
.static_flag(true)
1110
.pic(true)
1211
.flag_if_supported("-std=c++17")
1312
.flag_if_supported("/std:c++17")
@@ -42,9 +41,6 @@ fn main() {
4241
build.flag("-mcmpxchg16b");
4342
}
4443
}
45-
if cfg!(target_feature = "fma4") {
46-
build.flag("-mfma4");
47-
}
4844
if cfg!(target_feature = "avx") {
4945
build.flag("-mavx");
5046
}

bhtsne/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#![allow(non_snake_case, clippy::upper_case_acronyms)]
2-
#![deny(warnings)]
1+
#![expect(non_snake_case, clippy::upper_case_acronyms)]
32

43
#[macro_use]
54
extern crate smart_default;
@@ -68,7 +67,7 @@ impl BarnesHutTSNE {
6867
self.n_dims as c_int,
6968
self.perplexity,
7069
self.theta,
71-
self.seed.map(|x| x as c_int).unwrap_or(RANDOM_STATE),
70+
self.seed.map_or(RANDOM_STATE, |x| x as c_int),
7271
false,
7372
std::ptr::null_mut(),
7473
false,

blas-src/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license-file = "../LICENSE"
66
edition = "2021"
77
include = ["src/lib.rs"]
88

9+
[lints]
10+
workspace = true
11+
912
[target.'cfg(target_os = "macos")'.dependencies]
1013
accelerate-src = "0.3.2"
1114

blas-src/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#[allow(unused_extern_crates)]
1+
#[expect(unused_extern_crates)]
22
#[cfg(target_os = "macos")]
33
extern crate accelerate_src;
44

5-
#[allow(unused_extern_crates)]
5+
#[expect(unused_extern_crates)]
66
#[cfg(not(target_os = "macos"))]
77
extern crate intel_mkl_src;

cephes/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ license-file = "../LICENSE"
66
edition = "2021"
77
include = ["src/**/*", "LICENSE", "!**/tests/**/*"]
88

9+
[lints]
10+
workspace = true
11+
912
[dev-dependencies]
1013
approx = "0.5"

cephes/src/beta.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ const MAXGAM: f64 = 171.624_376_956_302_7;
88
pub fn beta(a: f64, b: f64) -> f64 {
99
if a <= 0.0 && a == a.floor() {
1010
let ai = a as i32;
11-
if a == ai as f64 {
12-
return beta_negint(ai, b);
11+
return if a == ai as f64 {
12+
beta_negint(ai, b)
1313
} else {
14-
return f64::INFINITY;
15-
}
14+
f64::INFINITY
15+
};
1616
}
1717

1818
if b <= 0.0 && b == b.floor() {
1919
let bi = b as i32;
20-
if a == bi as f64 {
21-
return beta_negint(bi, a);
20+
return if a == bi as f64 {
21+
beta_negint(bi, a)
2222
} else {
23-
return f64::INFINITY;
24-
}
23+
f64::INFINITY
24+
};
2525
}
2626

2727
let (a, b) = if a.abs() < b.abs() { (b, a) } else { (a, b) };
@@ -77,20 +77,20 @@ fn beta_negint(a: i32, b: f64) -> f64 {
7777
pub fn betaln(a: f64, b: f64) -> f64 {
7878
if a <= 0.0 && a == a.floor() {
7979
let ai = a as i32;
80-
if a == ai as f64 {
81-
return betaln_negint(ai, b);
80+
return if a == ai as f64 {
81+
betaln_negint(ai, b)
8282
} else {
8383
return f64::INFINITY;
84-
}
84+
};
8585
}
8686

8787
if b <= 0.0 && b == b.floor() {
8888
let bi = b as i32;
89-
if b == bi as f64 {
90-
return betaln_negint(bi, a);
89+
return if b == bi as f64 {
90+
betaln_negint(bi, a)
9191
} else {
92-
return f64::INFINITY;
93-
}
92+
f64::INFINITY
93+
};
9494
}
9595

9696
let (a, b) = if a.abs() < b.abs() { (b, a) } else { (a, b) };

cephes/src/betaincinv.rs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,15 @@ pub fn betaincinv(aa: f64, bb: f64, yy0: f64) -> f64 {
6161
let d = 2.0 * d;
6262
if d < MINLOG {
6363
// underflow, x <- 0.0
64-
if rflg {
65-
return 1.0 - MACHEP;
66-
} else {
67-
return 0.0;
68-
}
64+
return if rflg { 1.0 - MACHEP } else { 0.0 };
65+
}
66+
x = a / (a + b * d.exp());
67+
y = betainc(a, b, x);
68+
let yp = (y - y0) / y0;
69+
if yp.abs() < 0.2 {
70+
state = NewT;
6971
} else {
70-
x = a / (a + b * d.exp());
71-
y = betainc(a, b, x);
72-
let yp = (y - y0) / y0;
73-
if yp.abs() < 0.2 {
74-
state = NewT;
75-
} else {
76-
state = IHalve;
77-
}
72+
state = IHalve;
7873
}
7974
}
8075

@@ -232,7 +227,6 @@ pub fn betaincinv(aa: f64, bb: f64, yy0: f64) -> f64 {
232227
}
233228
dithresh = 256.0 * MACHEP;
234229
state = IHalve;
235-
continue 'outer;
236230
}
237231
}
238232
}

0 commit comments

Comments
 (0)