NAME
Bio::Assembly::Scaffold - Perl module to hold and manipulate sequence assembly data.
SYNOPSIS # # Module loading use Bio::Assembly::IO;
# Assembly loading methodsmy $aio = Bio::Assembly::IO->new(-file=>"test.ace.1", -format=>'phrap');my $assembly = $aio->next_assembly;foreach my $contig ($assembly->all_contigs) {# do something... (see Bio::Assembly::Contig)}
DESCRIPTION
Bio::Assembly::Scaffold was developed to store and manipulate data from sequence assembly programs like Phrap. It implements the ScaffoldI interface and intends to be generic enough to be used by Bio::Assembly::IO drivers written to programs other than Phrap.
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 the Bioperl mailing lists Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
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:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Robson Francisco de Souza
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new ()
Title : newUsage : $scaffold = new ( -id => "assembly 1",-source => 'program_name',-contigs => \@contigs,-singlets => \@singlets );Function: creates a new scaffold objectReturns : Bio::Assembly::ScaffoldArgs : -id : [string] scaffold name-source : [string] sequence assembly program-contigs : reference to array of Bio::Assembly::Contig objects-singlets : reference to array of Bio::Assembly::Singlet objects
Accessing general assembly data
id
Title : idUsage : $assembly->id()Function: Get/Set assembly IDReturns : string or undefArgs : string
annotation
Title : annotationUsage : $assembly->annotation()Function: Get/Set assembly annotation objectReturns : Bio::Annotation::CollectionArgs : none
get_nof_contigs
Title : get_nof_contigsUsage : $assembly->get_nof_contigs()Function: Get the number of contigs included in the scaffoldReturns : integerArgs : none
get_nof_contig_seqs
Title : get_nof_contig_seqsUsage : $assembly->get_nof_contig_seqs()Function: Get the number of sequences included in contigs of thescaffold (no consensus sequences or singlets)Returns : integerArgs : none
get_nof_singlets (get_nof_singlet_seqs)
Title : nof_singletsUsage : $assembly->nof_singlets()Function: Get the number of singlets included in the assemblyReturns : integerArgs : none
get_all_seq_ids
Title : get_all_seq_idsUsage : $assembly->get_all_seq_ids()Function: Get the ID of all sequences making up the scaffold(sequences from contigs and singlets, not consensus).Returns : array of stringsArgs : none
get_nof_seqs
Title : get_nof_seqsUsage : $assembly->get_nof_seqs()Function: Get total number of sequences making up the scaffold(sequences from contigs and singlets, not consensus).Returns : integerArgs : none
get_contig_seq_ids
Title : get_contig_seq_idsUsage : $assembly->get_contig_seq_ids()Function: Get the ID of all sequences in contigsReturns : array of stringsArgs : none
get_contig_ids
Title : get_contig_idsUsage : $assembly->get_contig_ids()Function: Access list of contig IDs from assemblyReturns : an array, if there are any contigs in theassembly. An empty array otherwiseArgs : none
get_singlet_ids (get_singlet_seq_ids)
Title : get_singlet_idsUsage : $assembly->get_singlet_ids()Function: Access list of singlet IDs from assemblyReturns : array of strings if there are any singletsotherwise an empty arrayArgs : none
get_seq_by_id
Title : get_seq_by_idUsage : $assembly->get_seq_by_id($id)Function: Get a reference for an sequence making up the scaffold(from a contig or singlet, not consensus)Returns : a Bio::LocatableSeq objectundef if sequence $id is not found in the scaffoldArgs : [string] sequence identifier (id)
get_contig_by_id
Title : get_contig_by_idUsage : $assembly->get_contig_by_id($id)Function: Get a reference for a contigReturns : a Bio::Assembly::Contig object or undefArgs : [string] contig unique identifier (ID)
get_singlet_by_id
Title : get_singlet_by_idUsage : $assembly->get_singlet_by_id()Function: Get a reference for a singletReturns : Bio::Assembly::Singlet object or undefArgs : [string] a singlet ID
Modifier methods
add_contig
Title : add_contigUsage : $assembly->add_contig($contig)Function: Add a contig to the assemblyReturns : 1 on successArgs : a Bio::Assembly::Contig objectorder (optional)
add_singlet
Title : add_singletUsage : $assembly->add_singlet($seq)Function: Add a singlet to the assemblyReturns : 1 on successArgs : a Bio::Assembly::Singlet objectorder (optional)
update_seq_list
Title : update_seq_listUsage : $assembly->update_seq_list()Function:Synchronizes the assembly registry for sequences incontigs and contig actual aligned sequences content. Youprobably want to run this after you remove/add asequence from/to a contig in the assembly.Returns : 1 for successArgs : none
remove_contigs
Title : remove_contigsUsage : $assembly->remove_contigs(1..4)Function: Remove contig from assembly objectReturns : an array of removed Bio::Assembly::ContigobjectsArgs : an array of contig IDsSee function get_contig_ids() above
remove_singlets
Title : remove_singletsUsage : $assembly->remove_singlets(@singlet_ids)Function: Remove singlet from assembly objectReturns : the Bio::Assembly::Singlet objects removedArgs : a list of singlet IDsSee function get_singlet_ids() above
remove_features_collection
Title : remove_features_collectionUsage : $assembly->remove_features_collection()Function: Removes the collection of features associated to everycontig and singlet of the scaffold. This can be usefulto save some memory (when contig and singlet features arenot needed).Returns : noneArgument : none
Contig and singlet selection methods
select_contigs
Title : select_contigsUsage : $assembly->select_contigs(@list)Function: Select an array of contigs from the assemblyReturns : an array of Bio::Assembly::Contig objectsArgs : an array of contig idsSee function get_contig_ids() above
select_singlets
Title : select_singletsUsage : $assembly->select_singlets(@list)Function: Selects an array of singlets from the assemblyReturns : an array of Bio::Assembly::Singlet objectsArgs : an array of singlet idsSee function get_singlet_ids() above
all_contigs
Title : all_contigsUsage : my @contigs = $assembly->all_contigsFunction:Returns a list of all contigs in this assembly. Contigsare both clusters and alignments of one or more reads,with an associated consensus sequence.Returns : array of Bio::Assembly::Contig (in lexical id order)Args : none
all_singlets
Title : all_singletsUsage : my @singlets = $assembly->all_singletsFunction:Returns a list of all singlets in this assembly.Singlets are isolated reads, without non-vectormatches to any other read in the assembly.Returns : array of Bio::Assembly::Singlet objects (in lexical order by id)Args : none