相互转换biopython支持的各种文件格式。支持使用jmespath查询记录。

biopython.convert的Python项目详细描述


https://zenodo.org/badge/195302632.svg

生物圈转换

相互转换biopython支持的各种文件格式。

支持使用jmespath查询记录。

安装

pip install biopython.convert

或:

conda install biopython.convert

或:

git clone https://github.com/brinkmanlab/BioPython-Convert.git
cd BioPython-Convert
./setup.py install

使用

biopython.convert [-s] [-v] [-i] [-q JMESPath] input_file input_type output_file output_type
    -s Split records into seperate files
    -q JMESPath to select records. Must return list of SeqIO records or mappings. Root is list of input SeqIO records.
    -i Print out details of records during conversion
    -v Print version and exit
支持的格式
ABI、ABI Trim、ACE、CIF Atom、CIF Seqres、Clustal、EMBL、FASTA、FASTA-2线路、FASTQ Sanger、FASTQ, fastq solexa、fastq illumina、genbank、gb、ig、imgt、nexus、pdb seqres、pdb atom、博士、phylip、pir、seqxml, SFF,SFF装饰,斯德哥尔摩,瑞士,TAB,QUAL,Uniprot XML,gff3

JMESPath

查询的根节点是SeqRecord对象的列表。查询可以返回一个包含这些或 一种映射,键入seqrecord对象的constructor parameters

示例:

附加新记录:

[@, [{`seq`: `AAAA`, `name`: `my_new_record`}]] | []

过滤掉任何质粒:

[?!(features[?type==`source`].qualifiers.plasmid)]

只保留第一条记录:

[0]

请参阅CONTRIBUTING.rst以获取有关对此回购协议作出贡献的信息。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
两个不同类中的java trycatch NullPointerException错误   java在安卓 studio中使用Eclipse类?   java Python在Android上的限制是什么?   java无法找到或加载主类com。太阳工具。javac。主hadoop mapreduce   json Java jersey客户端使用JsonArray的JsonArray   Java Swing GUI隐藏输入   java readobject方法引发ClassNotFoundException   java Transactional不会在Spring引导中使用数据JPA回滚已检查的异常   java如何返回通用枚举的枚举元素列表?   java中一种多线程负载平衡线程池   java运行。bat将无法正确打开命令提示符   java为什么C++给了你拥有非新分配对象的选项?   java Weka未找到主类错误   java SSL检查绕过SSLSocketFactory   Java8函数组合和