R语言阈值置信区间怎么计算
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,这篇"R语言阈值置信区间怎么计算"文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇"R语言
千家信息网最后更新 2026年11月02日R语言阈值置信区间怎么计算
这篇"R语言阈值置信区间怎么计算"文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇"R语言阈值置信区间怎么计算"文章吧。
R语言源代码
####################################Arg<-commandArgs(TRUE)###########input###############################################individual_analysis<- c(Arg[1])reprication<-c(Arg[2])filter_value<-c(Arg[3])population_structure<-c(Arg[4]) #RIL or F2depth_analysis<-c(1:300)###########input##########################################################genotype#############################genotype<-function(){count<-0if (population_structure=="RIL"){x<-runif(1) if (x<=0.5){count<-1}else{count<-0}}else{for(i in 1:2){x<-runif(1) if (x<=0.5){number<-0.5}else{number<-0}if(number == 0.5){count<- count+0.5}}}return(count)}#######################################################################caluclate of genotype ratio#########################individuals_genotype<-function(number_of_total_individuals){ratio_of_genotype<-c()for(i in 1:number_of_total_individuals){ratio_of_genotype<-c(ratio_of_genotype,genotype())}return(mean(ratio_of_genotype))}#######################################################################SNP_index_caluclation#########################snp_index<-function(read_depth,ratio_of_genotype_in_the_population_in_A){x1<-rbinom(1,read_depth,ratio_of_genotype_in_the_population_in_A)return(x1/read_depth)}################################################################################################for (key_individual in individual_analysis){ individual_number<-key_individual depth_data<-c() p_l_data_95<-c() p_h_data_95<-c() p_l_data_99<-c() p_h_data_99<-c() for (key_depth in depth_analysis){ depth_data<-c(depth_data,key_depth) depth<-key_depth data_of_delta_snp_index<-c() for(i in 1:reprication){ ##########gene_frequency######################ratio_of_genotype_in_the_population_in_A<-individuals_genotype(key_individual)Snp_index_of_A<-snp_index(key_depth,ratio_of_genotype_in_the_population_in_A)ratio_of_genotype_in_the_population_in_B<-individuals_genotype(key_individual)Snp_index_of_B<-snp_index(key_depth,ratio_of_genotype_in_the_population_in_B)if(Snp_index_of_A >= filter_value | Snp_index_of_B >=filter_value){delta_snp_index<-Snp_index_of_A-Snp_index_of_Bdata_of_delta_snp_index<-c(data_of_delta_snp_index,delta_snp_index)}##########gene_frequency###################### } order_data_of_delta_snp_index<-sort(data_of_delta_snp_index) length_data_of_delta_snp_index<-length(data_of_delta_snp_index) ##########snp_index_probabirity_0.05###################### snp_cutoff_low_0.025<-order_data_of_delta_snp_index[floor(0.025*length_data_of_delta_snp_index)]snp_cutoff_up_0.975<-order_data_of_delta_snp_index[ceiling(0.975*length_data_of_delta_snp_index)]p_l_data_95<-c(p_l_data_95,snp_cutoff_low_0.025) p_h_data_95<-c(p_h_data_95,snp_cutoff_up_0.975) ##########snp_index_probabirity_0.05###################### ##########snp_index_probabirity_0.01###################### if (floor(0.005*length_data_of_delta_snp_index)>0){ snp_cutoff_low_0.005<-order_data_of_delta_snp_index[floor(0.005*length_data_of_delta_snp_index)] }else{ snp_cutoff_low_0.005<-order_data_of_delta_snp_index[1] } if (ceiling(0.995*length_data_of_delta_snp_index)以上就是关于"R语言阈值置信区间怎么计算"这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注行业资讯频道。
内容
语言
区间
阈值
文章
知识
篇文章
价值
大部分
就是
更多
步骤
源代码
知识点
行业
资讯
资讯频道
频道
帮助
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
天津市摩尔互联网科技
为想互联网科技怎么样
科技互联网龙头
科技和互联网公司
互联网科技垄断
上海互联网科技有限公司
西安互联网科技公司
人人互联网科技是培训
互联网 科技馆
互联网和高科技公司
玖二柒互联网科技公司待遇
创业天下互联网科技有限公司
厦门千工互联网科技有限公司
湖南一路畅行互联网科技
富国互联网金融科技混合基金
浙南科技城互联网大厦招聘
互联网科技和医药行业
10位科技互联网大佬
北京瑞云互联网科技有限公司
互联网科技企业文化
互联网科技园
新华互联网科技学校
唐信互联网科技
深圳齐家互联网科技
智慧科技互联网
赶超互联网科技 微信多开
互联网科技产业特征
银川新华互联网科技学校联系电话
山东子淼互联网科技有限公司
工业互联网科技创业