Skip to content
Snippets Groups Projects
Commit 5e14bb53 authored by tjc's avatar tjc
Browse files

fixes

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@2124 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 4486f9b2
No related branches found
No related tags found
No related merge requests found
......@@ -160,12 +160,12 @@ sub process_fasta
@protein_ids = sort keys %hash;
my $protein_db = "swall";
my $protein_db = "uniprot";
# look for each of the IDs from the FASTA output in each of the DBs
for my $id (@protein_ids) {
my $fetch = "getz -sf fasta -f seq [swall-id:$id]";
my $fetch = "getz -sf fasta -f seq [uniprot-acc:$id]";
my $temp_seq = "";
......@@ -230,8 +230,15 @@ while (defined ($file = <>)) {
}
}'
perl -w -e "$PERL_PROG" "$@"
echo "Arguments: $@"
test=`wc -l "$@" | awk '{print $1}'`
if [ $test != 1 ]
then
perl -w -e "$PERL_PROG" "$@"
else
perl -w -e "$PERL_PROG_FASTA" "$@"
fi
#if [ $# != 1 ]
#then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment