Python包-WordCloud 绘制词云图
安装1pip install wordcloud
使用12345w= wordcloud.WordCloud()w.generate() # 向WordCloud对象中加载文本txt>>>w.generate("Python and WordCloud")w.t
...
Python包-argparse
参考资料argparseg官方文档:python3argparseg官方文档:python3-中文
子命令 subparsers()功能比较多的命令端程序常常将功能分解到不同子命令中,如在Python中常见的pip install、pip uninstall等。当程序比较复杂且不同功能都需要不同参数
...
Python包-json
安装1pip install json
格式介绍123{"accesskeyID":"LTAI5tSRTFb****","accesskeysecret":"jAJGMov82****"}
数据读取1
...
Python包-pysam
文件读写文件读写句柄bam_file : bam文件路径
读取文件1samfile = pysam.AlignmentFile(bam_file) # 读取文件句柄
写入文件123456WriteBam = pysam.AlignmentFile(bam_file , "wb"
...
Python包-python-docx撰写word
参考博客python-sendkeys 模拟键盘事件的模块
导入需要的包
12345import win32apiimport win32conimport win32guifrom ctypes import *import time
设置鼠标双击的函数,通过坐标控制双击位点
123456
...
Python包-python-docx撰写word
用途处于某些上下游对接需求,所以需要频繁的将生信的分析结果整理成word文件,以便以进行信息的传递。所以基于该模块可以更方便的在集群上自动化生成相关的文档示例,用于进行后续的处理。
环境安装使用Python进行doc文档编写的过程中,需要安装下列软件 & 包
docx #对应安装命令
...
Python包-Pyyaml
安装1pip install pyyaml
格式介绍123456raincoat: 1coins: 5books: 23spectacles: 2chairs: 12pens: 6
数据读取12345#!/usr/bin/env python3import yamlwith open('i
...