def test_add_tag_values_nullValues(self): line = self.entab("CHROM|POS|ID|REF|ALT|QUAL|FILTER|INFO|JQ_DP:{}{}|X:.|Y:.\n".format(summarize_caller.JQ_SUMMARY_TAG, summarize_caller.JQ_REPORTED)) processedVcfRecord = VcfRecord.parse_record(line, ["SA", "SB"]) tag = summarize_caller._SamplesReported() tag.add_tag_values(processedVcfRecord) expected = self.entab("CHROM|POS|ID|REF|ALT|QUAL|FILTER|INFO;{}{}=0|JQ_DP:{}{}|X:.|Y:.\n".format(summarize_caller.JQ_SUMMARY_TAG, summarize_caller.JQ_SAMPLES_REPORTED, summarize_caller.JQ_SUMMARY_TAG, summarize_caller.JQ_REPORTED)) self.assertEquals(expected, processedVcfRecord.text())
def test_metaheader(self): split_metaheader = summarize_caller._SamplesReported().metaheader.split("\n") self.assertEquals('##INFO=<ID={}{},Number=1,Type=Integer,Description="Count of samples where this variant appeared in any of the Jacquard tagged VCFs (regardless of quality/filtering)">'.format(summarize_caller.JQ_SUMMARY_TAG, summarize_caller.JQ_SAMPLES_REPORTED), split_metaheader[0])