Skip to content

Commit

Permalink
Update to use JoinInfo type. (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
macklin-10x authored Mar 22, 2024
1 parent a9a3662 commit 367e338
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 34 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.

9 changes: 5 additions & 4 deletions enclone_tail/src/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use enclone_build::version_string;
use enclone_core::barcode_fate::BarcodeFate;
use enclone_core::combine_group_pics::combine_group_pics;
use enclone_core::defs::{ColInfo, EncloneControl, ExactClonotype, GexInfo};
use enclone_core::enclone_structs::JoinInfo;
use enclone_core::mammalian_fixed_len::mammalian_fixed_len_peer_groups;
use enclone_core::set_speakers::set_speakers;
use enclone_help::help_utils::font_face_in_css;
Expand Down Expand Up @@ -54,7 +55,7 @@ pub fn group_and_print_clonotypes(
exact_clonotypes: &Vec<ExactClonotype>,
ctl: &EncloneControl,
out_datas: &mut Vec<Vec<HashMap<String, String>>>,
join_info: &Vec<(usize, usize, bool, Vec<u8>)>,
join_info: &Vec<JoinInfo>,
gex_info: &GexInfo,
vdj_cells: &Vec<Vec<String>>,
fate: &Vec<HashMap<String, BarcodeFate>>,
Expand All @@ -68,8 +69,8 @@ pub fn group_and_print_clonotypes(

let mut to_join_info = vec![Vec::<usize>::new(); exact_clonotypes.len()];
for i in 0..join_info.len() {
to_join_info[join_info[i].0].push(i);
to_join_info[join_info[i].1].push(i);
to_join_info[join_info[i].index1].push(i);
to_join_info[join_info[i].index2].push(i);
}

// Set up for parseable output.
Expand Down Expand Up @@ -436,7 +437,7 @@ pub fn group_and_print_clonotypes(
}
unique_sort(&mut ji);
for i in 0..ji.len() {
fwriteln!(glog, "{}", strme(&join_info[ji[i]].3));
fwriteln!(glog, "{}", strme(&join_info[ji[i]].log));
}

// Implement ALIGN<n> and JALIGN<n>.
Expand Down
3 changes: 2 additions & 1 deletion enclone_tail/src/tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::group::group_and_print_clonotypes;
use enclone_core::barcode_fate::BarcodeFate;
use enclone_core::defs::{ColInfo, EncloneControl, ExactClonotype, GexInfo};

use enclone_core::enclone_structs::JoinInfo;
use enclone_proto::types::DonorReferenceItem;
use io_utils::fwrite;
use ndarray::s;
Expand All @@ -32,7 +33,7 @@ pub fn tail_code(
exact_clonotypes: &Vec<ExactClonotype>,
ctl: &EncloneControl,
out_datas: &mut Vec<Vec<HashMap<String, String>>>,
join_info: &Vec<(usize, usize, bool, Vec<u8>)>,
join_info: &Vec<JoinInfo>,
gex_info: &GexInfo,
vdj_cells: &Vec<Vec<String>>,
fate: &Vec<HashMap<String, BarcodeFate>>,
Expand Down

0 comments on commit 367e338

Please sign in to comment.