到BRI(Bam读取索引)的Python接口
camembert-bri的Python项目详细描述
卡门贝
使用pysam集成的https://github.com/jts/bri的Cython包装器。在
安装
从pip存储库
pip install camembert-bri
来源
conda方法(推荐)
^{pr2}$pip方法
# optional virtualenv: virtualenv camembert source camembert/bin/activate # Installation pip install -r requirements.txt python setup.py install
示例
美国石油学会
构建读取索引
fromcamembertimportBrib=Bri(bam_file)b.create()
检索读数
fromcamembertimportBrib=Bri(bam_file)b.load()forreadinb.get(read_name):print(read.to_string())# read is of type pysam.AligmentSegment
命令行接口
包括一个命令行界面,它模拟了原始的bri CLI命令。有关用法,请参阅
camembert --help camembert <subcommand> --help
构建读取索引
camembert index bam_file.bam
检索读数
camembert get bam_file.bam read_name
- 项目
标签: