[Bioperl-l] [Bioperl-guts-l] Notification: incoming/1243 (fwd)

Jason Stajich jason@cgt.mc.duke.edu
Tue, 10 Sep 2002 17:30:45 -0400 (EDT)


See below

-- 
Jason Stajich
Duke University
jason at cgt.mc.duke.edu

---------- Forwarded message ----------
Date: Tue, 10 Sep 2002 17:00:15 -0400
From: bioperl-bugs@bioperl.org
To: bioperl-guts-l@bioperl.org
Subject: [Bioperl-guts-l] Notification: incoming/1243

JitterBug notification

new message incoming/1243

Message summary for PR#1243
	From: fyang68@yahoo.com
	Subject: suggestion about Bio::Search::HSP::HSPI
	Date: Tue, 10 Sep 2002 17:00:13 -0400
	0 replies 	0 followups

====> ORIGINAL MESSAGE FOLLOWS <====

>From fyang68@yahoo.com  Tue Sep 10 17:00:14 2002
Return-Path: <fyang68@yahoo.com>
Received: from localhost (localhost [127.0.0.1])
	by pw600a.bioperl.org (8.12.2/8.12.2) with ESMTP id g8AL0DIn025471
	for <bioperl-bugs@pw600a.bioperl.org>; Tue, 10 Sep 2002 17:00:13 -0400
Date: Tue, 10 Sep 2002 17:00:13 -0400
Message-Id: <200209102100.g8AL0DIn025471@pw600a.bioperl.org>
From: fyang68@yahoo.com
To: bioperl-bugs@bioperl.org
Subject: suggestion about Bio::Search::HSP::HSPI

Full_Name: Fan Yang
Module: Bio::Search::HSP::HSPI
Version:
PerlVer:
OS:
Submission from: (NULL) (205.181.102.135)


Hi, bioperl has definitely done great job.  Just
a comment about Bio::Search::HSP::HSPI.  I hope
it can return the positions of HSP of both query
and subject sequences.  For instance:

Query: 213    aaaagtaattgtggtttttgccat 236
              ||||||||||||||||||||||||
Sbjct: 134332 aaaagtaattgtggtttttgccat 134309

I would like to get "213", "236", "134332", from the
object.

Fan:

Here you go -- This is because Bio::Search::HSP::HSPI objects are
Bio::SeqFeature::SimilarityPair objects which contain references to
queries and hits (subjects)

$hsp->query->start    -->     213
$hsp->query->end      -->     236

Start will always be less than end - $hsp->query->strand will give you the
strandedness.  Query strand is 0 for blastp and protein vs DNA db
searches.

$hsp->hit->start     -->     134332
$hsp->hit->end       -->     134309


Thanks.

Fan


_______________________________________________
Bioperl-guts-l mailing list
Bioperl-guts-l@bioperl.org
http://bioperl.org/mailman/listinfo/bioperl-guts-l