Truth.remove_non_snp_variants

Truth.remove_non_snp_variants#

missionbio.demultiplex.dna.truth.Truth.remove_non_snp_variants

Truth.remove_non_snp_variants() Tuple[Truth, list]#

Removes indels and spanning deletions from the assignment

Assumes that the variants have been formated as chrom:pos:ref/alt

Returns:

DataFrame of truth list: Non-SNP variants

Return type:

pd.DataFrame

Raises:

AllVariantsFilteredError – When all the variants get filtered out. This happens if the variants are not SNPs


< Class Truth