annotate MDSplot/mdsplot.sh @ 5:ec22fcacb66c draft

planemo upload
author gandres
date Mon, 15 Feb 2016 10:26:18 -0500
parents 10627af23f10
children 6bf69b40365c
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
4
10627af23f10 planemo upload
gandres
parents: 0
diff changeset
6 fileout_label=$(date "+%Y%m%d%H%M%S")
10627af23f10 planemo upload
gandres
parents: 0
diff changeset
7 fileout_matrix=$3
10627af23f10 planemo upload
gandres
parents: 0
diff changeset
8 fileout_plot=$4
10627af23f10 planemo upload
gandres
parents: 0
diff changeset
9 fileout_log=$5
0
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