Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

feat: Return the status of unproductive contigs in is_valid function #287

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions vdj_ann/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ stats_utils = { version = "0.1", path = "../stats_utils" }
string_utils = { version = "0.1", path = "../string_utils" }
vector_utils = { version = "0.1", path = "../vector_utils" }
vdj_types = { version = "0.2", path = "../vdj_types" }
bitflags = "2.4.0"
18 changes: 7 additions & 11 deletions vdj_ann/src/annotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,17 @@ use crate::transcript::is_valid;
use align_tools::affine_align;
use amino::{aa_seq, have_start};
use bio_edit::alignment::AlignmentOperation::{Del, Ins, Match, Subst, Xclip, Yclip};
use debruijn::{
dna_string::{DnaString, DnaStringSlice},
kmer::{Kmer12, Kmer20},
Mer, Vmer,
};
use debruijn::dna_string::{DnaString, DnaStringSlice};
use debruijn::kmer::{Kmer12, Kmer20};
use debruijn::{Mer, Vmer};
use io_utils::{fwrite, fwriteln};
use itertools::Itertools;
use serde::{Deserialize, Serialize};
use stats_utils::percent_ratio;
use std::cmp::{max, min};
use std::fmt::Write as _;
use std::{
cmp::{max, min},
fs::File,
io::{BufWriter, Write},
};
use std::fs::File;
use std::io::{BufWriter, Write};
use string_utils::{stringme, strme, TextUtils};
use vdj_types::{VdjChain, VdjRegion};
use vector_utils::{
Expand Down Expand Up @@ -3179,7 +3175,7 @@ impl ContigAnnotation {
let mut ann = Vec::<(i32, i32, i32, i32, i32)>::new();
annotate_seq(b, refdata, &mut ann, true, false, true);
let mut log = Vec::<u8>::new();
let productive = is_valid(b, refdata, &ann, false, &mut log, is_gd);
let productive = is_valid(b, refdata, &ann, false, &mut log, is_gd).productive;
ContigAnnotation::from_annotate_seq(
b,
q,
Expand Down
Loading