Skip to content

Commit 3d09691

Browse files
authored
Update is_valid to is_productive_contig. (#535)
Updates uses of is_valid to the improved is_productive_contig function.
1 parent 5a43269 commit 3d09691

File tree

3 files changed

+38
-40
lines changed

3 files changed

+38
-40
lines changed

Cargo.lock

+35-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enclone_tools/src/bin/annotate_seq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn main() {
146146
annotate_seq(&seq, &refdata, &mut ann, true, false, true);
147147
print_cdr3_using_ann(&seq, &refdata, &ann, &mut log);
148148
print_start_codon_positions(&seq, &mut log);
149-
if is_valid(&seq, &refdata, &ann, true, &mut log, Some(gamma_delta)) {
149+
if is_productive_contig(&seq, &refdata, &ann).0 {
150150
fwriteln!(log, "VALID");
151151
}
152152

enclone_tools/src/bin/annotate_seqs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use refx::*;
1111
use std::env;
1212
use std::io::{BufRead, Write};
1313
use string_utils::*;
14-
use vdj_ann::transcript::*;
14+
use vdj_ann::transcript::is_productive_contig;
1515
use vdj_ann::*;
1616

1717
fn main() {
@@ -81,7 +81,7 @@ fn main() {
8181
print_annotations(&seq, &refdata, &mut log, false, true, false);
8282
let mut ann = Vec::<(i32, i32, i32, i32, i32)>::new();
8383
annotate_seq(&seq, &refdata, &mut ann, true, false, true);
84-
let valid = is_valid(&seq, &refdata, &ann, false, &mut log, None);
84+
let (valid, _) = is_productive_contig(&seq, &refdata, &ann);
8585
let mut shift = false;
8686
for i in 1..ann.len() {
8787
if ann[i - 1].2 == ann[i].2 {

0 commit comments

Comments
 (0)