Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ba13fdc5
Commit
ba13fdc5
authored
Nov 24, 2014
by
Marc Duez
Browse files
segmenter.js : toIgBlast/toImgt debug + handle all system (not only TRG nad IGH)
parent
acda0b93
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/crossDomain.js
View file @
ba13fdc5
...
...
@@ -87,10 +87,10 @@ igBlastInput["seqtype"] = "TCR";
function
imgtPost
(
data
,
system
)
{
imgtInput
[
"
l01p01c10
"
]
=
data
;
if
(
system
==
"
I
GH
"
)
{
if
(
system
[
0
]
==
"
I
"
)
{
imgtInput
[
"
l01p01c04
"
]
=
"
IG
"
;
}
if
(
system
==
"
T
RG
"
)
{
if
(
system
[
0
]
==
"
T
"
)
{
imgtInput
[
"
l01p01c04
"
]
=
"
TR
"
;
}
var
form
=
document
.
getElementById
(
"
form
"
);
...
...
@@ -114,12 +114,12 @@ function imgtPost(data, system) {
function
igBlastPost
(
data
,
system
)
{
igBlastInput
[
"
queryseq
"
]
=
data
;
if
(
system
==
"
I
GH
"
)
{
if
(
system
[
0
]
==
"
I
"
)
{
igBlastInput
[
"
germline_db_V
"
]
=
"
IG_DB/imgt.Homo_sapiens.V.f.orf.p
"
;
igBlastInput
[
"
germline_db_D
"
]
=
"
IG_DB/imgt.Homo_sapiens.D.f.orf
"
;
igBlastInput
[
"
germline_db_J
"
]
=
"
IG_DB/imgt.Homo_sapiens.J.f.orf
"
;
}
if
(
system
==
"
T
RG
"
)
{
if
(
system
[
0
]
==
"
T
"
)
{
igBlastInput
[
"
germline_db_V
"
]
=
"
IG_DB/imgt.TR.Homo_sapiens.V.f.orf.p
"
;
igBlastInput
[
"
germline_db_D
"
]
=
"
IG_DB/imgt.TR.Homo_sapiens.D.f.orf
"
;
igBlastInput
[
"
germline_db_J
"
]
=
"
IG_DB/imgt.TR.Homo_sapiens.J.f.orf.p
"
;
...
...
browser/js/segmenter.js
View file @
ba13fdc5
...
...
@@ -336,7 +336,8 @@ Segment.prototype = {
sendTo
:
function
(
address
)
{
var
list
=
this
.
m
.
getSelected
()
var
request
,
system
;
var
request
=
""
var
system
;
var
max
=
0
;
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
...
...
@@ -348,11 +349,10 @@ Segment.prototype = {
request
+=
"
>
"
+
c
.
getName
()
+
"
\n
"
+
c
.
id
+
"
\n
"
;
}
if
(
c
.
getSize
()
>
max
){
system
=
c
.
s
ystem
system
=
c
.
getS
ystem
()
max
=
c
.
getSize
()
}
}
if
(
address
==
'
IMGT
'
)
imgtPost
(
request
,
system
);
if
(
address
==
'
igBlast
'
)
igBlastPost
(
request
,
system
);
...
...
Vidjil Team
@vidjilteam
Mentioned in issue
#1274 (closed)
·
Nov 29, 2016
Mentioned in issue
#1274 (closed)
Mentioned in issue #1274
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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