本文整理匯總了Python中paleomix.common.formats.msa.MSA.from_lines方法的典型用法代碼示例。如果您正苦於以下問題:Python MSA.from_lines方法的具體用法?Python MSA.from_lines怎麽用?Python MSA.from_lines使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類paleomix.common.formats.msa.MSA
的用法示例。
在下文中一共展示了MSA.from_lines方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_msa_from_lines__empty_name
# 需要導入模塊: from paleomix.common.formats.msa import MSA [as 別名]
# 或者: from paleomix.common.formats.msa.MSA import from_lines [as 別名]
def test_msa_from_lines__empty_name():
MSA.from_lines([">", "ACG", ">seq1", "TGAN"])
示例2: test_msa_from_lines__mismatched_lengths
# 需要導入模塊: from paleomix.common.formats.msa import MSA [as 別名]
# 或者: from paleomix.common.formats.msa.MSA import from_lines [as 別名]
def test_msa_from_lines__mismatched_lengths():
MSA.from_lines([">seq1", "ACG", ">seq2", "TGAN"])
示例3: test_msa_from_lines__duplicate_names
# 需要導入模塊: from paleomix.common.formats.msa import MSA [as 別名]
# 或者: from paleomix.common.formats.msa.MSA import from_lines [as 別名]
def test_msa_from_lines__duplicate_names():
MSA.from_lines([">seq1", "ACG", ">seq1", "TGA"])
示例4: test_msa_from_lines__two_entries_with_meta
# 需要導入模塊: from paleomix.common.formats.msa import MSA [as 別名]
# 或者: from paleomix.common.formats.msa.MSA import from_lines [as 別名]
def test_msa_from_lines__two_entries_with_meta():
lines = [">seq1", "ACG", ">seq2 Second meta", "TGA"]
expected = MSA([FASTA("seq1", None, "ACG"),
FASTA("seq2", "Second meta", "TGA")])
result = MSA.from_lines(lines)
assert_equal(result, expected)
示例5: test_msa_from_lines__single_entry_with_meta
# 需要導入模塊: from paleomix.common.formats.msa import MSA [as 別名]
# 或者: from paleomix.common.formats.msa.MSA import from_lines [as 別名]
def test_msa_from_lines__single_entry_with_meta():
lines = [">seq1 Meta info", "ACG"]
expected = MSA([FASTA("seq1", "Meta info", "ACG")])
result = MSA.from_lines(lines)
assert_equal(result, expected)
示例6: test_msa_from_lines__single_entry
# 需要導入模塊: from paleomix.common.formats.msa import MSA [as 別名]
# 或者: from paleomix.common.formats.msa.MSA import from_lines [as 別名]
def test_msa_from_lines__single_entry():
lines = [">seq1", "ACG"]
result = MSA([FASTA("seq1", None, "ACG")])
assert_equal(MSA.from_lines(lines), result)