annotate MDSplot/mdsplot.sh @ 1:420b57c3c185 draft

Uploaded
author dereeper
date Fri, 10 Jul 2015 04:39:30 -0400
parents 3e19d0dfcf3e
children 10627af23f10
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
1 #!/bin/bash
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
2
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
3 tool_path=$(dirname $0)
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
4 ped=$1
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
5 map=$2
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
6 fileout_label=$3
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
7 fileout_matrix=$4
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
8 fileout_plot=$5
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
9 fileout_log=$6
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
10
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
11 rsync -a $ped input.ped
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
12 rsync -a $map input.map
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
13
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
14 perl $tool_path/MDSbasedOnIBSmatrix.pl --in input --out $fileout_label
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
15
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
16 rm -f input.ped input.map
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
17
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
18 cp $fileout_label.ibs_matrix.txt $fileout_matrix
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
19 cp $fileout_label.mds_plot.txt $fileout_plot
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
20 cp input.plink.log $fileout_log
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
21
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
22
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
23 rm -f $fileout_label.ibs_matrix.txt $fileout_label.mds_plot.txt input.plink.log