|
|||
|
% lcg-infosites --vo gilda se |
|
% lfc-mkdir -p /grid/<vo>/<user_name> |
% lcg-cr -d <SE_name> -l lfn:/grid/<vo>/<user_name>/<any_string_you_want> --vo gilda <src_file> |
% lcg-cr -d <SE_name> -l lfn:/grid/<vo>/<user_name>/<file_name> --vo <vo> file:/home/<username>/<file_name> |
% lcg-lg -vo <vo> lfn:/grid/<vo>/<user_name>/<your_file_name> |
[ Type="Job"; JobType="Normal"; VirtualOrganisation="gilda"; Executable="/bin/sh"; Arguments="alignment.sh alignment.exe proteins1.fasta proteins2.fasta blosum62.txt my_alignment"; StdOutput="alignment.out"; StdError="alignment.err"; InputSandbox={"alignment.sh"}; OutputSandbox={"alignment.err", "alignment.out"}; RetryCount=0; Rank=other.GlueCEStateFreeCPUs; ] |
#!/bin/sh ##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@## ## Author : Vered Kunik - kunikver@post.tau.ac.il ## Description: ## this program executes a local alignment algorithm on the allocated WN. ## ## input parameters: ## $1 = name of exe file ## $2 = name of first alignment file (in fasta format) ## $3 = name of second alignment file (in fasta format) ## $4 = name of substitution matrix (blosum62) ## $5 = name of output file to which the alignment will be flushed ##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@## # read the input parameter localAlignExe=$1; proteins1=$2; proteins2=$3; blosum62=$4; output_file=$5; # ensuring that the correct catalog service is used. export LCG_GFAL_INFOSYS="grid004.ct.infn.it:2170"; export LFC_HOST="lfc-gilda.ct.infn.it"; export LCG_CATALOG_TYPE="lfc"; # creating an empty file on the WN. touch $output_file; # downloading the files from SE to the WN. lcg-cp --vo gilda lfn:/grid/gilda/kunikver/$proteins1 file:`pwd`/$proteins1; lcg-cp --vo gilda lfn:/grid/gilda/kunikver/$proteins2 file:`pwd`/$proteins2; lcg-cp --vo gilda lfn:/grid/gilda/kunikver/$blosum62 file:`pwd`/$blosum62; lcg-cp --vo gilda lfn:/grid/gilda/kunikver/$localAlignExe file:`pwd`/$localAlignExe; chmod 755 $localAlignExe; # running the executable. ./$localAlignExe -mode ss2ss -seq $proteins1 -seq2 $proteins2 -matrix $blosum62 -A 11 -B 1 -ethresh 1.0e3 -dbsize 1 -align >> $output_file; # uploading the output to the SE. lcg-cr --vo gilda -d gilda-se-01.pd.infn.it -l lfn:/grid/gilda/kunikver/$output_file file:`pwd`/$output_file; if [ $? -eq 0 ] then echo "the output file was succesfully copied to the SE" else echo "unable to copy output file to the SE" fi |
% glite-job-submit -o <username.id> alignment.jdl |
% glite-job-status -i <username.id> |
% lfc-ls /grid/gilda/<username> |
% glite-job-output --dir directory_name <URI> |
% lcg-cp --vo gilda lfn://grid/gilda/<username>/<file_name> file:/home/<username>/<file_name> |