MCPcopy Create free account
hub / github.com/alignoth/alignoth / test_plot_cigar_deletion

Function test_plot_cigar_deletion

src/plot.rs:970–996  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

968
969 #[test]
970 fn test_plot_cigar_deletion() {
971 let cigar_string = CigarStringView::new(
972 CigarString::from(vec![Cigar::Match(2), Cigar::Del(2), Cigar::Match(2)]),
973 0,
974 );
975 let reference = vec!['A', 'A', 'A', 'A', 'G', 'C'];
976 let read = vec!['A', 'A', 'G', 'C'];
977 let cigar = PlotCigar::from_cigar(cigar_string, read, reference).unwrap();
978 let expected_cigar = PlotCigar(vec![
979 InnerPlotCigar {
980 cigar_type: CigarType::Match,
981 bases: None,
982 length: Some(2),
983 },
984 InnerPlotCigar {
985 cigar_type: CigarType::Del,
986 bases: None,
987 length: Some(2),
988 },
989 InnerPlotCigar {
990 cigar_type: CigarType::Match,
991 bases: None,
992 length: Some(2),
993 },
994 ]);
995 assert_eq!(cigar, expected_cigar);
996 }
997
998 #[test]
999 fn test_fetch_reference() {

Callers

nothing calls this directly

Calls 1

PlotCigarClass · 0.85

Tested by

no test coverage detected