先读几篇文章:

Interpretation of Association Signals and Identification of Causal Variants from Genome-wide Association Studies

GWAS have been successful in identifying disease susceptibility loci, but it remains a challenge to pinpoint the causal variants in subsequent fine-mapping studies. A conventional fine-mapping effort starts by sequencing dozens of randomly selected samples at susceptibility loci to discover candidate variants, which are then placed on custom arrays or used in imputation algorithms to find the causal variants. We propose that one or several rare or low-frequency causal variants can hitchhike the same common tag SNP, so causal variants may not be easily unveiled by conventional efforts. Here, we first demonstrate that the true effect size and proportion of variance explained by a collection of rare causal variants can be underestimated by a common tag SNP, thereby accounting for some of the “missing heritability” in GWAS. We then describe a case-selection approach based on phasing long-range haplotypes and sequencing cases predicted to harbor causal variants. We compare this approach with conventional strategies on a simulated data set, and we demonstrate its advantages when multiple causal variants are present. We also evaluate this approach in a GWAS on hearing loss, where the most common causal variant has a minor allele frequency (MAF) of 1.3% in the general population and 8.2% in 329 cases. With our case-selection approach, it is present in 88% of the 32 selected cases (MAF = 66%), so sequencing a subset of these cases can readily reveal the causal allele. Our results suggest that thinking beyond common variants is essential in interpreting GWAS signals and identifying causal variants.

Where is the causal variant? On the advantage of the family design over the case-control design in genetic association studies.

Identification of causal genes for complex traits

Pure and Confounded Effects of Causal SNPs on Longevity: Insights for Proper Interpretation of Research Findings in GWAS of Populations with Different Genetic Structures

初步学习一些TensorFlow的基本概念

YouTube的莫凡教程  GitHub

# View more python tutorial on my Youtube and Youku channel!!!# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial"""
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
"""
from __future__ import print_function
import tensorflow as tf
import numpy as np# create data
x_data = np.random.rand(100).astype(np.float32)
y_data = x_data*0.1 + 0.3### create tensorflow structure start ###
Weights = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
biases = tf.Variable(tf.zeros([1]))y = Weights*x_data + biasesloss = tf.reduce_mean(tf.square(y-y_data))
optimizer = tf.train.GradientDescentOptimizer(0.5)
train = optimizer.minimize(loss)
### create tensorflow structure end ###sess = tf.Session()
# tf.initialize_all_variables() no long valid from
# 2017-03-02 if using tensorflow >= 0.12
if int((tf.__version__).split('.')[1]) < 12 and int((tf.__version__).split('.')[0]) < 1:init = tf.initialize_all_variables()
else:init = tf.global_variables_initializer()
sess.run(init)for step in range(201):sess.run(train)if step % 20 == 0:print(step, sess.run(Weights), sess.run(biases))

  

如何制作模拟的数据

Data Simulation Software for Whole-Genome Association and Other Studies in Human Genetics

A comparison of tools for the simulation of genomic next-generation sequencing data

num_cau_SNP <- 20
num_SNP <- 500
samplesize <- 20
h_squared <- 0.5# generate genotype in Binomial distribution
pj <- runif(num_SNP, 0.01, 0.5)
xij_star <- matrix(0, samplesize, num_SNP)
#for every SNP
for (j in 1: num_SNP)
{xij_star[,j] <- rbinom(samplesize, 2, pj[j])
}#position of causal SNPs
CauSNP <- sample(1:num_SNP, num_cau_SNP, replace = F)
Ord_CauSNP <- sort(CauSNP, decreasing = F)# generate beta, which is the best predictor
beta <- rep(0,num_SNP)
dim(beta) <- c(num_SNP,1)
# non-null betas follow standard normal distribution
beta[Ord_CauSNP] <- rnorm(num_cau_SNP,0,1)# epsilon
var_e <- sum((xij_star %*% beta)^2)
# var_e <- t(beta)%*%t(xij_star)%*%xij_star%*%beta/samplesize*(1-h_squared)/h_squared
e <- rnorm(samplesize, 0,sqrt(var_e))
dim(e) <- c(samplesize, 1)# generate phenotype
pheno <- xij_star %*% beta + e# scale(genotype matrix)

  

待续~

转载于:https://www.cnblogs.com/leezx/p/9042295.html

causal snps | causal variants | tensorflow | 神经网络实战 | Data Simulation相关推荐

  1. tensorflow卷积神经网络实战:Fashion Mnist 图像分类与人马分类

    卷积神经网络实战:Fashion Mnist 图像分类与人马分类 一.FashionMnist的卷积神经网络模型 1.卷积VS全连接 2.卷积网络结构 3.卷积模型结构 1)Output Shape ...

  2. 独家 | 一文带你上手卷积神经网络实战(附数据集学习资料)

    原文标题:Understanding deep Convolutional Neural Networks with a practical use-case in Tensorflow and Ke ...

  3. 这本《Python+TensorFlow机器学习实战》给你送到家!

    小伙伴们,本公众号很久没用送书啦,是不是很是期待呀?放心啦,这次每个大佬送5本书,一共25本!包邮到你家楼下,哈哈! 怎么送书呢? 方法当然是很简单啦,关注下面公众号,后台回复「抽奖」,弹出小程序二维 ...

  4. 【Pytorch神经网络实战案例】21 基于Cora数据集实现Multi_Sample Dropout图卷积网络模型的论文分类

    Multi-sample Dropout是Dropout的一个变种方法,该方法比普通Dropout的泛化能力更好,同时又可以缩短模型的训练时间.XMuli-sampleDropout还可以降低训练集和 ...

  5. 我的Go+语言初体验——Go+语言构建神经网络实战手写数字识别

    "我的Go+语言初体验" | 征文活动进行中- 我的Go+语言初体验--Go+语言构建神经网络实战手写数字识别 0. 前言 1. 神经网络相关概念 2. 构建神经网络实战手写数字识 ...

  6. Tensorflow神经网络框架 小例子 三层神经网络 卷积神经网络 循环神经网络 神经网络可视化

    Tensorflow神经网络框架 以前我们讲了神经网络基础,但是如果从头开始实现,那将是一个庞大且费时的工作,所以我们选择一条捷径---神经网络框架.我理解的神经网络框架就相当于一个工具包.就比如我们 ...

  7. 【图神经网络实战】深入浅出地学习图神经网络GNN(上)

    文章目录 一.图神经网络应用领域 1.1 芯片设计 1.2 场景分析与问题推理 1.3 推荐系统 1.4 欺诈检测与风控相关 1.5 知识图谱 1.6 道路交通的流量预测 1.7 自动驾驶(无人机等场 ...

  8. 《TensorFlow语音识别实战》简介

    #好书推荐##好书奇遇季#<TensorFlow语音识别实战>,京东当当天猫都有发售.配套源码.PPT课件.数据集.开发环境与答疑服务. 自动语音识别(Automatic Speech R ...

  9. TensorFlow神经网络集成方案

    TensorFlow神经网络集成方案 创造张力流create_tensorflow_neuropod 将TensorFlow模型打包为neuropod包. create_tensorflow_neur ...

  10. R语言data.table导入数据实战:data.table中编写函数并使用SD数据对象

    R语言data.table导入数据实战:data.table中编写函数并使用SD数据对象 目录 R语言data.table导入数据实战:data.table中编写函数并使用SD数据对象 #data.t ...

最新文章

  1. TortoiseGit密钥的配置
  2. HDOJ 1016 HDU 1016 Prime Ring Problem ACM 1016 IN HDU
  3. minute教会你shell
  4. iOS 字典与字符串之间的互转
  5. 打开word2016总是出现很抱歉,此功能看似中断需要修复。。问题解决办法
  6. 前端学习(2709):重读vue电商网站29之左侧菜单栏
  7. C/C++基础知识10道题,你都会吗?
  8. 读取文件卡顿_奥睿科IV300固态硬盘评测:35克,读取超900M/s?
  9. 网络编程基础,传输层服务
  10. 将两个(或多个)Item建立关联 app_field.set_dependent_field和app_field.clear_dependent_fields...
  11. ccf中文期刊目录_中国计算机学会CCF推荐中文科技期刊目录
  12. 我的2015技术学习流水账
  13. vs2015离线安装QT的vsix工具
  14. 系统集成项目管理师和高级项目管理师考试心得
  15. React实现简单图片放大缩小旋转还原模块
  16. 防汛可视化:雨季来临,如何做好防汛措施?
  17. 门户通专访爱思网创始人韩笑:SNS网站必然走向实用化!
  18. modis遥感影像数据批量下载(不限制网速的办法)
  19. WIN 7系统建立无线热点
  20. html ico 图片 无效,设置favicon.ico manifest.json无效

热门文章

  1. Java如何使用IP代理
  2. Axure软件的使用
  3. 使用vue-i18n实现多语言
  4. 【分享一些自己收集的API接口---欢迎点赞收藏】
  5. 六步学会github入门使用
  6. 腾讯云实验室linux基本操作
  7. 黑苹果驱动_黑苹果怎么更新驱动程序?
  8. 用Python制作核酸检测日历
  9. 请输入一个年份和月份判断该月份的天数,注:闰年2月29天、平年2月28天。
  10. Excel技巧 一秒取消合并单元格,让你的取消合并操作简单快捷