source: src/param2Rwave.sh @ 18

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
3if [ $# != 2 ] ; then
4cat <<eod
5Usage : param2Rwave.sh WAVEN RDATA_FILE
6eod
7exit
8fi
9
10WAVEN=$1
11RDATA_FILE=$2
12
13if [ ! -f $RDATA_FILE ] ; then echo fichier $RDATA_FILE inexistant ; exit ; fi
14if [ ! $WAVEN -ge 2 ] ; then echo WAVEN should be '>=' 2 ; exit ; fi
15# Specify the number of wave that we are currently in.
16sed -i '' '31s/.*/WAVEN='$WAVEN'/' htune_convertDesign.R
17
18Rscript htune_convertDesign.R
19
20ls -lrt
21
22mkdir WAVE$WAVEN 
23
24mv Wave$WAVEN.RData WAVE$WAVEN/
25
26mv Par1D_Wave$WAVEN.asc WAVE$WAVEN/
Note: See TracBrowser for help on using the repository browser.