![]() |
![]()
| ![]() |
![]()
NAMEBio::FeatureIO::ptt - read/write features in PTT format SYNOPSIS# read features my $fin = Bio::FeatureIO->new(-file=>'genes.ptt', -format=>'ptt'); my @cds; while (my $f = $fin->next_feature) { push @cds, $f if $f->strand > 0; } # write features (NOT IMPLEMENTED) my $fout = Bio::FeatureIO->new(-fh=>\*STDOUT, -format=>'ptt'); for my $f (@cds) { $fout->write_feature($f); } DESCRIPTIONThe PTT file format is a table of protein features. It is used mainly by NCBI who produce PTT files for all their published genomes found in <ftp://ftp.ncbi.nih.gov/genomes/>. It has the following format:
FEEDBACKMailing ListsUser feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists SupportPlease 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 BugsReport bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web: http://bugzilla.open-bio.org/ AUTHOR - Torsten SeemannEmail torsten.seemann AT infotech.monash.edu.au CONTRIBUTORSBased on bed.pm and gff.pm by Allen Day. APPENDIXThe rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ _initializeTitle : _initialize Function: Reading? parses the header of the input Writing? next_featureTitle : next_feature Usage : $io->next_feature() Function: read the next feature from the PTT file Example : Args : Returns : Bio::SeqFeatureI object write_feature (NOT IMPLEMENTED)Title : write_feature Usage : $io->write_feature($feature) Function: write a Bio::SeqFeatureI object in PTT format Example : Args : Bio::SeqFeatureI object Returns : descriptionTitle : description Usage : $obj->description($newval) Function: set/get the PTT file description for/from line one Example : Returns : value of description (a scalar) Args : on set, new value (a scalar or undef, optional) protein_countTitle : protein_count Usage : $obj->protein_count($newval) Function: set/get the PTT protein count for/from line two Example : Args : on set, new value (a scalar or undef, optional) Returns : value of protein_count (a scalar)
|