Skip to content

Commit

Permalink
Update usage of the next_diff functions. (#551)
Browse files Browse the repository at this point in the history
Update usage of the next_diff functions.
  • Loading branch information
macklin-10x authored Apr 2, 2024
1 parent 1389bc9 commit 21dbe33
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 48 deletions.
58 changes: 29 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion enclone_paper/src/bin/insertion_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ fn main() {
let mut bounds2 = Vec::<(usize, usize, Vec<usize>, Vec<usize>)>::new();
let mut i = 0;
while i < data.len() {
// let j = next_diff12_9(&data, i as i32) as usize;
// let j = next_diff12_9(&data, i);
let mut j = i + 1;
while j < data.len() {
if data[j].0 != data[i].0 || data[j].1 != data[i].1 {
Expand Down
2 changes: 1 addition & 1 deletion enclone_paper/src/bin/public_light_chain_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ fn main() {
let mut bounds2 = Vec::<(usize, usize, Vec<usize>, Vec<usize>)>::new();
let mut i = 0;
while i < data.len() {
// let j = next_diff12_9(&data, i as i32) as usize;
// let j = next_diff12_9(&data, i);
let mut j = i + 1;
while j < data.len() {
if data[j].0 != data[i].0 || data[j].1 != data[i].1 {
Expand Down
2 changes: 1 addition & 1 deletion enclone_paper/src/bin/weighted_light_chain_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn main() {
let mut bounds = Vec::<(usize, usize, Vec<Vec<(usize, usize, usize, usize)>>)>::new();
let mut i = 0;
while i < data.len() {
// let j = next_diff12_9(&data, i as i32) as usize;
// let j = next_diff12_9(&data, i);
let mut j = i + 1;
while j < data.len() {
if data[j].0 != data[i].0 || data[j].1 != data[i].1 {
Expand Down
4 changes: 2 additions & 2 deletions enclone_tail/src/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ pub fn group_and_print_clonotypes(
} else {
let mut k = 0;
while k < pg[id].len() {
let l = next_diff1_3(&pg[id], k as i32) as usize;
let l = next_diff1_3(&pg[id], k);
let mut s = Vec::<String>::new();
for m in k..l {
s.push(format!("{}={}", pg[id][m].1 as char, pg[id][m].2));
Expand Down Expand Up @@ -584,7 +584,7 @@ pub fn group_and_print_clonotypes(
} else {
let mut k = 0;
while k < pg[id].len() {
let l = next_diff1_3(&pg[id], k as i32) as usize;
let l = next_diff1_3(&pg[id], k);
let mut s = Vec::<String>::new();
for m in k..l {
s.push(format!("{}={}", pg[id][m].1 as char, pg[id][m].2));
Expand Down
18 changes: 9 additions & 9 deletions enclone_tail/src/grouper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
let mut g = Vec::<usize>::new();
for k in i..j {
g.push(all[k].1);
Expand Down Expand Up @@ -121,7 +121,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
let mut g = Vec::<usize>::new();
for k in i..j {
g.push(all[k].1);
Expand Down Expand Up @@ -152,7 +152,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
if all[i].0.is_empty() {
for k in i..j {
let g = vec![all[k].1];
Expand Down Expand Up @@ -192,7 +192,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
if all[i].0.is_empty() {
for k in i..j {
let g = vec![all[k].1];
Expand Down Expand Up @@ -240,7 +240,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
if all[i].0.is_empty() {
for k in i..j {
let g = vec![all[k].1];
Expand Down Expand Up @@ -277,7 +277,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
let mut g = Vec::<usize>::new();
for k in i..j {
g.push(all[k].1);
Expand Down Expand Up @@ -307,7 +307,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
let mut g = Vec::<usize>::new();
for k in i..j {
g.push(all[k].1);
Expand Down Expand Up @@ -339,7 +339,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
let mut g = Vec::<usize>::new();
for k in i..j {
g.push(all[k].1);
Expand Down Expand Up @@ -371,7 +371,7 @@ pub fn grouper(
all.sort();
let mut i = 0;
while i < all.len() {
let j = next_diff1_2(&all, i as i32) as usize;
let j = next_diff1_2(&all, i);
let mut g = Vec::<usize>::new();
for k in i..j {
g.push(all[k].1);
Expand Down
Loading

0 comments on commit 21dbe33

Please sign in to comment.