Stan implementation of the bayesian model Skelly et al 2011 Genome Research
Download cmdstan-2.9.0.tar.gz, https://github.com/stan-dev/cmdstan/releases/download/v2.9.0/cmdstan-2.9.0.tar.gz
tar xvzf cmdstan-2.9.0.tar.gz
cd cmdstan-2.9.0
| structure(list(ensembl = structure(c(11L, 11L, 11L, 11L, 11L, | |
| 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, | |
| 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, | |
| 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 28L, 28L, | |
| 28L, 28L, 28L, 28L, 28L, 28L, 28L, 28L, 28L, 28L, 28L, 28L, 28L, | |
| 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, | |
| 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, | |
| 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, | |
| 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 21L, 4L, | |
| 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, |
| import pymc as mc | |
| import numpy as np | |
| import time | |
| import theano.tensor as T | |
| import theano | |
| theano.config.compute_test_value = 'off' | |
| ## generate some data | |
| N = 10000 |
| import theano | |
| import theano.tensor as T | |
| theano.config.compute_test_value = 'off' | |
| import numpy as np | |
| # routine to make some data up | |
| def makeup_data(n,p): | |
| X = np.memmap('test.memmap', dtype='float64', mode='w+', shape=(n,p)) |
| ##fileformat=VCFv4.2 | |
| ##FILTER=<ID=PASS,Description="All filters passed"> | |
| ##samtoolsVersion=1.0+htslib-1.0 | |
| ##samtoolsCommand=samtools mpileup -f /home/ipedroso/APP/bcbio-nextgen/genomes/populus_trichicarpa/ptri_v3/seq/ptri_v3.fa -t DP -u -g -l /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/work/samtools/scaffold_2499/GW-10958-scaffold_2499_0_3827-raw-regions.bed /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/work/align/GW-10958/14_2014-09-26_populus_trichocarpa_diversity_1-sort.bam | |
| ##reference=file:///home/ipedroso/APP/bcbio-nextgen/genomes/populus_trichicarpa/ptri_v3/seq/ptri_v3.fa | |
| ##contig=<ID=Chr01,length=50495391> | |
| ##contig=<ID=Chr02,length=25263035> | |
| ##contig=<ID=Chr03,length=21816808> | |
| ##contig=<ID=Chr04,length=24267051> | |
| ##contig=<ID=Chr05,length=25890704> |
| [ipedroso@jimi log]$ cat bcbio-nextgen-debug.log | |
| [2014-12-17T14:05Z] Resource requests: bwa, sambamba, samtools; memory: 2.00; cores: 16, 1, 16 | |
| [2014-12-17T14:05Z] Configuring 3 jobs to run, using 16 cores each with 32.1g of memory reserved for each job | |
| [2014-12-17T14:05Z] Timing: organize samples | |
| [2014-12-17T14:05Z] multiprocessing: organize_samples | |
| [2014-12-17T14:05Z] Using input YAML configuration: /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/config/populus_trichocarpa_diversity_1.yaml | |
| [2014-12-17T14:05Z] Checking sample YAML configuration: /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/config/populus_trichocarpa_diversity_1.yaml | |
| [2014-12-17T14:05Z] Testing minimum versions of installed programs | |
| [2014-12-17T14:05Z] Timing: alignment preparation | |
| [2014-12-17T14:05Z] multiprocessing: prep_align_inputs |
| [ipedroso@jimi log]$ cat bcbio-nextgen.log | |
| [2014-12-17T14:05Z] Timing: organize samples | |
| [2014-12-17T14:05Z] multiprocessing: organize_samples | |
| [2014-12-17T14:05Z] Using input YAML configuration: /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/config/populus_trichocarpa_diversity_1.yaml | |
| [2014-12-17T14:05Z] Checking sample YAML configuration: /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/config/populus_trichocarpa_diversity_1.yaml | |
| [2014-12-17T14:05Z] Testing minimum versions of installed programs | |
| [2014-12-17T14:05Z] Timing: alignment preparation | |
| [2014-12-17T14:05Z] multiprocessing: prep_align_inputs | |
| [2014-12-17T19:37Z] multiprocessing: disambiguate_split | |
| [2014-12-17T19:37Z] Timing: alignment |
| [ipedroso@jimi log]$ cat bcbio-nextgen-commands.log | |
| [2014-12-17T14:05Z] gunzip -c /media/TeraData/ipedroso/globus_endpoint/Ptrichocarpa_phytozome/v3.0/diversity/bam/BESC-015_1.fastq.gz | /home/shared/app/bcbio/tool/bin/bgzip -c /dev/stdin > /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/work2/align_prep/tx/tmp2vQ808/BESC-015_1.fastq.gz | |
| [2014-12-17T14:05Z] gunzip -c /media/TeraData/ipedroso/globus_endpoint/Ptrichocarpa_phytozome/v3.0/diversity/bam/93-968_1.fastq.gz | /home/shared/app/bcbio/tool/bin/bgzip -c /dev/stdin > /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/work2/align_prep/tx/tmpgNAsco/93-968_1.fastq.gz | |
| [2014-12-17T16:51Z] gunzip -c /media/TeraData/ipedroso/globus_endpoint/Ptrichocarpa_phytozome/v3.0/diversity/bam/BESC-015_2.fastq.gz | /home/shared/app/bcbio/tool/bin/bgzip -c /dev/stdin > /media/TeraData/ipedroso/ANALYSES/Populus/Diversity_1/populus_trichocarpa_diversity_1/work2/align_prep/tx/tmptFim84/BESC-015_2.fastq.gz | |
| [ |
| Provided cores: 100 | |
| Provided resources: java_re=3 | |
| Ignored resources: large_n_io, gnu_parallel | |
| Job counts: | |
| count jobs | |
| 2240 index_vcf | |
| 2100 index_bam | |
| 2000 SplitNCigarReads_SampleRegionWise | |
| 2000 recode_CIGAR_N_to_D | |
| 100 freebayes_joint_regionwise |
Stan implementation of the bayesian model Skelly et al 2011 Genome Research
Download cmdstan-2.9.0.tar.gz, https://github.com/stan-dev/cmdstan/releases/download/v2.9.0/cmdstan-2.9.0.tar.gz
tar xvzf cmdstan-2.9.0.tar.gz
cd cmdstan-2.9.0
| Chr03 1671030 1678847 | |
| Chr03 1680122 1683702 | |
| Chr03 1684822 1686872 | |
| Chr03 1689404 1693397 | |
| Chr03 1723476 1727153 | |
| Chr03 1774605 1776831 | |
| Chr03 1778862 1780912 | |
| Chr03 1796910 1798963 | |
| Chr03 1819329 1823273 | |
| Chr03 1828476 1831732 |