#!/bin/sh


# given a set of accessions, create a file
# containing the corresponding genbank entries
#
#  $1 file containing LOCUS names or ACCESSION numbers
#  $2 file to contain all of the GenBank entries

JOBID=$$
INFILE=$1
OUTFILE=$2


for name in `cat $INFILE` 
   do
   echo  $file
   perl $BIRCH/script/generic_ncbi_data_fetcher.pl -q "$name[accn]" -o $JOBID.tmp -d nucleotide -r gb -m 1
   cat $JOBID.tmp >> $OUTFILE
   rm -f $JOBID.tmp
done
