diff ped2bed/ped2bed.sh @ 9:98c37a5d67f4 draft

Uploaded
author dereeper
date Wed, 07 Feb 2018 22:08:47 -0500
parents 420b57c3c185
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ped2bed/ped2bed.sh	Wed Feb 07 22:08:47 2018 -0500
@@ -0,0 +1,20 @@
+#!/bin/bash
+ped=$1
+map=$2
+bed=$3
+fam=$4
+bim=$5
+logs=$6
+
+directory=`dirname $0`
+mkdir tmpdir$$
+cp -rf $ped tmpdir$$/input.ped
+cp -rf $map tmpdir$$/input.map
+ 
+plink --file tmpdir$$/input --out tmpdir$$/out --make-bed --noweb >>$logs 2>&1
+
+mv tmpdir$$/out.bed $bed
+mv tmpdir$$/out.fam $fam
+mv tmpdir$$/out.bim $bim
+
+