annotate MDSplot/mdsplot.sh @ 11:15b23cdde685 draft

planemo upload commit 305985afd3b7c3d47f531149c2f1a279af2d12aa-dirty
author dereeper
date Fri, 20 Apr 2018 09:04:25 -0400
parents 6bf69b40365c
children
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
8
6bf69b40365c Uploaded
dereeper
parents: 4
diff changeset
10 groups=$6
6bf69b40365c Uploaded
dereeper
parents: 4
diff changeset
11
0
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
12
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
13 rsync -a $ped input.ped
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
14 rsync -a $map input.map
8
6bf69b40365c Uploaded
dereeper
parents: 4
diff changeset
15 if [ -f $groups ]
6bf69b40365c Uploaded
dereeper
parents: 4
diff changeset
16 then
6bf69b40365c Uploaded
dereeper
parents: 4
diff changeset
17 cp -rf $groups input.individual_info.txt
6bf69b40365c Uploaded
dereeper
parents: 4
diff changeset
18 fi
0
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
19
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
20 perl $tool_path/MDSbasedOnIBSmatrix.pl --in input --out $fileout_label
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
21
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
22 rm -f input.ped input.map
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
23
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
24 cp $fileout_label.ibs_matrix.txt $fileout_matrix
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
25 cp $fileout_label.mds_plot.txt $fileout_plot
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
26 cp input.plink.log $fileout_log
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
27
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
28
3e19d0dfcf3e Uploaded
dereeper
parents:
diff changeset
29 rm -f $fileout_label.ibs_matrix.txt $fileout_label.mds_plot.txt input.plink.log