Difference between revisions of "Gscope Procedures"
Line 19: | Line 19: | ||
set Info [Iterator $Name Get Max All] | set Info [Iterator $Name Get Max All] | ||
</source> | </source> | ||
− | ==proc GoGetFromGo {Go GENEofPFAMwhatyouneed JoinCar RecordsJoinCar}== | + | ==proc GoNext {UpDown Go}== |
− | 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] See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc& | + | 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] See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoNext proc GoNext] |
+ | * GoNext returns its children if down, its parent if up (can be more than 1 parent) | ||
+ | * GoChildren Go is GoNext Down Go | ||
+ | * GoParents Go is GoNext Up Go | ||
+ | ==proc GoGetFromGo {Go GENEofPFAMwhatyouneed JoinCar RecordsJoinCar UpDown}== | ||
+ | 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] See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGetFromGo proc GoGetFromGo] | ||
* GoGetFromGo starts from a GO and includes recursively all its children (ATTENTION we use ''Mus musculus'' by default) and return ''what you need'' about its GENEs or PFAMs | * GoGetFromGo starts from a GO and includes recursively all its children (ATTENTION we use ''Mus musculus'' by default) and return ''what you need'' about its GENEs or PFAMs | ||
<source lang="tcl"> | <source lang="tcl"> | ||
+ | set ListOfGo [GoGetFromGo "protein binding" GO] | ||
+ | set ListOfGoWithAcc [GoGetFromGo "protein binding" GOacc] | ||
+ | set ListOfGoWithIdName [GoGetFromGo "GO:0005515" GOid,name] | ||
set ListOfPfam [GoGetFromGo "protein binding" PFAM] | set ListOfPfam [GoGetFromGo "protein binding" PFAM] | ||
set ListOfPfamWithId [GoGetFromGo "protein binding" PFAMxref_key,id] | set ListOfPfamWithId [GoGetFromGo "protein binding" PFAMxref_key,id] | ||
Line 33: | Line 41: | ||
==proc GoGetFromGene {Gene GOwhatyouneed JoinCar RecordsJoinCar}== | ==proc GoGetFromGene {Gene GOwhatyouneed JoinCar RecordsJoinCar}== | ||
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] | ||
− | See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGetFromGene proc | + | See the source file [http://lbgi.igbmc.fr/gag/cgi-bin/GscopeServer?Zero&AfficheLaProc&GoGetFromGene proc GoGetFromGene] |
* GoGetFromGene returns ''what you need'' about all its GO | * GoGetFromGene returns ''what you need'' about all its GO | ||
<source lang="tcl"> | <source lang="tcl"> |
Revision as of 11:10, 28 April 2009
You'll find here description about Gscope Procedures
see all procedures with Gscope Chez le Psy
Contents
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 GoNext {UpDown Go}
Several procs are concerned ... see the source file gscope_go.tcl See the source file proc GoNext
- GoNext returns its children if down, its parent if up (can be more than 1 parent)
- GoChildren Go is GoNext Down Go
- GoParents Go is GoNext Up Go
proc GoGetFromGo {Go GENEofPFAMwhatyouneed JoinCar RecordsJoinCar UpDown}
Several procs are concerned ... see the source file gscope_go.tcl See the source file proc GoGetFromGo
- GoGetFromGo starts from a GO and includes recursively all its children (ATTENTION we use Mus musculus by default) and return what you need about its GENEs or PFAMs
set ListOfGo [GoGetFromGo "protein binding" GO]
set ListOfGoWithAcc [GoGetFromGo "protein binding" GOacc]
set ListOfGoWithIdName [GoGetFromGo "GO:0005515" GOid,name]
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 GOwhatyouneed JoinCar RecordsJoinCar}
Several procs are concerned ... see the source file gscope_go.tcl See the source file proc GoGetFromGene
- GoGetFromGene returns what you need about all its GO
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 GoGetFromPfam {Pfam GOwhatyouneed JoinCar RecordsJoinCar}
Several procs are concerned ... see the source file gscope_go.tcl See the source file proc GoGetFromPfam
- GoGetFromGene returns what you need about all its GO
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]