/usr/share/perl5/Bio/Tools/Lucy.pm is in libbio-perl-perl 1.6.924-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 | #
# BioPerl module for Bio::Tools::Lucy
#
# Copyright Her Majesty the Queen of England
# written by Andrew Walsh (paeruginosa@hotmail.com) during employment with
# Agriculture and Agri-food Canada, Cereal Research Centre, Winnipeg, MB
#
# You may distribute this module under the same terms as perl itself
# POD documentation - main docs before the code
=head1 NAME
Bio::Tools::Lucy - Object for analyzing the output from Lucy,
a vector and quality trimming program from TIGR
=head1 SYNOPSIS
# Create the Lucy object from an existing Lucy output file
@params = ('seqfile' => 'lucy.seq', 'lucy_verbose' => 1);
$lucyObj = Bio::Tools::Lucy->new(@params);
# Get names of all sequences
$names = $lucyObj->get_sequence_names();
# Print seq and qual values for sequences >400 bp in order to run CAP3
foreach $name (@$names) {
next unless $lucyObj->length_clear($name) > 400;
print SEQ ">$name\n", $lucyObj->sequence($name), "\n";
print QUAL ">$name\n", $lucyObj->quality($name), "\n";
}
# Get an array of Bio::PrimarySeq objects
@seqObjs = $lucyObj->get_Seq_Objs();
=head1 DESCRIPTION
Bio::Tools::Lucy.pm provides methods for analyzing the sequence and
quality values generated by Lucy program from TIGR.
Lucy will identify vector, poly-A/T tails, and poor quality regions in
a sequence. (www.genomics.purdue.edu/gcg/other/lucy.pdf)
The input to Lucy can be the Phred sequence and quality files
generated from running Phred on a set of chromatograms.
Lucy can be obtained (free of charge to academic users) from
www.tigr.org/softlab
There are a few methods that will only be available if you make some
minor changes to the source for Lucy and then recompile. The changes
are in the 'lucy.c' file and there is a diff between the original and
the modified file in the Appendix
Please contact the author of this module if you have any problems
making these modifications.
You do not have to make these modifications to use this module.
=head2 Creating a Lucy object
@params = ('seqfile' => 'lucy.seq', 'adv_stderr' => 1,
'fwd_desig' => '_F', 'rev_desig' => '_R');
$lucyObj = Bio::Tools::Lucy->new(@params);
=head2 Using a Lucy object
You should get an array with the sequence names in order to use
accessor methods. Note: The Lucy binary program will fail unless
the sequence names provided as input are unique.
$names_ref = $lucyObj->get_sequence_names();
This code snippet will produce a Fasta format file with sequence
lengths and %GC in the description line.
foreach $name (@$names) {
print FILE ">$name\t",
$lucyObj->length_clear($name), "\t",
$lucyObj->per_GC($name), "\n",
$lucyObj->sequence($name), "\n";
}
Print seq and qual values for sequences >400 bp in order to assemble
them with CAP3 (or other assembler).
foreach $name (@$names) {
next unless $lucyObj->length_clear($name) > 400;
print SEQ ">$name\n", $lucyObj->sequence($name), "\n";
print QUAL ">$name\n", $lucyObj->quality($name), "\n";
}
Get all the sequences as Bio::PrimarySeq objects (eg., for use with
Bio::Tools::Run::StandaloneBlast to perform BLAST).
@seqObjs = $lucyObj->get_Seq_Objs();
Or use only those sequences that are full length and have a Poly-A
tail.
foreach $name (@$names) {
next unless ($lucyObj->full_length($name) and $lucy->polyA($name));
push @seqObjs, $lucyObj->get_Seq_Obj($name);
}
Get the names of those sequences that were rejected by Lucy.
$rejects_ref = $lucyObj->get_rejects();
Print the names of the rejects and 1 letter code for reason they
were rejected.
foreach $key (sort keys %$rejects_ref) {
print "$key: ", $rejects_ref->{$key};
}
There is a lot of other information available about the sequences
analyzed by Lucy (see APPENDIX). This module can be used with the
DBI module to store this sequence information in a database.
=head1 FEEDBACK
=head2 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
=head2 Support
Please direct usage questions or support issues to the mailing list:
I<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.
=head2 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
=head1 AUTHOR
Andrew G. Walsh paeruginosa@hotmail.com
=head1 APPENDIX
Methods available to Lucy objects are described below. Please note
that any method beginning with an underscore is considered internal
and should not be called directly.
=cut
package Bio::Tools::Lucy;
use vars qw($AUTOLOAD @ATTR %OK_FIELD);
use strict;
use Bio::PrimarySeq;
use base qw(Bio::Root::Root Bio::Root::IO);
@ATTR = qw(seqfile qualfile stderrfile infofile lucy_verbose fwd_desig rev_desig adv_stderr);
foreach my $attr (@ATTR) {
$OK_FIELD{$attr}++
}
sub AUTOLOAD {
my $self = shift;
my $attr = $AUTOLOAD;
$attr =~ s/.*:://;
$attr = lc $attr;
$self->throw("Unallowed parameter: $attr !") unless $OK_FIELD{$attr};
$self->{$attr} = shift if @_;
return $self->{$attr};
}
=head2 new
Title : new
Usage : $lucyObj = Bio::Tools::Lucy->new(seqfile => lucy.seq, rev_desig => '_R',
fwd_desig => '_F')
Function: creates a Lucy object from Lucy analysis files
Returns : reference to Bio::Tools::Lucy object
Args : seqfile Fasta sequence file generated by Lucy
qualfile Quality values file generated by Lucy
infofile Info file created when Lucy is run with -debug
'infofile' option
stderrfile Standard error captured from Lucy when Lucy is run
with -info option and STDERR is directed to stderrfile
(ie. lucy ... 2> stderrfile).
Info in this file will include sequences dropped for low
quality. If you've modified Lucy source (see adv_stderr below),
it will also include info on which sequences were dropped because
they were vector, too short, had no insert, and whether a poly-A
tail was found (if Lucy was run with -cdna option).
lucy_verbose verbosity level (0-1).
fwd_desig The string used to determine whether sequence is a
forward read.
The parser will assume that this match will occus at the
end of the sequence name string.
rev_desig As above, for reverse reads.
adv_stderr Can be set to a true value (1). Will only work if
you have modified
the Lucy source code as outlined in DESCRIPTION and capture
the standard error from Lucy.
If you don't provide filenames for qualfile, infofile or stderrfile,
the module will assume that .qual, .info, and .stderr are the file
extensions and search in the same directory as the .seq file for these
files.
For example, if you create a Lucy object with $lucyObj =
Bio::Tools::Lucy-E<gt>new(seqfile =E<gt>lucy.seq), the module will
find lucy.qual, lucy.info and lucy.stderr.
You can omit any or all of the quality, info or stderr files, but you
will not be able to use all of the object methods (see method
documentation below).
=cut
sub new {
my ($class,@args) = @_;
my $self = $class->SUPER::new(@args);
my ($attr, $value);
while (@args) {
$attr = shift @args;
$attr = lc $attr;
$value = shift @args;
$self->{$attr} = $value;
}
&_parse($self);
return $self;
}
=head2 _parse
Title : _parse
Usage : n/a (internal function)
Function: called by new() to parse Lucy output files
Returns : nothing
Args : none
=cut
sub _parse {
my $self = shift;
$self->{seqfile} =~ /^(\S+)\.\S+$/;
my $file = $1;
$self->warn("Opening $self->{seqfile} for parsing...\n") if $self->{lucy_verbose};
open my $SEQ, '<', $self->{seqfile} or $self->throw("Could not read sequence file '$self->{seqfile}': $!");
my ($name, $line);
my $seq = "";
my @lines = <$SEQ>;
while ($line = pop @lines) {
chomp $line;
if ($line =~ /^>(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/) {
$name = $1;
if ($self->{fwd_desig}) {
$self->{sequences}{$name}{direction} = "F" if $name =~ /^(\S+)($self->{fwd_desig})$/;
}
if ($self->{rev_desig}) {
$self->{sequences}{$name}{direction} = "R" if $name =~ /^(\S+)($self->{rev_desig})$/;
}
$self->{sequences}{$name}{min_clone_len} = $2; # this is used for TIGR Assembler, as are $3 and $4
$self->{sequences}{$name}{max_clone_len} = $3;
$self->{sequences}{$name}{med_clone_len} = $4;
$self->{sequences}{$name}{beg_clear} = $5;
$self->{sequences}{$name}{end_clear} = $6;
$self->{sequences}{$name}{length_raw} = $seq =~ tr/[AGCTN]//; # from what I've seen, these are the bases Phred calls. Please let me know if I'm wrong.
my $beg = $5-1; # substr function begins with index 0
$seq = $self->{sequences}{$name}{sequence} = substr ($seq, $beg, $6-$beg);
my $count = $self->{sequences}{$name}{length_clear} = $seq =~ tr/[AGCTN]//;
my $countGC = $seq =~ tr/[GC]//;
$self->{sequences}{$name}{per_GC} = $countGC/$count * 100;
$seq = "";
}
else {
$seq = $line.$seq;
}
}
# now parse quality values (check for presence of quality file first)
if ($self->{qualfile}) {
open my $QUAL, '<', $self->{qualfile} or $self->throw("Could not read quality file '$self->{qualfile}': $!");
@lines = <$QUAL>;
}
elsif (-e "$file.qual") {
$self->warn("You did not set qualfile, but I'm opening $file.qual\n") if $self->{lucy_verbose};
$self->qualfile("$file.qual");
open my $QUAL, '<', "$file.qual" or $self->throw("Could not read quality file '$file.qual': $!");
@lines = <$QUAL>;
}
else {
$self->warn("I did not find a quality file. You will not be able to use all of the accessor methods.\n") if $self->{lucy_verbose};
@lines = ();
}
my (@vals, @slice, $num, $tot, $vals);
my $qual = "";
while ($line = pop @lines) {
chomp $line;
if ($line =~ /^>(\S+)/) {
$name = $1;
@vals = split /\s/ , $qual;
@slice = @vals[$self->{sequences}{$name}{beg_clear} - 1 .. $self->{sequences}{$name}{end_clear} - 1];
$vals = join "\t", @slice;
$self->{sequences}{$name}{quality} = $vals;
$qual = "";
foreach $num (@slice) {
$tot += $num;
}
$num = @slice;
$self->{sequences}{$name}{avg_quality} = $tot/$num;
$tot = 0;
}
else {
$qual = $line.$qual;
}
}
# determine whether reads are full length
if ($self->{infofile}) {
open my $INFO, '<', $self->{infofile} or $self->throw("Could not read info file '$self->{infofile}': $!");
@lines = <$INFO>;
}
elsif (-e "$file.info") {
$self->warn("You did not set infofile, but I'm opening $file.info\n") if $self->{lucy_verbose};
$self->infofile("$file.info");
open my $INFO, '<', "$file.info" or $self->throw("Could not read info file '$file.info': $!");
@lines = <$INFO>;
}
else {
$self->warn("I did not find an info file. You will not be able to use all of the accessor methods.\n") if $self->{lucy_verbose};
@lines = ();
}
foreach (@lines) {
/^(\S+).+CLV\s+(\d+)\s+(\d+)$/;
if ($2>0 && $3>0) {
$self->{sequences}{$1}{full_length} = 1 if $self->{sequences}{$1}; # will show cleavage info for rejected sequences too
}
}
# parse rejects (and presence of poly-A if Lucy has been modified)
if ($self->{stderrfile}) {
open my $STDERR_LUCY, '<', $self->{stderrfile} or $self->throw("Could not read quality file '$self->{stderrfile}': $!");
@lines = <$STDERR_LUCY>;
}
elsif (-e "$file.stderr") {
$self->warn("You did not set stderrfile, but I'm opening $file.stderr\n") if $self->{lucy_verbose};
$self->stderrfile("$file.stderr");
open my $STDERR_LUCY, '<', "$file.stderr" or $self->throw("Could not read quality file '$file.stderr': $!");
@lines = <$STDERR_LUCY>;
}
else {
$self->warn("I did not find a standard error file. You will not be able to use all of the accessor methods.\n") if $self->{lucy_verbose};
@lines = ();
}
if ($self->{adv_stderr}) {
foreach (@lines) {
$self->{reject}{$1} = "Q" if /dropping\s+(\S+)/;
$self->{reject}{$1} = "V" if /Vector: (\S+)/;
$self->{reject}{$1} = "E" if /Empty: (\S+)/;
$self->{reject}{$1} = "S" if m{Short/ no insert: (\S+)};
$self->{sequences}{$1}{polyA} = 1 if /(\S+) has PolyA/;
if (/Dropped PolyA: (\S+)/) {
$self->{reject}{$1} = "P";
delete $self->{sequences}{$1};
}
}
}
else {
foreach (@lines) {
$self->{reject}{$1} = "R" if /dropping\s+(\S+)/;
}
}
}
=head2 get_Seq_Objs
Title : get_Seq_Objs
Usage : $lucyObj->get_Seq_Objs()
Function: returns an array of references to Bio::PrimarySeq objects
where -id = 'sequence name' and -seq = 'sequence'
Returns : array of Bio::PrimarySeq objects
Args : none
=cut
sub get_Seq_Objs {
my $self = shift;
my($seqobj, @seqobjs);
foreach my $key (sort keys %{$self->{sequences}}) {
$seqobj = Bio::PrimarySeq->new( -seq => "$self->{sequences}{$key}{sequence}",
-id => "$key");
push @seqobjs, $seqobj;
}
return \@seqobjs;
}
=head2 get_Seq_Obj
Title : get_Seq_Obj
Usage : $lucyObj->get_Seq_Obj($seqname)
Function: returns reference to a Bio::PrimarySeq object where -id = 'sequence name'
and -seq = 'sequence'
Returns : reference to Bio::PrimarySeq object
Args : name of a sequence
=cut
sub get_Seq_Obj {
my ($self, $key) = @_;
my $seqobj = Bio::PrimarySeq->new( -seq => "$self->{sequences}{$key}{sequence}",
-id => "$key");
return $seqobj;
}
=head2 get_sequence_names
Title : get_sequence_names
Usage : $lucyObj->get_sequence_names
Function: returns reference to an array of names of the sequences analyzed by Lucy.
These names are required for most of the accessor methods.
Note: The Lucy binary will fail unless sequence names are unique.
Returns : array reference
Args : none
=cut
sub get_sequence_names {
my $self = shift;
my @keys = sort keys %{$self->{sequences}};
return \@keys;
}
=head2 sequence
Title : sequence
Usage : $lucyObj->sequence($seqname)
Function: returns the DNA sequence of one of the sequences analyzed by Lucy.
Returns : string
Args : name of a sequence
=cut
sub sequence {
my ($self, $key) = @_;
return $self->{sequences}{$key}{sequence};
}
=head2 quality
Title : quality
Usage : $lucyObj->quality($seqname)
Function: returns the quality values of one of the sequences analyzed by Lucy.
This method depends on the user having provided a quality file.
Returns : string
Args : name of a sequence
=cut
sub quality {
my($self, $key) = @_;
return $self->{sequences}{$key}{quality};
}
=head2 avg_quality
Title : avg_quality
Usage : $lucyObj->avg_quality($seqname)
Function: returns the average quality value for one of the sequences analyzed by Lucy.
Returns : float
Args : name of a sequence
=cut
sub avg_quality {
my($self, $key) = @_;
return $self->{sequences}{$key}{avg_quality};
}
=head2 direction
Title : direction
Usage : $lucyObj->direction($seqname)
Function: returns the direction for one of the sequences analyzed by Lucy
providing that 'fwd_desig' or 'rev_desig' were set when the
Lucy object was created.
Strings returned are: 'F' for forward, 'R' for reverse.
Returns : string
Args : name of a sequence
=cut
sub direction {
my($self, $key) = @_;
return $self->{sequences}{$key}{direction} if $self->{sequences}{$key}{direction};
return "";
}
=head2 length_raw
Title : length_raw
Usage : $lucyObj->length_raw($seqname)
Function: returns the length of a DNA sequence prior to quality/ vector
trimming by Lucy.
Returns : integer
Args : name of a sequence
=cut
sub length_raw {
my($self, $key) = @_;
return $self->{sequences}{$key}{length_raw};
}
=head2 length_clear
Title : length_clear
Usage : $lucyObj->length_clear($seqname)
Function: returns the length of a DNA sequence following quality/ vector
trimming by Lucy.
Returns : integer
Args : name of a sequence
=cut
sub length_clear {
my($self, $key) = @_;
return $self->{sequences}{$key}{length_clear};
}
=head2 start_clear
Title : start_clear
Usage : $lucyObj->start_clear($seqname)
Function: returns the beginning position of good quality, vector free DNA sequence
determined by Lucy.
Returns : integer
Args : name of a sequence
=cut
sub start_clear {
my($self, $key) = @_;
return $self->{sequences}{$key}{beg_clear};
}
=head2 end_clear
Title : end_clear
Usage : $lucyObj->end_clear($seqname)
Function: returns the ending position of good quality, vector free DNA sequence
determined by Lucy.
Returns : integer
Args : name of a sequence
=cut
sub end_clear {
my($self, $key) = @_;
return $self->{sequences}{$key}{end_clear};
}
=head2 per_GC
Title : per_GC
Usage : $lucyObj->per_GC($seqname)
Function: returns the percente of the good quality, vector free DNA sequence
determined by Lucy.
Returns : float
Args : name of a sequence
=cut
sub per_GC {
my($self, $key) = @_;
return $self->{sequences}{$key}{per_GC};
}
=head2 full_length
Title : full_length
Usage : $lucyObj->full_length($seqname)
Function: returns the truth value for whether or not the sequence read was
full length (ie. vector present on both ends of read). This method
depends on the user having provided the 'info' file (Lucy must be
run with the -debug 'info_filename' option to get this file).
Returns : boolean
Args : name of a sequence
=cut
sub full_length {
my($self, $key) = @_;
return 1 if $self->{sequences}{$key}{full_length};
return 0;
}
=head2 polyA
Title : polyA
Usage : $lucyObj->polyA($seqname)
Function: returns the truth value for whether or not a poly-A tail was detected
and clipped by Lucy. This method depends on the user having modified
the source for Lucy as outlined in DESCRIPTION and invoking Lucy with
the -cdna option and saving the standard error.
Note, the final sequence will not show the poly-A/T region.
Returns : boolean
Args : name of a sequence
=cut
sub polyA {
my($self, $key) = @_;
return 1 if $self->{sequences}{$key}{polyA};
return 0;
}
=head2 get_rejects
Title : get_rejects
Usage : $lucyObj->get_rejects()
Function: returns a hash containing names of rejects and a 1 letter code for the
reason Lucy rejected the sequence.
Q- rejected because of low quality values
S- sequence was short
V- sequence was vector
E- sequence was empty
P- poly-A/T trimming caused sequence to be too short
In order to get the rejects, you must provide a file with the standard
error from Lucy. You will only get the quality category rejects unless
you have modified the source and recompiled Lucy as outlined in DESCRIPTION.
Returns : hash reference
Args : none
=cut
sub get_rejects {
my $self = shift;
return $self->{reject};
}
=head2 Diff for Lucy source code
352a353,354
> /* AGW added next line */
> fprintf(stderr, "Empty: %s\n", seqs[i].name);
639a642,643
> /* AGW added next line */
> fprintf(stderr, "Short/ no insert: %s\n", seqs[i].name);
678c682,686
< if (left) seqs[i].left+=left;
---
> if (left) {
> seqs[i].left+=left;
> /* AGW added next line */
> fprintf(stderr, "%s has PolyA (left).\n", seqs[i].name);
> }
681c689,693
< if (right) seqs[i].right-=right;
---
> if (right) {
> seqs[i].right-=right;
> /* AGW added next line */
> fprintf(stderr, "%s has PolyA (right).\n", seqs[i].name);
> }
682a695,696
> /* AGW added next line */
> fprintf(stderr, "Dropped PolyA: %s\n", seqs[i].name);
734a749,750
> /* AGW added next line */
> fprintf(stderr, "Vector: %s\n", seqs[i].name);
=cut
=head2 This patch is to be applied to lucy.c from the lucy-1.19p release
277a278,279
> /* AGW added next line */
> fprintf(stderr, "Short/ no insert: %s\n", seqs[i].name);
588c590,592
< if ((seqs[i].len=bases)<=0)
---
> if ((seqs[i].len=bases)<=0) {
> /* AGW added next line */
> fprintf(stderr, "Empty: %s\n", seqs[i].name);
589a594
> }
893c898,902
< if (left) seqs[i].left+=left;
---
> if (left) {
> seqs[i].left+=left;
> /* AGW added next line */
> fprintf(stderr, "%s has PolyA (left).\n", seqs[i].name);
> }
896c905,909
< if (right) seqs[i].right-=right;
---
> if (right) {
> seqs[i].right-=right;
> /* AGW added next line */
> fprintf(stderr, "%s has PolyA (right).\n", seqs[i].name);
> }
898a912,913
> /* AGW added next line */
> fprintf(stderr, "Dropped PolyA: %s\n", seqs[i].name);
949a965,966
> /* AGW added next line */
> fprintf(stderr, "Vector: %s\n", seqs[i].name);
=cut
1;
|