Difference between revisions of "Gscope Procedures"

From Wikili
Jump to: navigation, search
Line 19: Line 19:
 
set Info [Iterator $Name    Get Max All]                                   
 
set Info [Iterator $Name    Get Max All]                                   
 
</source>
 
</source>
===proc Go...===
+
===proc GoGet...===
 
Several procs are concerned ... see the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?EVImm&FicheMoi&rR/gscope/gscope_go.tcl gscope_go.tcl]  
 
Several procs are concerned ... see the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?EVImm&FicheMoi&rR/gscope/gscope_go.tcl gscope_go.tcl]  
* proc '''GoGo''' starts from a GO and includes recursively all its children (ATTENTION we use ''Mus musculus'' by default)
+
* proc '''GoGetFromGo''' starts from a GO and includes recursively all its children (ATTENTION we use ''Mus musculus'' by default)
 
See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGo proc GoGo]
 
See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGo proc GoGo]
 
<source lang="tcl">
 
<source lang="tcl">
set ListOfPfam        [GoGo "protein binding" PFAM]
+
set ListOfPfam        [GoGetFromGo "protein binding" PFAM]
set ListOfPfamWithId  [GoGo "protein binding" PFAMxref_key,id]
+
set ListOfPfamWithId  [GoGetFromGo "protein binding" PFAMxref_key,id]
set ListOfPfamWithDesc [GoGo "GO:0005515"      PFAMxref_key,xrefdesc]
+
set ListOfPfamWithDesc [GoGetFromGo "GO:0005515"      PFAMxref_key,xrefdesc]
set ListOfGene        [GoGo "protein binding" GENE]
+
set ListOfGene        [GoGetFromGo "protein binding" GENE]
set ListOfGene        [GoGo "protein binding" GENEsymbol]
+
set ListOfGene        [GoGetFromGo "protein binding" GENEsymbol]
set ListOfGeneWithDesc [GoGo "GO:0005515"      GENEfull_name,symbol]
+
set ListOfGeneWithDesc [GoGetFromGo "GO:0005515"      GENEfull_name,symbol]
 
</source>
 
</source>
* proc '''GoFromGene''' Gene Quoi JoinCar RecordsJoinCar
+
* proc '''GoGetFromGene''' Gene Quoi JoinCar RecordsJoinCar
See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoFromGene proc GoFromPfam]
+
See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGetFromGene proc GoGetFromPfam]
 
<source lang="tcl">
 
<source lang="tcl">
set ListOfGO          [GoFromGene PAX6 GO]
+
set ListOfGO          [GoGetFromGene PAX6 GO]
set ListOfGOWithAcc    [GoFromGene PAX6 GOacc]
+
set ListOfGOWithAcc    [GoGetFromFromGene PAX6 GOacc]
set ListOfGOWithName  [GoFromGene PAX6 GOacc,name]
+
set ListOfGOWithName  [GoGetFromFromGene PAX6 GOacc,name]
set ListOfGOWithSource [GoFromGene PAX6 GOacc,a.source_db_id]
+
set ListOfGOWithSource [GoGetFromFromGene PAX6 GOacc,a.source_db_id]
 
</source>
 
</source>
* proc '''GoFromPfam''' Pfam Quoi JoinCar RecordsJoinCar
+
* proc '''GoGetFromFromPfam''' Pfam Quoi JoinCar RecordsJoinCar
See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoFromPfam proc GoFromPfam]
+
See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGetFromPfam proc GoGetFromPfam]
 
<source lang="tcl">
 
<source lang="tcl">
set ListOfGO          [GoFromPfam PF09088 GO]
+
set ListOfGO          [GoGetFromFromPfam PF09088 GO]
set ListOfGOWithAcc    [GoFromPfam PF09088 GOacc]
+
set ListOfGOWithAcc    [GoGetFromFromPfam PF09088 GOacc]
set ListOfGOWithName  [GoFromPfam PF09088 GOacc,name]
+
set ListOfGOWithName  [GoGetFromFromPfam PF09088 GOacc,name]
set ListOfGOWithSource [GoFromPfam PF09088 GOacc,a.source_db_id]
+
set ListOfGOWithSource [GoGetFromFromPfam PF09088 GOacc,a.source_db_id]
 
</source>
 
</source>

Revision as of 11:05, 25 April 2009

You'll find here description about Gscope Procedures

 see all procedures with Gscope Chez le Psy

proc Iterator

See the source of proc Iterator

set Name [Iterator New Init $L0 $L1 $L2]
while {[Iterator $Name Next  v0  v1  v2]} { ... } #rR sans $
#rR L2 is the fastest !!!!!!!!!!!!!!!!!!!!
#rR Attention lists are numbered from 0 to 2 (for the caller)
#rR           but are from 2 to 0 in the proc
Iterator $Name Reset
Iterator $Name Destroy
set Info [Iterator Iterator Get ListOf Name]
set Info [Iterator $Name    Get Current 2]    #rR current index de L2
set Info [Iterator $Name    Get Current All]  #rR tous les current L0 L1 L2
set Info [Iterator $Name    Get Max 0]
set Info [Iterator $Name    Get Max All]

proc GoGet...

Several procs are concerned ... see the source file gscope_go.tcl

  • proc GoGetFromGo starts from a GO and includes recursively all its children (ATTENTION we use Mus musculus by default)

See the source file proc GoGo

set ListOfPfam         [GoGetFromGo "protein binding" PFAM]
set ListOfPfamWithId   [GoGetFromGo "protein binding" PFAMxref_key,id]
set ListOfPfamWithDesc [GoGetFromGo "GO:0005515"      PFAMxref_key,xrefdesc]
set ListOfGene         [GoGetFromGo "protein binding" GENE]
set ListOfGene         [GoGetFromGo "protein binding" GENEsymbol]
set ListOfGeneWithDesc [GoGetFromGo "GO:0005515"      GENEfull_name,symbol]
  • proc GoGetFromGene Gene Quoi JoinCar RecordsJoinCar

See the source file proc GoGetFromPfam

set ListOfGO           [GoGetFromGene PAX6 GO]
set ListOfGOWithAcc    [GoGetFromFromGene PAX6 GOacc]
set ListOfGOWithName   [GoGetFromFromGene PAX6 GOacc,name]
set ListOfGOWithSource [GoGetFromFromGene PAX6 GOacc,a.source_db_id]
  • proc GoGetFromFromPfam Pfam Quoi JoinCar RecordsJoinCar

See the source file proc GoGetFromPfam

set ListOfGO           [GoGetFromFromPfam PF09088 GO]
set ListOfGOWithAcc    [GoGetFromFromPfam PF09088 GOacc]
set ListOfGOWithName   [GoGetFromFromPfam PF09088 GOacc,name]
set ListOfGOWithSource [GoGetFromFromPfam PF09088 GOacc,a.source_db_id]