Mercurial > repos > fernando > protein_funcional_analysis_similarities
annotate interpro/paso2.sh @ 0:c342ebb50f0b draft default tip
Uploaded
author | fernando |
---|---|
date | Thu, 22 May 2014 05:09:07 -0400 |
parents | |
children |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
2 # -*- ENCODING: UTF-8 -*- | |
3 # fichero de entrada es salida.out | |
4 input=$1 | |
5 output=$2 | |
6 working_dir=$PWD | |
7 sift_output="$working_dir/sift_output.txt" | |
8 | |
9 grep sp\| "$input" |head -n$3 |awk 'BEGIN {FS="|"};{print $2}' | awk 'BEGIN {FS="."};{print $1".fasta"}' >"$sift_output" | |
10 while read line | |
11 do | |
12 echo "wget http://www.uniprot.org/uniprot/$line" | sh | |
13 cat $line >>"$output" | |
14 rm "$line" | |
15 done < "$sift_output" |