annotate MDSplot/mdsplot.sh @ 19:a0a95688cf17 draft

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