Is there any documentation of the Lucene's syntax required to restrict interactions
from a particular protein to specific types?
The program
*******
#!/usr/bin/perl
use strict;
use LWP::Simple;
# ------------------ MITAB FUNCTIONS ------------------
sub getXrefByDbName {
my ( $xrefs, $dbName ) = @_;
for my $xref (split (/\|/, $xrefs)){
my ($db, $id, $txt) = split /[:\(\)]/, $xref;
if( $db eq $dbName ) {
return $id;
}
}
return $xrefs;
}
# -----------------------------------------------------
# Note that we are only going to get 10 interactions at most
my $queryUrl = "
http://www.ebi.ac.uk/Tools/webservices/psicquic/intact/webservices/current/search/query/YJL172W;
my $content = get $queryUrl;
die "Couldn't get $queryUrl" unless defined $content;
#print $content;
# Now list all interactions
my @lines = split(/\n/, $content);
for my $line (@lines) {
my @flds = split(/\t/, $line); # split tab delimited lines
# split fields of a PSIMITAB 2.5 line
my ($idA, $idB, $altIdA, $altIdB, $aliasA, $aliasB, $detMethod, $author, $pub, $orgA,
$orgB, $intType, $sourceDb, $intId, $conf) = @flds;
print getXrefByDbName($idA, "uniprotkb") . " interacts with " . getXrefByDbName($idB, "uniprotkb") . "\n";
print $intType, "\n";
}
**********
produces a list of all the interactions involving YJL172W and their interaction types
jonathan@ubuntu:~$ perl
a5.plP27614 interacts with P02829
psi-mi:"MI:0915"(physical association)
P40152 interacts with P27614
psi-mi:"MI:0914"(association)
P27614 interacts with P15108
psi-mi:"MI:0914"(association)
P11484 interacts with P27614
psi-mi:"MI:0914"(association)
P27614 interacts with P32527
psi-mi:"MI:0915"(physical association)
I would like to restrict these to only interactions with interaction type "physical association", so
I tried replacing the line setting the value of $request with
my $queryUrl = "
http://www.ebi.ac.uk/Tools/webservices/psicquic/intact/webservices/current/search/query/YJL172W?type='physical association'";
but this does not stop the program from typing out the same five interactions including the three which are association.
similarly I would like to restrict searches to find only experimental interactions, and interactions not derived
from spoke expanded co-complexes. Can the queryUrl string be altered to achieve this?
Thanks
Jonathan
I would