Skip to content

Commit

Permalink
Fix vdj_features.
Browse files Browse the repository at this point in the history
  • Loading branch information
macklin-10x committed Mar 15, 2024
1 parent a4e4755 commit 0277050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vdj_ann/src/vdj_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ pub fn cdr3_start(aa: &[u8], _chain_type: &str, _verbose: bool) -> usize {
for j in aa.len().saturating_sub(nm + reach)..=aa.len().saturating_sub(nm) {
let mut score = 0;
for k in 0..nm {
for l in 0..motif.len() {
if aa[j + k] == motif[l][k] {
for m in motif {
if aa[j + k] == m[k] {
score += 1;
if aa[j + k] == b'Q' {
break;
Expand All @@ -360,8 +360,8 @@ pub fn cdr3_score(aa: &[u8], _chain_type: &str, _verbose: bool) -> usize {
for j in aa.len().saturating_sub(nm + REACH)..=aa.len().saturating_sub(nm) {
let mut score = 0;
for k in 0..nm {
for l in 0..motif.len() {
if aa[j + k] == motif[l][k] {
for m in motif {
if aa[j + k] == m[k] {
score += 1;
if aa[j + k] == b'Q' {
break;
Expand Down

0 comments on commit 0277050

Please sign in to comment.