本文整理匯總了Python中flatfeature.Bed.mask_cds方法的典型用法代碼示例。如果您正苦於以下問題:Python Bed.mask_cds方法的具體用法?Python Bed.mask_cds怎麽用?Python Bed.mask_cds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類flatfeature.Bed
的用法示例。
在下文中一共展示了Bed.mask_cds方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Bed
# 需要導入模塊: from flatfeature import Bed [as 別名]
# 或者: from flatfeature.Bed import mask_cds [as 別名]
# write a genomic fasta file with all sequences covered by features
# in the specified Bed file masked to N.
from flatfeature import Bed
import sys
# b = Bed(sys.argv[1], sys.argv[2])
b = Bed("/Users/gturco/data/rice_v6.bed", "/Users/gturco/data/rice_v6.fasta")
for seqid, seq in b.mask_cds():
seqids = []
seq.tostring()