combine-msa-vcf/msa_combiner.cc
// Determine the variant position relative to segment start.
Determine the variant position relative to segment start.
Determine the variant position relative to segment start .
inline std::size_t segment_relative_variant_position(v2m::aligned_segment const &seg, v2m::variant_record const &var)
	{
		auto const var_pos(var.variant.zero_based_pos());
		auto const alt_pos(seg.alt.position);
		libbio_assert_lte(alt_pos, var_pos);
		return var_pos - alt_pos;
	}
inline std :: size_t segment_relative_variant_position ( v2m :: aligned_segment const & seg , v2m :: variant_record const & var ) { auto const var_pos ( var . variant . zero_based_pos ( ) ) ; auto const alt_pos ( seg . alt . position ) ; libbio_assert_lte ( alt_pos , var_pos ) ; return var_pos - alt_pos ; }
Determine the variant position relative to segment start.
Determine the variant position relative to segment start .