parameters: (variant, exclude_alleles=None)
return_statement: return (len(variant.reference_bases) == 1 and len(relevant_alts) >= 1 and
            all(len(x) == 1 for x in relevant_alts))
docstring: Is variant a SNP?
  
    Args:
      variant: nucleus.genomics.v1.Variant.
      exclude_alleles: list(str). The alleles in this list will be ignored.
  
    Returns:
      True if all alleles of variant are 1 bp in length.
docstring_summary: Is variant a SNP?
docstring_tokens: Is variant a SNP?
function: def is_snp(variant, exclude_alleles=None):
    """Is variant a SNP?
  
    Args:
      variant: nucleus.genomics.v1.Variant.
      exclude_alleles: list(str). The alleles in this list will be ignored.
  
    Returns:
      True if all alleles of variant are 1 bp in length.
    """
    relevant_alts = _non_excluded_alts(variant.alternate_bases, exclude_alleles)
    return (len(variant.reference_bases) == 1 and len(relevant_alts) >= 1 and
            all(len(x) == 1 for x in relevant_alts))
function_tokens: def is_snp ( variant , exclude_alleles = None ) : relevant_alts = _non_excluded_alts ( variant . alternate_bases , exclude_alleles ) return ( len ( variant . reference_bases ) == 1 and len ( relevant_alts ) >= 1 and all ( len ( x ) == 1 for x in relevant_alts ) )