Skip to content

Commit

Permalink
Skip SEQ when writing out
Browse files Browse the repository at this point in the history
  • Loading branch information
hextraza committed Feb 16, 2024
1 parent 959c8b6 commit 936c359
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/process/bam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ use std::io::{BufWriter, Error, Write};
const MAX_UMIS_IN_CHANNEL: usize = 50;

fn bam_data_values(bam_data: &Vec<String>) -> String {
bam_data.join("\t")
bam_data
.iter()
.enumerate()
.filter(|&(index, _)| index != 15)
.map(|(_, value)| value.as_str())
.collect::<Vec<&str>>()
.join("\t")
}

fn bam_data_header(prefix: &str) -> String {
BAM_FIELDS_TO_REPORT
.iter()
.map(|&field| format!("{}_{}", prefix, field))
.enumerate()
.filter(|&(index, _)| index != 15)
.map(|(_, &field)| format!("{}_{}", prefix, field))
.collect::<Vec<String>>()
.join("\t")
}
Expand Down

0 comments on commit 936c359

Please sign in to comment.