.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Bio::Tools::Run::Alignment::Gmap 3pm" .TH Bio::Tools::Run::Alignment::Gmap 3pm 2024-03-12 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Bio::Tools::Run::Alignment::Gmap \- Wrapper for running gmap. .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& use Bio::Tools::Run::Alignment::Gmap; \& use Bio::SeqIO; \& \& my $sio = Bio::SeqIO\->new(\-file=>$filename ,\-format=>\*(Aqfasta\*(Aq); \& my @seq; \& while(my $seq = $sio\->next_seq()){ \& push @seq,$seq; \& } \& my $mapper =Bio::Tools::Run::Gmap\->new(); \& my $result = $mapper\->run(\e@seq); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Bioperl-run wrapper around gmap. See for information about gmap. .PP It requires a reference to an array of bioperl SeqI objects and returns a reference to a filehandle from which the gmap output can be read. .PP One can explicitly set the name of the genome database (defaults to NHGD_R36) using the '\fBgenome_db()\fR' method. One can also explicitly set the flags that are passed to gmap (defaults to '\-f 9 \-5 \-e') using the \&'\fBflags()\fR' method. .PP The name of the gmap executable can be overridden using the \&\fBprogram_name()\fR method and the directory in which to find that executable can be overridden using the \fBprogram_dir()\fR method. .SH FEEDBACK .IX Header "FEEDBACK" .SS "Mailing Lists" .IX Subsection "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 list. Your participation is much appreciated. .PP .Vb 2 \& bioperl\-l@bioperl.org \- General discussion \& http://bioperl.org/wiki/Mailing_lists \- About the mailing lists .Ve .SS "Reporting Bugs" .IX Subsection "Reporting Bugs" Report 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: .PP .Vb 1 \& http://redmine.open\-bio.org/projects/bioperl/ .Ve .SH "AUTHOR \- George Hartzell" .IX Header "AUTHOR - George Hartzell" Email hartzell@alerce.com .PP Describe contact details here .SH CONTRIBUTORS .IX Header "CONTRIBUTORS" Additional contributors names and emails here .SH APPENDIX .IX Header "APPENDIX" The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ .SS new .IX Subsection "new" .Vb 5 \& Title : new \& Usage : my $obj = new Bio::Tools::Run::Alignment::Gmap(); \& Function: Builds a new Bio::Tools::Run::Alignment::Gmap object \& Returns : an instance of Bio::Tools::Run::Alignment::Gmap \& Args : .Ve .SS version .IX Subsection "version" .Vb 7 \& Title : version \& Usage : print "gmap version: " . $mapper\->version() . "\en"; \& Function: retrieves and returns the version of the gmap package. \& Example : \& Returns : scalar string containing the version number. Probably looks \& like YYYY\-MM\-DD. \& Args : none. .Ve .SS program_name .IX Subsection "program_name" .Vb 7 \& Title : program_name \& Usage : $mapper\->program_name(\*(Aqgmap\-dev\*(Aq); \& my $pname = $mapper\->program_name(); \& Function: sets/gets the name of the program to run. \& Returns : string representing the name of the executable. \& Args : [optional] string representing the name of the executable \& to set. .Ve .SS program_dir .IX Subsection "program_dir" .Vb 7 \& Title : program_dir \& Usage : $mapper\->program_dir(\*(Aq/usr/local/sandbox/gmap/bin\*(Aq); \& my $pdir = $mapper\->program_dir(); \& Function: sets/gets the directory path in which \& to find the gmap executable. \& Returns : string representing the path to the directory. \& Args : [optional] string representing the directory path to set. .Ve .SS input_file .IX Subsection "input_file" .Vb 7 \& Title : input_file \& Usage : $mapper\->input_file(\*(Aq/tmp/moose.fasta\*(Aq); \& my $filename = $mapper\->input_file(); \& Function: sets/gets the name of a file containing sequences \& to be mapped. \& Returns : string containing the name of the query sequence. \& Args : [optional] string representing the directory path to set. .Ve .SS genome_db .IX Subsection "genome_db" .Vb 7 \& Title : genome_db \& Usage : $mapper\->genome_db(\*(AqNHGD_R36\*(Aq); \& my $genome_db = $mapper\->genome_db(); \& Function: sets/gets the name of the genome database, this will be \& passed to gmap using its \*(Aq\-d\*(Aq flag. \& Returns : name of the genome database. \& Args : [optional] string representing the genome db to set. .Ve .SS flags .IX Subsection "flags" .Vb 6 \& Title : flags \& Usage : $mapper\->flags(\*(Aq\-A \-e \-5\*(Aq); \& my $flags = $mapper\->flags(); \& Function: sets/gets the flags that will be passed to gmap. \& Returns : the current value of the flags that will be passed to gmap. \& Args : [optional] the flags to set. .Ve .SS run .IX Subsection "run" .Vb 6 \& Title : run \& Usage : $mapper\->run() \& Function: runs gmap \& Example : \& Returns : a file handle, opened for reading, for gmap\*(Aqs output. \& Args : An array of references query sequences (as Bio::Seq objects) .Ve .SS _build_fasta_input_file .IX Subsection "_build_fasta_input_file" .Vb 6 \& Title : _build_fasta_input_file \& Usage : my $seq_file = $self\->_build_fasta_input_file(@_); \& Function: \& Example : \& Returns : The name of the temporary file that contains the sequence. \& Args : A reference to an array of Bio::Seq objects. .Ve