use super::common::{fixture, run, select_tsv_cols};
use tempfile::NamedTempFile;
#[test]
fn fire_feats_to_text() {
let tmp = NamedTempFile::new().unwrap();
run(&[
"fire",
"--feats-to-text",
fixture("all.bam").to_str().unwrap(),
tmp.path().to_str().unwrap(),
]);
let out = std::fs::read_to_string(tmp.path()).unwrap();
insta::assert_snapshot!(select_tsv_cols(
&out,
&[
"#chrom",
"start",
"end",
"fiber",
"msp_len",
"ccs_passes",
"fiber_m6a_count",
"msp_m6a_count",
"msp_frac_m6a",
"msp_m6a_fc",
"best_m6a_count",
"best_frac_m6a",
]
));
}