🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bionet.software.acedb
Article #166

making a list of sequences in fasta_format

#166
From: Tony van Kampen
Date: Thu, 22 Aug 2002 08:06
83 lines
3145 bytes
ls,

I encountered the following problem:

I know how to export a single DNA_sequence in fasta format, but now 
would like to do it batch_wise.

The problem seems to be that ?DNA is a class of the "A"_type.......

I tried with aceperl this:

start of code:

#!/usr/bin/perl

use strict;
use warnings;
use Ace;


my $dblocation = "/home/aerts/docs/chickace/chickace";

my $db = Ace->connect(-path => "$dblocation") || die "Could not open
connection\n";

my @sequences = $db->fetch("Sequence");

foreach my $seq (@sequences) {
## Om een lijst te krijgen van alle tags die aan het DNA object hangen.
   my @more_tags = $seq->at('DNA')->tags;
   foreach (@more_tags) { print $_, "\n" }

## Om de eigenlijke FASTA file aan te maken.
#   if ($seq->DNA) { print ">", $seq, "\n", $seq->DNA, "\n" }

}


print Ace->error;
print $db->error;

end of code

The reply is:

   Can't call method "tags" on an undefined value at
        ./GetSequencesFromChickace.pl line 15, <GEN0> line 1.

I also tried tablemaker but then also the acces to a tag in ?DNA is 
denied: youn cannot select a tag in non-B-class: DNA



Is there a solution?

I'm using Linux Acedb4.9j

cheers,

Tony
-- 
Tony van Kampen
Bio-informatics specialist
Wageningen University Animal Sciences
The Animal Breeding and Genetics group

E-mail: Tony.VanKampen@alg.vf.wau.nl
	A.J.A.van.Kampen@freeler.nl
	
Telephone: 	+31 317 483049 (work)
		+31 6 12052457 (mobile)
		+31 026 4426058 (home)
		
Telefax: +31 317 483929

P.O. Box 338
6700 AH Wageningen
The Netherlands

Visiting address:
Zodiac, Marijkeweg 40
6709 PG Wageningen
The Netherlands
Technical Details
Message-ID: <3D63669C.6030409@freeler.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.net

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6d40,4d0d53818111b85,start
X-Google-Attributes: gidf6d40,public
X-Google-ArrivalTime: 2002-08-22 01:06:53 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.net
From: Tony van Kampen <A.J.A.van.Kampen@freeler.nl>
Newsgroups: bionet.software.acedb
Subject: making a list of sequences in fasta_format
Date: 22 Aug 2002 09:06:51 +0100
Organization: WURC
Lines: 84
Sender: mod-ace@hgmp.mrc.ac.uk
Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net>
Message-ID: <3D63669C.6030409@freeler.nl>
Reply-To: Tony.VanKampen@alg.vf.wau.nl
NNTP-Posting-Host: mercury.hgmp.mrc.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: niobium.hgmp.mrc.ac.uk 1030003612 9274 193.62.192.80 (22 Aug 2002 08:06:52 GMT)
X-Complaints-To: news@net.bio.net
NNTP-Posting-Date: Thu, 22 Aug 2002 08:06:52 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726
 Netscape6/6.1
X-Accept-Language: en-gb, en-us, nl
X-Razor-id: 1bc6b1c11fce416ade6a42e76a7adc1d8466f7a0
X-Auth: PGPMoose V1.1 PGP bionet.software.acedb
 iQCVAwUAPWSbmKCIqsWvyF5FAQG0EwQAgrlKf1cUbR3HiLXhYoWDRK125r+la6BH
 Gp8lO1VJOQEhPF4z1qYfzF/xZvcvddFoacVvWAZ5AQ37lckWdyp58OHqDnFIOg6G
 EZHnotDF+Dp/k8j82tTjGjSiyrZnMsU+QPhuA2LLqJpL7tlWrsEclcxFOlYJ3M4o
 ls0eOoKe0Ts=
 =W3sA