Skip to content

Commit

Permalink
Skip QUAL, update flate2
Browse files Browse the repository at this point in the history
  • Loading branch information
hextraza committed Jan 18, 2025
1 parent 3257af9 commit 8930507
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ array_tool = "1.0.3"
unwrap = "1.2.1"
niffler = "2.2.0"
rust-htslib = "0.40.2"
flate2 = "1.0.22"
flate2 = "1.0.35"
lexical-sort = "0.3.1"
rayon = "1.7.0"
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion src/parse/bam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub const BAM_FIELDS_TO_REPORT: [&'static str; 37] = [
"MAPQ",
"POS",
"MATE_POS",
"SEQ", // This gets filtered out before getting written to disk in the bam processingm it's just used for associating reads to filter info
"SEQ",
"SEQ_LEN",
"INSERT_SIZE",
//"CIGAR",
Expand Down
2 changes: 2 additions & 0 deletions src/process/bam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fn bam_data_values(bam_data: &Vec<String>) -> String {
bam_data
.iter()
.enumerate()
.filter(|&(index, _)| index != 1)
.filter(|&(index, _)| index != 15)
.map(|(_, value)| value.as_str())
.collect::<Vec<&str>>()
Expand All @@ -33,6 +34,7 @@ fn bam_data_header(prefix: &str) -> String {
BAM_FIELDS_TO_REPORT
.iter()
.enumerate()
.filter(|&(index, _)| index != 1)
.filter(|&(index, _)| index != 15)
.map(|(_, &field)| format!("{}_{}", prefix, field))
.collect::<Vec<String>>()
Expand Down

0 comments on commit 8930507

Please sign in to comment.