annotate ped2bed/ped2bed.sh @ 10:c6640c49fd01 draft

planemo upload commit 475f4d7d8442a0d75e103af326ae5881c4d2a4ac
author dereeper
date Mon, 16 Apr 2018 09:00:24 -0400
parents 420b57c3c185
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
1 #!/bin/bash
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
2 ped=$1
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
3 map=$2
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
4 bed=$3
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
5 fam=$4
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
6 bim=$5
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
7 logs=$6
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
8
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
9 directory=`dirname $0`
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
10 mkdir tmpdir$$
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
11 cp -rf $ped tmpdir$$/input.ped
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
12 cp -rf $map tmpdir$$/input.map
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
13
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
14 plink --file tmpdir$$/input --out tmpdir$$/out --make-bed --noweb >>$logs 2>&1
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
15
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
16 mv tmpdir$$/out.bed $bed
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
17 mv tmpdir$$/out.fam $fam
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
18 mv tmpdir$$/out.bim $bim
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
19
420b57c3c185 Uploaded
dereeper
parents:
diff changeset
20