[Bioperl-l] seq_word and pattern counts

Torsten Seemann torsten.seemann at infotech.monash.edu.au
Sat Mar 4 06:22:18 EST 2006


Staffa, Nick (NIH/NIEHS) [C] wrote:
> You asked:
> Did this work?

Yes I did; I was hoping the thread in bioperl-l would have a happy 
ending that others could benefit from :-) And I've never used the module 
myself.

> gave this sort of result. 
> Maybe the problem is all the NNNNNN that's in the mouse chromosome,
> or maybe I don't have Bio::Seq object but a Bio::DB object and wouldn't that be a bummer if they weren't compatible?

I see:
http://doc.bioperl.org/releases/bioperl-1.0.1/Bio/Tools/RestrictionEnzyme.html#CODE8
Argument  : Reference to a Bio::PrimarySeq.pm-derived object.

I guess the Bio::DB objects are Bio::SeqI derived, not Bio::PrimarySeqI 
derived, so incompatible.

Perhaps convert your $subseq to a PrimarySeq before passing it to 
cut_seq, something like $subseq2 = Bio::PrimarySeq->new(-id=>'????', 
seq=>$subseq->seq); ?

And yes, your pattern "TT^CGAA" will naturally match MANY times in 
sections containing lots of Ns. I guess you'll need to mask them out 
somehow.

> gir.niehs.nih.gov> Torsten.pl TT^CGAA
> mm_ref_chr10.fa    83274084
> filename=mm_ref_chr10.fa  sequenceID=83274084
> start=0 window=10003 string=TT^CGAA overlap=10000 length=130066766
> out=chr10_TT^CGAA.count
> 
> ------------- EXCEPTION  -------------
> MSG: Can't cut sequence. Missing or invalid objectseqObj: NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN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rictionEnzyme.pm:1001
> STACK toplevel Torsten.pl:42

-- 
Torsten Seemann
Victorian Bioinformatics Consortium, Monash University, Australia
http://www.vicbioinformatics.com/
Phone: +61 3 9905 9010


More information about the Bioperl-l mailing list