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

【工具】grcMalaria用于处理和分析“斑点疟疾基因报告卡”的R软件包

在这里插入图片描述

文章目录

    • 介绍
    • 代码
    • 参考

介绍

grcMalaria 是一个易于使用的、开源的 R 软件包,旨在使遗传流行病学分析任务变得易于操作。
该软件包能够将来自“SpotMalaria 遗传报告卡”(GRC)中提取的疟原虫遗传信息转化为直观的流行率、多样性、亲缘关系等地理图谱。该软件库还能够识别流行毒株、分析药物耐药性特征以及绘制传播路径。

grcMalaria is a user-friendly, open-source R package, designed to make genetic epidemiology analysis tasks accessible.

The package facilitates the translation of genetic information derived from malaria parasites from SpotMalaria Genetic Report Cards (GRC) into intuitive geographical maps of prevalence, diversity, relatedness. This software library is also capable of identifying circulating strains, characterising drug resistance profiles, and mapping spread.

代码

https://genremekong.org/tools/grcmalaria-guide

## Install devtools and rgeos
install.packages("devtools")
install.packages("rgeos")##Install grcMalariaGeodata from Github
devtools::install_github("malariagen/grcMalariaGeodata")## Require these dependencies to install 'malariagen/grcMalaria'
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")BiocManager::install("pcaMethods")# Load libraries
library(grcMalariaGeodata)
library(grcMalaria)# Check package versions grcMalaria and grcMalariaGeodata
# Latest version grcMalariaGeodata: 0.4.0
# Latest stable version of grcMalaria: 2.0.0
packageVersion('grcMalaria')
packageVersion('grcMalariaGeodata')# Load data file
# Change the path to where your file is located before running the code
Data <- loadGrc("D:/.../GRC.xlsx", sheet = "GenRe-Mekong", species = "Pf", version = "1.4")ctx <- initializeContext(Data, dir="D:/...", #Change the path to where you want output file to be minSnpTypability=0.8, minSampleTypability=0.75) ## Select sample set to work on. # To select samples from 1 field (1 column in the GRC)
selectSampleSet(ctx, sampleSetName="EBKK", select=list(list(field="Country", values=c("VN", "KH", "LA")) ))# To select samples from 2 fields
selectSampleSet(ctx, sampleSetName="Laos", select=list(list(field="TimePoint", values=c("D00H00","-")),list(field="Study", values=c("1208-PF-LA-CMPE-GENRE")) ))# To select samples from 3 fields
selectSampleSet(ctx, sampleSetName="SouthLA_2017", select=list(list(field="Country", values="LA"),list(field="AdmDiv1", values=c("Attapeu", "Champasak")),list(field="Year", values=c("2017", "2018")) ))# To select samples from more fields, follow the example above to add more -> list(field=" ", values = " ")mapSampleCounts (ctx, sampleSet="EBKK", timePeriods=NULL,aggregate=c("Province","District"), minAggregateCount=1, markerSize=c(10,40), colourBy="Province", showNames=TRUE,...)

在这里插入图片描述

mapDrugResistancePrevalence (ctx, sampleSet="EBKK", timePeriods=NULL,drugs="ALL", aggregate=c("Province","District"),minAggregateCount=10, showNames=TRUE, markerSize=16,...)

在这里插入图片描述

参考

  • https://github.com/GenRe-Mekong/grcMalaria
  • https://genremekong.org/tools/grcmalaria-guide
http://www.dtcms.com/a/203842.html

相关文章:

  • 工商总局可视化模版-Echarts的纯HTML源码
  • RestTemplate 发送的字段第二个大写字母变成小写的问题探究
  • 数据被泄露了怎么办?
  • 机器学习中的泛化能力
  • PostgreSQL中通过查询数据插入到表的几种方法( SELECT INTO和INSERT INTO ... SELECT)
  • 离线服务器Python环境配置指南
  • 微信小程序中,解决lottie动画在真机不显示的问题
  • 年会招标抽奖活动软件———仙盟创梦IDE
  • 【项目记录】准备工作及查询部门
  • PCB智能报价系统——————仙盟创梦IDE
  • 大数据量查询优化:解锁SQL性能提升的关键
  • 一、苍穹外卖
  • React-改变当前页class默认的样式
  • 集成 OpenTelemetry + Grafana:实现 ABP VNext 的全链路可观测性
  • 【疑难杂症】Mysql 无报错 修改配置文件后服务启动不起来 已解决|设置远程连接
  • C语言---结构体 、联合体、枚举
  • 【Linux安装与维护】
  • React---day1
  • 飞牛fnNAS虚拟机标准安装
  • 反弹shell
  • TASK04【Datawhale 组队学习】构建RAG应用
  • 【Netty】- 入门2
  • 3D Gaussian Splatting for Real-Time Radiance Field Rendering——文章方法精解
  • 助力 FPGA 国产化,ALINX 携多款方案亮相深圳、广州“紫光同创 FPGA 技术研讨会”
  • 全平台开源电子书阅读器推荐,支持多端同步+AI朗读!支持epub/mobi/azw3/pdf常见电子书格式!
  • 亚马逊AWS跑不动了?
  • Linux云计算训练营笔记day13[CentOS 7 find、vim、vimdiff、ping、wget、curl、RPM、YUM]]
  • Flannel后端为UDP模式下,分析数据包的发送方式(二)
  • 亚马逊第四个机器人中心将如何降低30%配送成本?
  • 从芯片互连到机器人革命:英伟达双线出击,NVLink开放生态+GR00T模型定义AI计算新时代