NAME
Bio::Tools::Run::Vista - Wrapper for Vista
SYNOPSIS
use Bio::Tools::Run::Vista;use Bio::Tools::Run::Alignment::Lagan;use Bio::AlignIO;my $sio = Bio::SeqIO->new(-file=>$ARGV[0],-format=>'genbank');my @seq;my $reference = $sio->next_seq;push @seq, $reference;while(my $seq = $sio->next_seq){push @seq,$seq;}my @features = grep{$_->primary_tag eq 'CDS'} $reference->get_SeqFeatures;my $lagan = Bio::Tools::Run::Alignment::Lagan->new;my $aln = $lagan->mlagan(\@seq,'(fugu (mouse human))');my $vis = Bio::Tools::Run::Vista->new('outfile'=>"outfile.pdf",'title' => "My Vista Plot",'annotation'=>\@features,'annotation_format'=>'GFF','min_perc_id'=>75,'min_length'=>100,'plotmin' => 50,'tickdist' => 2000,'window'=>40,'numwindows'=>4,'start'=>50,'end'=>1500,'tickdist'=>100,'bases'=>1000,'java_param'=>"-Xmx128m",'num_pages'=>1,'color'=> {'EXON'=>'100 0 0','CNS'=>'0 0 100'},'quiet'=>1);my $referenceid= 'human';$vis->run($aln,$referenceid);#alternative one can choose pairwise alignments to plot#where the second id in each pair is the reference sequence$vis->run($aln,([mouse,human],[fugu,human],[mouse,fugu]));
DESCRIPTION
Pls see Vista documentation for plotfile options
Wrapper for Vista :
C. Mayor, M. Brudno, J. R. Schwartz, A. Poliakov, E. M. Rubin, K. A. Frazer, L. S. Pachter, I. Dubchak. VISTA: Visualizing global DNA sequence alignments of arbitrary length. Bioinformatics, 2000 Nov;16(11):1046-1047. Get it here: http://www-gsd.lbl.gov/vista/VISTAdownload2.html
On the command line, it is assumed that this can be executed:
java Vista plotfile
Some of the code was adapted from MLAGAN toolkit
M. Brudno, C.B. Do, G. Cooper, M.F. Kim, E. Davydov, NISC Sequencing Consortium, E.D. Green, A. Sidow and S. Batzoglou LAGAN and Multi-LAGAN: Efficient Tools for Large-Scale Multiple Alignment of Genomic DNA, Genome Research, in press
get lagan here:
http://lagan.stanford.edu/
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.
[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:
http://redmine.open-bio.org/projects/bioperl/
AUTHOR
Shawn Hoon Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : my $vis = Bio::Tools::Run::Vista->new('outfile'=>$out,'title' => "My Vista Plot",'annotation'=>\@features,'annotation_format'=>'GFF','min_perc_id'=>75,'min_length'=>100,'plotmin' => 50,'tickdist' => 2000,'window'=>40,'numwindows'=>4,'start'=>50,'end'=>1500,'tickdist'=>100,'bases'=>1000,'color'=> {'EXON'=>'100 0 0','CNS'=>'0 0 100'},'quiet'=>1);Function: Construtor for Vista wrapperArgs : outfile - location of the pdf generatedannotation - either a file or and array ref of Bio::SeqFeatureIindicating the exonsregmin -region min
java
Title : javaUsage : $obj->java('/usr/opt/java130/bin/java');Function: Get/set method for the location of java VMArgs : File path (optional)
run
Title : runUsage : my @genes = $self->run($seq)Function: runs VistaReturns : A boolean 1 if no errorsArgs : Argument 1: Bio::Align::Align requiredArgument 2: a string or number, which is the sequence id of thereference sequence or the rank of the sequencein the alignment
_setinput
Title : _setinputUsage : Internal function, not to be called directlyFunction: writes input sequence to file and return the file nameExample :Returns : stringArgs :
outfile
Title : outfileUsage : $obj->outfileFunction : Get/Set method outfileArgs :
min_perc_id
Title : min_perc_idUsage : $obj->min_perc_idFunction : Get/Set method min_perc_idArgs :
quiet
Title : quietUsage : $obj->quietFunction : Get/Set method quietArgs :
verbose
Title : verboseUsage : $obj->verboseFunction : Get/Set method verboseArgs :
annotation_format
Title : annotation_formatUsage : $obj->annotation_formatFunction : Get/Set method annotation_formatArgs :
region_file
Title : region_fileUsage : $obj->region_fileFunction : Get/Set method region_fileArgs :
score_file
Title : score_fileUsage : $obj->score_fileFunction : Get/Set method score_fileArgs :
alignment_file
Title : alignment_fileUsage : $obj->alignment_fileFunction : Get/Set method alignment_fileArgs :
contigs_file
Title : contigs_fileUsage : $obj->contigs_fileFunction : Get/Set method contigs_fileArgs :
diffs
Title : diffsUsage : $obj->diffsFunction : Get/Set method diffsArgs :
plotfile
Title : plotfileUsage : $obj->plotfileFunction : Get/Set method plotfileArgs :
min_length
Title : min_lengthUsage : $obj->min_lengthFunction : Get/Set method min_lengthArgs :
plotmin
Title : plotminUsage : $obj->plotminFunction : Get/Set method plotminArgs :
annotation
Title : annotationUsage : $obj->annotationFunction : Get/Set method annotationArgs :
bases
Title : basesUsage : $obj->basesFunction : Get/Set method basesArgs :
tickdist
Title : tickdistUsage : $obj->tickdistFunction : Get/Set method tickdistArgs :
resolution
Title : resolutionUsage : $obj->resolutionFunction : Get/Set method resolutionArgs :
title
Title : titleUsage : $obj->titleFunction : Get/Set method titleArgs :
window
Title : windowUsage : $obj->windowFunction : Get/Set method windowArgs :
numwindows
Title : numwindowsUsage : $obj->numwindowsFunction : Get/Set method numwindowsArgs :
start
Title : startUsage : $obj->startFunction : Get/Set method startArgs :
end
Title : endUsage : $obj->endFunction : Get/Set method endArgs :
num_plot_lines
Title : num_plot_linesUsage : $obj->num_plot_linesFunction : Get/Set method num_plot_linesArgs :
legend
Title : legendUsage : $obj->legendFunction : Get/Set method legendArgs :
filename
Title : filenameUsage : $obj->filenameFunction : Get/Set method filenameArgs :
axis_label
Title : axis_labelUsage : $obj->axis_labelFunction : Get/Set method axis_labelArgs :
ticks_file
Title : ticks_fileUsage : $obj->ticks_fileFunction : Get/Set method ticks_fileArgs :
color
Title : colorUsage : $obj->colorFunction : Get/Set method colorArgs :
use_order
Title : use_orderUsage : $obj->use_orderFunction : Get/Set method use_orderArgs :
gaps
Title : gapsUsage : $obj->gapsFunction : Get/Set method gapsArgs :
snps_file
Title : snps_fileUsage : $obj->snps_fileFunction : Get/Set method snps_fileArgs :
repeats_file
Title : repeats_fileUsage : $obj->repeats_fileFunction : Get/Set method repeats_fileArgs :
filter_repeats
Title : filter_repeatsUsage : $obj->filter_repeatsFunction : Get/Set method filter_repeatsArgs :