[Bio] / FigKernelScripts / get_translations.pl Repository:
ViewVC logotype

View of /FigKernelScripts/get_translations.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Mon Dec 5 18:56:37 2005 UTC (14 years, 7 months ago) by olson
Branch: MAIN
CVS Tags: caBIG-05Apr06-00, caBIG-13Feb06-00
Changes since 1.1: +17 -0 lines
Add license words.

#
# Copyright (c) 2003-2006 University of Chicago and Fellowship
# for Interpretations of Genomes. All Rights Reserved.
#
# This file is part of the SEED Toolkit.
# 
# The SEED Toolkit is free software. You can redistribute
# it and/or modify it under the terms of the SEED Toolkit
# Public License. 
#
# You should have received a copy of the SEED Toolkit Public License
# along with this program; if not write to the University of Chicago
# at info@ci.uchicago.edu or the Fellowship for Interpretation of
# Genomes at veronika@thefig.info or download a copy from
# http://www.theseed.org/LICENSE.TXT.
#

use FIG;

my $fig = new FIG;

$usage = "get_translations Id1 Id2 ...  > fasta.of.translations";

(@ARGV > 0) || die "usage: $usage";

foreach $id (@ARGV)
{
    next if ($seen{$id});
    $seen{$id} = 1;
    
    if ($seq = $fig->get_translation($id))
    {
	print ">$id\n$seq\n";
    }
    else
    {
	print STDERR "Could not get translation for $id\n";
    }
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3