Bio::SeqIO::chaos man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Bio::SeqIO::chaos(3)  User Contributed Perl Documentation Bio::SeqIO::chaos(3)

NAME
       Bio::SeqIO::chaos - chaos sequence input/output stream

SYNOPSIS
	   #In general you will not want to use this module directly;
	   #use the chaosxml format via SeqIO

	   $outstream = Bio::SeqIO->new(-file => $filename,
					-format => 'chaosxml');

	   while ( my $seq = $instream->next_seq() ) {
	      $outstream->write_seq($seq);
	   }

DESCRIPTION
       This is the guts of Bio::SeqIO::chaosxml - please refer to the
       documentation for this module

       CURRENTLY WRITE ONLY

       ChaosXML is an XML mapping of the chado relational database; for more
       information, see http://www.fruitfly.org/chaos-xml

       chaos can be represented in various syntaxes - XML, S-Expressions or
       indented text. You should see the relevant SeqIO file. You will
       probably want to use Bio::SeqIO::chaosxml, which is a wrapper to this
       module.

   USING STAG OBJECTS
       non-standard bioperl stuff you dont necessarily need to know follows

       This module (in write mode) is an event producer - it generates XML
       events via the Data::Stag module. If you only care about the final end-
       product xml, use Bio::SeqIO::chaosxml

       You can treat the resulting chaos-xml stream as stag XML objects;

	   $outstream = Bio::SeqIO->new(-file => $filename, -format => 'chaos');

	   while ( my $seq = $instream->next_seq() ) {
	      $outstream->write_seq($seq);
	   }
	   my $chaos = $outstream->handler->stag;
	   # stag provides get/set methods for xml elements
	   # (these are chaos objects, not bioperl objects)
	   my @features = $chaos->get_feature;
	   my @feature_relationships = $chaos->get_feature_relationships;
	   # stag objects can be queried with functional-programming
	   # style queries
	   my @features_in_range =
	     $chaos->where('feature',
			   sub {
				my $featureloc = shift->get_featureloc;
				$featureloc->strand == 1 &&
				$featureloc->nbeg > 10000 &&
				$featureloc->nend < 20000;
			   });
	   foreach my $feature (@features_in_range) {
	     my $featureloc = $feature->get_featureloc;
	     printf "%s [%d->%d on %s]\n",
	       $feature->sget_name,
	       $featureloc->sget_nbeg,
	       $featureloc->sget_end,
	       $featureloc->sget_srcfeature_id;
	   }

MODULES REQUIRED
       Data::Stag

       Downloadable from CPAN; see also http://stag.sourceforge.net

FEEDBACK
   Mailing Lists
       User feedback is an integral part of the evolution of this and other
       Bioperl modules. Send your comments and suggestions preferably to one
       of the Bioperl mailing lists.  Your participation is much appreciated.

	 bioperl-l@bioperl.org			- General discussion
	 http://bioperl.org/wiki/Mailing_lists	- About the mailing lists

   Support
       Please direct usage questions or support issues to the mailing list:

       bioperl-l@bioperl.org

       rather than to the module maintainer directly. Many experienced and
       reponsive experts will be able look at the problem and quickly address
       it. Please include a thorough description of the problem with code and
       data examples if at all possible.

   Reporting Bugs
       Report bugs to the Bioperl bug tracking system to help us keep track
       the bugs and their resolution.  Bug reports can be submitted via the
       web:

	 http://bugzilla.bioperl.org

AUTHOR - Chris Mungall
       Email cjm@fruitfly.org

APPENDIX
       The rest of the documentation details each of the object methods.
       Internal methods are usually preceded with a _

   context_namespace
	Title	: context_namespace
	Usage	: $obj->context_namespace($newval)
	Function:
	Example :
	Returns : value of context_namespace (a scalar)
	Args	: on set, new value (a scalar or undef, optional)

       IDs will be preceeded with the context namespace

   next_seq
	Title	: next_seq
	Usage	: $seq = $stream->next_seq()
	Function: returns the next sequence in the stream
	Returns : Bio::Seq object
	Args	:

   write_seq
	Title	: write_seq
	Usage	: $stream->write_seq($seq)
	Function: writes the $seq object (must be seq) to the stream
	Returns : 1 for success and 0 for error
	Args	: Bio::Seq

perl v5.14.1			  2011-07-22		  Bio::SeqIO::chaos(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net