本文整理汇总了Python中puzzle.plugins.VcfPlugin._add_consequences方法的典型用法代码示例。如果您正苦于以下问题:Python VcfPlugin._add_consequences方法的具体用法?Python VcfPlugin._add_consequences怎么用?Python VcfPlugin._add_consequences使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类puzzle.plugins.VcfPlugin
的用法示例。
在下文中一共展示了VcfPlugin._add_consequences方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_add_consequences
# 需要导入模块: from puzzle.plugins import VcfPlugin [as 别名]
# 或者: from puzzle.plugins.VcfPlugin import _add_consequences [as 别名]
def test_add_consequences(variant):
plugin = VcfPlugin()
# The raw variant line is treated like a string so it does not matter
# if it is malformed
raw_variant_line = "7\t98994144\t.\tA\tC\t51.68\tPASS\tAC=1;AF=0.167;AN=6"\
";BaseQRankSum=-1.965;CADD=13.51;CSQ=C|downstream_gene_variant|MODIFIER|"\
"ARPC1B|ENSG00000130429|Transcript|ENST00000491294|retained_intron|||||||"\
"||||1724|1|HGNC|704||||||||||||||,C|downstream_gene_variant|MODIFIER|"\
"ARPC1B|ENSG00000130429|Transcript|ENST00000451682|protein_coding||||||||"\
"|||1745|1|HGNC|704||CCDS5661.1|ENSP00000389631|ARC1B_HUMAN|F8VXW2_HUMAN"\
"&C9K057_HUMAN&C9JTT6_HUMAN&C9JQM8_HUMAN&C9JM51_HUMAN&C9JFG9_HUMAN&C9JEY1"\
"_HUMAN&C9JBJ7_HUMAN&C9J6C8_HUMAN&C9J4Z7_HUMAN&A4D275_HUMAN|UPI0000125D33|"
plugin._add_consequences(variant, raw_variant_line)
assert variant.consequences == ["downstream_gene_variant"]