|
Last change
on this file since 18 was
18,
checked in by htune, 8 years ago
|
|
Victoria added the param2Rwave.sh to generate the design for the consecutive waves
|
-
Property svn:executable set to
*
|
|
File size:
512 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | if [ $# != 2 ] ; then |
|---|
| 4 | cat <<eod |
|---|
| 5 | Usage : param2Rwave.sh WAVEN RDATA_FILE |
|---|
| 6 | eod |
|---|
| 7 | exit |
|---|
| 8 | fi |
|---|
| 9 | |
|---|
| 10 | WAVEN=$1 |
|---|
| 11 | RDATA_FILE=$2 |
|---|
| 12 | |
|---|
| 13 | if [ ! -f $RDATA_FILE ] ; then echo fichier $RDATA_FILE inexistant ; exit ; fi |
|---|
| 14 | if [ ! $WAVEN -ge 2 ] ; then echo WAVEN should be '>=' 2 ; exit ; fi |
|---|
| 15 | # Specify the number of wave that we are currently in. |
|---|
| 16 | sed -i '' '31s/.*/WAVEN='$WAVEN'/' htune_convertDesign.R |
|---|
| 17 | |
|---|
| 18 | Rscript htune_convertDesign.R |
|---|
| 19 | |
|---|
| 20 | ls -lrt |
|---|
| 21 | |
|---|
| 22 | mkdir WAVE$WAVEN |
|---|
| 23 | |
|---|
| 24 | mv Wave$WAVEN.RData WAVE$WAVEN/ |
|---|
| 25 | |
|---|
| 26 | mv Par1D_Wave$WAVEN.asc WAVE$WAVEN/ |
|---|
Note: See
TracBrowser
for help on using the repository browser.