Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
luc.moulinier
ordalie
Commits
cef9ae41
Commit
cef9ae41
authored
Jan 31, 2020
by
luc.moulinier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
empeche opengl pour mac
parent
4873623f
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10913 additions
and
19263 deletions
+10913
-19263
src/LesProcsDeGscope.tcl
src/LesProcsDeGscope.tcl
+10862
-19251
src/ordali_admin.tcl
src/ordali_admin.tcl
+11
-9
src/ordali_math.tcl
src/ordali_math.tcl
+27
-1
src/ordali_services.tcl
src/ordali_services.tcl
+3
-0
src/ordali_setup.tcl
src/ordali_setup.tcl
+3
-2
src/ordali_visu3d.tcl
src/ordali_visu3d.tcl
+7
-0
No files found.
src/LesProcsDeGscope.tcl
View file @
cef9ae41
This diff is collapsed.
Click to expand it.
src/ordali_admin.tcl
View file @
cef9ae41
...
...
@@ -116,18 +116,20 @@ proc LoadTkAndPackages {} {
package require Tk $::tcl_patchLevel
#catch
{
console show
}
Espionne
"Tk :
$::tk
_patchLevel"
if
{[
catch
{
package require tcl3d
}
Msg
]}
{
if
{[
string first
"instead"
$Msg
]
> -1
}
{
set vertcl3d
[
lindex
[
split
[
string trim $Msg
]]
end-2
]
if
{[
string range
[
::platform::generic
]
0 5
]
eq
"macosx"
}
{
if
{[
catch
{
package require tcl3d
}
Msg
]}
{
if
{[
string first
"instead"
$Msg
]
> -1
}
{
set vertcl3d
[
lindex
[
split
[
string trim $Msg
]]
end-2
]
}
else
{
puts
"Msg :
$
Msg"
set vertcl3d
"None"
}
}
else
{
puts
"Msg :
$
Msg
"
set vertcl3d
"None"
set vertcl3d
$Msg
package require tcl3d
}
}
else
{
set vertcl3d $Msg
package require tcl3d
Espionne
"tcl3d :
$vertcl3d
"
}
Espionne
"tcl3d :
$vertcl3d
"
if
{
$Defauts
(
Devlpt
)}
{
Espionne
"biotext-dev:
[
package require biotext-dev
]
"
}
else
{
...
...
src/ordali_math.tcl
View file @
cef9ae41
...
...
@@ -975,11 +975,11 @@ proc RunRPCA {Ld} {
set NbRow
[
llength $Ld
]
Rpipe
"rm(list = ls())"
Rpipe
"set.seed(
$::
Defauts(RSeed))"
Rpipe
"data <- c(
[
join
[
concat
{*}
$Ld
]
,
]
)"
Rpipe
"data <- matrix(data,nrow=
$
NbRow,byrow=T)"
Rpipe
"set.seed(
$::
Defauts(RSeed))"
Rpipe
"pca <- prcomp(data, scale=T)"
#Rpipe
"pca <- prcomp(data)"
puts
"
\n
R PCA scales :"
...
...
@@ -1076,3 +1076,29 @@ proc RunTclPCA {Ldata} {
}
proc Cnp
{
n p
}
{
set sum 0
for
{
set i $n
}
{
$i
>
(
$n
- $p
)}
{
incr i -1
}
{
if
{
$i
== $n
}
{
set sum $i
}
else
{
set sum
[
expr
{
$sum
* $i
}]
}
}
set sum
[
expr
{
$sum
/
[
factorial1 $p
]}]
return $sum
}
proc prmcnp
{}
{
set sum 0
for
{
set i 3
}
{
$i
< 32
}
{
incr i
}
{
incr sum
[
Cnp 32 $i
]
}
incr sum
return $sum
}
src/ordali_services.tcl
View file @
cef9ae41
...
...
@@ -1900,6 +1900,7 @@ proc eFetchREST {db Lid {what ""}} {
continue
}
set LidNow $Lid
switch $db
{
"taxonomy"
{
lappend Lres
{*}
[
TaxonomyProcessXML $ddb $LidNow
]
...
...
@@ -2619,6 +2620,7 @@ proc teli {} {
proc ListOfEBIDatabases
{}
{
# databanses list :
# https://www.uniprot.org/help/api_idmapping
# http://www.ebi.ac.uk/Tools/services/rest/ncbiblast/parameterdetails/database
#
set url
"http://www.ebi.ac.uk/Tools/services/rest/ncbiblast/parameterdetails/database"
...
...
@@ -4117,6 +4119,7 @@ proc Mafft_AddSequences {fali fseqs} {
}
set url
"http://ddbj.nig.ac.jp/wabi/mafft/"
package require http
set query
[
::http::formatQuery
\
"format"
"text"
\
"querySequence"
"
$ali
"
\
...
...
src/ordali_setup.tcl
View file @
cef9ae41
...
...
@@ -750,6 +750,7 @@ proc ValsDeCouleurs {} {
proc Luc_bgerror
{
err
}
{
global errorInfo
set old_errorInfo $errorInfo
#package require smtp
#package require mime
...
...
@@ -782,8 +783,8 @@ proc ChangeTkOptions {} {
# change bgerror in order to send me a mesage
catch
{
bgerror
}
rename ::bgerror
::Old_bgerror
rename ::Luc_bgerror ::bgerror
catch
{
rename ::bgerror ::Old_bgerror
}
catch
{
rename ::Luc_bgerror ::bgerror
}
if
{
1 &&
[
info exists ::env
(
USER
)]
&& $::env
(
USER
)
eq
"moumou"
}
{
if
{
"SeqFont"
in
[
font names
]}
{
...
...
src/ordali_visu3d.tcl
View file @
cef9ae41
...
...
@@ -106,6 +106,13 @@ proc PrepareViewer {} {
proc VisualiseStructure
{}
{
global Defauts ListePDB StrucAVoir
#::profiler::reset
if
{[
string range
[
::platform::generic
]
0 5
]
eq
"macosx"
}
{
FaireLire
"Apple does not support OpenGL anymore.
\n
This option is not available on this platform"
return
}
if
{[
TypeAli
]
eq
"pasdali"
}
{
return
}
if
{[
QuelMode
]
eq
"seqlab"
}
{
FaireLire
"Not available in Editor mode !"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment