| dad | mom | kid | Inheritance description |
|---|---|---|---|
| HOM_REF | HOM_REF | HOM_REF | Expected |
| HOM_REF | HOM_REF | HET | Mendelian violation (plausible de novo) |
| HOM_REF | HOM_REF | HOM_ALT | Mendelian violation (implausible de novo) |
| HOM_REF | HOM_ALT | HOM_REF | Mendelian violation (uniparental disomy) |
| HOM_REF | HOM_ALT | HET | Expected |
| HOM_REF | HOM_ALT | HOM_ALT | Mendelian violation (uniparental disomy) |
| HOM_REF | HET | HOM_REF | Expected |
| HOM_REF | HET | HET | Expected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################ | |
| # Novoalign | |
| ############################################################ | |
| export GENOME=/home/arq5x/cphg-home/shared/genomes/hg19/bwa/gatk/hg19_gatk.fa.novo.k14.s1.idx | |
| export IRCHOME=/net/midtier18/vol79/cphg-quinlan2/projects/irradiated-clones | |
| export STEPNAME=ircnovo | |
| export QSUB="qsub -W group_list=cphg_arq5x -q arq5xlab -V -l select=1:mem=32000m:ncpus=16 -N $STEPNAME -m bea -M arq5x@virginia.edu"; | |
| echo "cd $IRCHOME; novoalign -d $GENOME -o SAM $'@RG\tID:parental\tSM:parental' -r Random \ | |
| -f fastq/CgmW_AGTCAA_L001_R1.fastq.gz fastq/CgmW_AGTCAA_L001_R2.fastq.gz \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pybedtools as pbt | |
| import sys | |
| def merge_gene(lines): | |
| tmp = pbt.BedTool(lines, from_string=True).merge(nms=True) | |
| print tmp | |
| gene_lines = '' | |
| curr_gene = None | |
| prev_gene = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /home/arq5x/cphg-home/projects/bedtools-curr-prot-bx | |
| ####################################################### | |
| # 1. Create subsamples of BAM file and convert to BED. | |
| ####################################################### | |
| bedtools bamtobed -i ~/cphg-quinlan/projects/rs-exome/bam/1478PC0009B.conc.on.pos.bam | \ | |
| cut -f 1-3 \ | |
| > datasets/sample.100M.bam.bed & | |
| samtools view -us 0.10 ~/cphg-quinlan/projects/rs-exome/bam/1478PC0009B.conc.on.pos.bam | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export SAMPLES="2484-AJ-0001 2484-AJ-0002 2484-AJ-0003" | |
| ###################################### | |
| # Make FASTQ | |
| ###################################### | |
| export OVHOME=/home/arq5x/cphg-home/cphg-quinlan/projects/ov-cell-lines | |
| export STEPNAME=ovc-fastq | |
| for sample in `echo $SAMPLES` | |
| do | |
| export QSUB="qsub -W group_list=cphg_arq5x -q arq5xlab -V -l select=1:mem=8000m:ncpus=1 -N $STEPNAME -m bea -M arq5x@virginia.edu"; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DL: https://code.google.com/p/macs/ | |
| # simulate: | |
| # 100 individuals (200 haplotypes) | |
| # "genome" is 1Mb (1e6) | |
| # mutation and recombinaytion rate at 0.001 | |
| macs 200 1e6 -T -t .001 -r .001 > 200.macs | |
| # peak at file: | |
| grep SITE: 200.macs | head |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Download the raw CADD TSV and Tabix index (no annotations, just scores) | |
| wget http://krishna.gs.washington.edu/download/CADD/v1.0/whole_genome_SNVs.tsv.gz | |
| wget http://krishna.gs.washington.edu/download/CADD/v1.0/whole_genome_SNVs.tsv.gz.tbi | |
| # it is big. 79Gb | |
| ls -ltrh whole_genome_SNVs.tsv.gz | |
| -rw-r--r-- 1 arq5x users 79G Sep 26 01:44 whole_genome_SNVs.tsv.gz | |
| # for testing, let's play with the chr22 intervals | |
| tabix whole_genome_SNVs.tsv.gz 22 | bgzip > whole_genome_SNVs.tsv.22.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -i https://api.github.com/repos/arq5x/bedtools2/releases |