Changes between Version 58 and Version 59 of SopConvertLifeLinesGenoData


Ignore:
Timestamp:
2013-02-08T08:22:15+01:00 (12 years ago)
Author:
Morris Swertz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SopConvertLifeLinesGenoData

    v58 v59  
    1741742. Find compiled jars at http://www.molgenis.org/svn/standalone_tools/jars/
    1751752. Read manuals for use: http://www.molgenis.org/svn/standalone_tools/manuals/
     176
     177= Additional scripts ==
     178
     179Define the source folders (where data has been converted) and final destination (folder where data is served). Sometimes the name are different.
     180
     181For example
     182
     183{{{
     184sources=("lifelines_OV0xy" "lifelines_OV0xy")
     185targets=("lifelines_OV0ab" "lifelines_OV0cd")
     186}}}
     187
     188Script to check if all folders are there
     189
     190{{{
     191total=${#sources[*]}
     192for (( i=0; i<=$(( $total -1 )); i++ )) do
     193if [ -d /target/gpfs2/lifelines-genome/home/${targets[i]}/ ] && [ -d /target/gpfs2/lifelines_rp/releases/LL3/${sources[i]}/ ]; then
     194echo ${targets[i]}
     195else
     196echo "error: "${sources[i]}
     197fi
     198}}}
     199
     200Batch copy and setup of the data
     201
     202{{{
     203
     204total=${#sources[*]}
     205for (( i=0; i<=$(( $total -1 )); i++ )) do
     206if [ -d /target/gpfs2/lifelines-genome/home/${targets[i]}/ ] && [ -d /target/gpfs2/lifelines_rp/releases/LL3/${sources[i]}/ ]; then
     207echo ${targets[i]}
     208
     209rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.bim
     210rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.ped
     211rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.map
     212rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.bed
     213rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.dose
     214rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.log
     215rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*.fam
     216rm /target/gpfs2/lifelines-genome/home/${targets[i]}/*_imputation*
     217
     218rsync -av --progress /target/gpfs2/lifelines_rp/releases/LL3/${sources[i]}/ \
     219/target/gpfs2/lifelines-genome/home/${targets[i]}/
     220
     221rm /target/gpfs2/lifelines-genome/home/${targets[i]}/temp*
     222chown -R $user /target/gpfs2/lifelines-genome/home/${targets[i]}/*
     223chmod -R a-rw /target/gpfs2/lifelines-genome/home/${targets[i]}/*
     224chmod -R u+r /target/gpfs2/lifelines-genome/home/${targets[i]}/*
     225
     226else
     227echo "error: "${sources[i]}
     228fi
     229done
     230}}}