Skip to content

Instantly share code, notes, and snippets.

View stephenturner's full-sized avatar

Stephen Turner stephenturner

View GitHub Profile
@stephenturner
stephenturner / plink-split-up-bedfile-by-chromosome.pl
Created November 11, 2010 21:54
plink-split-up-bedfile-by-chromosome.pl
@stephenturner
stephenturner / run_step0.pl
Created November 12, 2010 19:48
run_step0.pl
#!/usr/bin/env perl
# runs step 0 on all chromosomes
# produces the group files and the tarballed
# sets for running step1 and step 2 on
use strict;
# create and store distributions for the top 25 models from permutation testing
# for both the model p-value and interaction p-value
@stephenturner
stephenturner / impute_step0.sh
Created November 12, 2010 19:51
impute_step0.sh
#!/bin/bash
# For running step0 of the imputation procedure
# Splits files and creates random subset for step 1 of imputation
# adapted from original script written by Jacki Buros
# arguments are
# 1) plink bed source file
@stephenturner
stephenturner / run_step1.pl
Created November 12, 2010 19:57
run_step1.pl
#!/usr/bin/env perl
# runs step 1 on all chromosomes
# produces the input for step 2 results
# submits a pbs job for every chromosome specified
use strict;
# create and store distributions for the top 25 models from permutation testing
# for both the model p-value and interaction p-value
@stephenturner
stephenturner / impute_1000genomes_himem.pbs
Created November 12, 2010 20:00
impute_1000genomes_himem.pbs
#!/bin/bash
#PBS -M youremailaddress@domain.com
#PBS -m abe
#PBS -S /bin/bash
#PBS -l nodes=1:ppn=1
#PBS -W x=NODESET:FIRSTOF:FEATURE:opteron:x86
#PBS -l walltime=96:00:00
#PBS -l cput=96:00:00
#PBS -l pmem=8000mb
@stephenturner
stephenturner / impute_1000genomes.pbs
Created November 12, 2010 20:01
impute_1000genomes.pbs
#!/bin/bash
#PBS -M youremailaddress@domain.com
#PBS -m abe
#PBS -S /bin/bash
#PBS -l nodes=1:ppn=1
#PBS -W x=NODESET:FIRSTOF:FEATURE:opteron:x86
#PBS -l walltime=96:00:00
#PBS -l cput=96:00:00
#PBS -l pmem=3000mb
@stephenturner
stephenturner / impute_step1.sh
Created November 12, 2010 20:03
impute_step1.sh
#!/bin/bash
#
# Jacki Buros
# Step 1 impute
# check params
if [ -z $prefix ]
then
echo "$(date) | param 'prefix' not defined. Exiting."
return $ERR_DELETE_FILES
@stephenturner
stephenturner / plink_commands.txt
Created November 16, 2010 21:42
plink_commands.txt
@stephenturner
stephenturner / parallelize_plink_ibd.pl
Created November 16, 2010 21:50
parallelize_plink_ibdibd.pl
@stephenturner
stephenturner / submit_ibd_pbs.pl
Created November 16, 2010 22:01
submit_ibd_pbs.pl
#!/usr/bin/perl
use strict;
if(scalar(@ARGV) != 1){
print "submit_ibd_pbs.pl <num_pbs_to_submit>\n";
exit;
}
my $LIMIT = $ARGV[0];