本文整理匯總了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"]