50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


piglet (version 1.0.7)

allele_diff_indices: Calculate differences between characters in columns of germs and return their indices as an int vector.

Description

Calculate differences between characters in columns of germs and return their indices as an int vector.

Usage

allele_diff_indices(germs, X = 0L, non_mismatch_chars_nullable = NULL)

Value

A vector of integers containing indices of differing columns.

Arguments

germs

A vector of strings representing germ sequences.

X

The threshold index from which to return differences as indices.

non_mismatch_chars_nullable

A set of characters that are ignored when comparing sequences (default: 'N', '.', '-').

Examples

Run this code
germs = c("ATCG", "ATCC") 
X = 3 
result = allele_diff_indices(germs, X)
# 1, 2, 3

Run the code above in your browser using DataLab