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

Function test_matching_bases

src/plot.rs:856–878  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

854
855 #[test]
856 fn test_matching_bases() {
857 let reference = vec!['A', 'A', 'G', 'C', 'T', 'A'];
858 let read = vec!['A', 'A', 'G', 'C', 'C', 'A'];
859 let inner_plot_cigars = match_bases(&read, &reference);
860 let expected_inner_plot_cigars = vec![
861 InnerPlotCigar {
862 cigar_type: CigarType::Match,
863 bases: None,
864 length: Some(4),
865 },
866 InnerPlotCigar {
867 cigar_type: CigarType::Sub,
868 bases: Some(vec!['C']),
869 length: Some(1),
870 },
871 InnerPlotCigar {
872 cigar_type: CigarType::Match,
873 bases: None,
874 length: Some(1),
875 },
876 ];
877 assert_eq!(inner_plot_cigars, expected_inner_plot_cigars)
878 }
879
880 #[test]
881 fn test_read_position_with_softclips() {

Callers

nothing calls this directly

Calls 1

match_basesFunction · 0.85

Tested by

no test coverage detected