当前位置: 首页 > news >正文

python脚本:输入基因名,通过爬虫的方式获取染色体上的location。

本团队提供生物医学领域专业的AI(机器学习、深度学习)技术支持服务。如果您有需求,请扫描文末二维码关注我们。

在这里插入图片描述


python脚本:输入基因名,通过爬虫的方式获取染色体上的location。

def get_gene_location(gene_symbol):server = "https://rest.ensembl.org"ext = f"/lookup/symbol/homo_sapiens/{gene_symbol}?expand=1"r = requests.get(server + ext, headers={ "Content-Type" : "application/json"})if not r.ok:r.raise_for_status()return Nonedecoded = r.json()return decoded['seq_region_name'], decoded['start'], decoded['end']

在这里插入图片描述


http://www.mrgr.cn/news/7406.html

相关文章:

  • 英伟达H20核心价值和高效运用揭秘
  • 微知-lspci如何查看pcie设备树状结构(-t)
  • el-image的配套使用(表格,表单)
  • 【PyTorch】深度学习PyTorch加载数据
  • react 路由创建与使用
  • docker应用
  • 软件测试——自动化测试selenium常用函数
  • 关于python的Django项目性能优化
  • 【开源社区】Elasticsearch(ES)中 exists 查询空值字段的坑
  • CSS3多行多栏布局
  • 计算机网络——HTTP与HTTPS协议
  • Frog4Shell — FritzFrog 僵尸网络将一日攻击纳入其武器库
  • 深度学习/机器学习软件教学平台
  • 记录一次经历:使用flask_sqlalchemy集成flask造成循环导入问题
  • python-docx 实现 Word 办公自动化
  • 如何使用 Python创建一个视频文件管理器并实现视频截图功能
  • Fiddle抓手机app的包
  • 等保测评基础知识(六)
  • 系统架构师(每日一练22)
  • Flink常见数据源(source)使用教程(DataStream API)