Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D-GENIES
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
genotoul-bioinfo
d-genies
D-GENIES
Commits
d1f7842f
Commit
d1f7842f
authored
7 years ago
by
Floreal Cabanettes
Browse files
Options
Downloads
Patches
Plain Diff
Add loading + fix typo
parent
b9b61256
No related branches found
Branches containing commit
Tags
v1.0.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dgenies/static/js/dgenies.result.export.js
+19
-13
19 additions, 13 deletions
src/dgenies/static/js/dgenies.result.export.js
with
19 additions
and
13 deletions
src/dgenies/static/js/dgenies.result.export.js
+
19
−
13
View file @
d1f7842f
...
@@ -59,7 +59,7 @@ dgenies.result.export.dl_fasta = function (gzip=false) {
...
@@ -59,7 +59,7 @@ dgenies.result.export.dl_fasta = function (gzip=false) {
};
};
dgenies
.
result
.
export
.
export_fasta
=
function
(
compress
=
false
)
{
dgenies
.
result
.
export
.
export_fasta
=
function
(
compress
=
false
)
{
dgenies
.
show_loading
(
"
Building file
s
...
"
,
180
);
dgenies
.
show_loading
(
"
Building file...
"
,
180
);
dgenies
.
post
(
"
/get-fasta-query/
"
+
dgenies
.
result
.
id_res
,
dgenies
.
post
(
"
/get-fasta-query/
"
+
dgenies
.
result
.
id_res
,
{
{
gzip
:
compress
gzip
:
compress
...
@@ -129,18 +129,22 @@ dgenies.result.export.export_association_table = function () {
...
@@ -129,18 +129,22 @@ dgenies.result.export.export_association_table = function () {
};
};
dgenies
.
result
.
export
.
export_no_association_file
=
function
(
to
)
{
dgenies
.
result
.
export
.
export_no_association_file
=
function
(
to
)
{
let
on
=
to
===
"
query
"
?
"
target
"
:
"
query
"
;
window
.
setTimeout
(()
=>
{
dgenies
.
post
(
"
/no-assoc/
"
+
dgenies
.
result
.
id_res
,
dgenies
.
show_loading
(
"
Building file...
"
,
180
);
{
"
to
"
:
to
},
let
on
=
to
===
"
query
"
?
"
target
"
:
"
query
"
;
function
(
data
,
success
)
{
dgenies
.
post
(
"
/no-assoc/
"
+
dgenies
.
result
.
id_res
,
if
(
!
data
[
"
empty
"
])
{
{
"
to
"
:
to
},
let
blob
=
new
Blob
([
data
[
"
file_content
"
]],
{
type
:
"
text/plain
"
});
function
(
data
,
success
)
{
saveAs
(
blob
,
`no_
${
to
}
_matches_
${
d3
.
boxplot
.
name_y
}
_to_
${
d3
.
boxplot
.
name_x
}
.txt`
);
dgenies
.
hide_loading
();
}
if
(
!
data
[
"
empty
"
])
{
else
{
let
blob
=
new
Blob
([
data
[
"
file_content
"
]],
{
type
:
"
text/plain
"
});
dgenies
.
notify
(
`No contigs in
${
to
}
have None match with any
${
on
}
!`
,
"
success
"
)
saveAs
(
blob
,
`no_
${
to
}
_matches_
${
d3
.
boxplot
.
name_y
}
_to_
${
d3
.
boxplot
.
name_x
}
.txt`
);
}
}
})
else
{
dgenies
.
notify
(
`No contigs in
${
to
}
have None match with any
${
on
}
!`
,
"
success
"
)
}
})
},
0
);
};
};
dgenies
.
result
.
export
.
export_query_as_reference_fasta_webserver
=
function
()
{
dgenies
.
result
.
export
.
export_query_as_reference_fasta_webserver
=
function
()
{
...
@@ -203,9 +207,11 @@ dgenies.result.export.export = function () {
...
@@ -203,9 +207,11 @@ dgenies.result.export.export = function () {
}
}
else
if
(
selection
===
6
)
{
else
if
(
selection
===
6
)
{
dgenies
.
result
.
export
.
export_no_association_file
(
"
query
"
);
dgenies
.
result
.
export
.
export_no_association_file
(
"
query
"
);
async
=
true
;
}
}
else
if
(
selection
===
7
)
{
else
if
(
selection
===
7
)
{
dgenies
.
result
.
export
.
export_no_association_file
(
"
target
"
);
dgenies
.
result
.
export
.
export_no_association_file
(
"
target
"
);
async
=
true
;
}
}
else
if
(
selection
===
8
)
{
else
if
(
selection
===
8
)
{
if
(
dgenies
.
mode
===
"
webserver
"
)
{
if
(
dgenies
.
mode
===
"
webserver
"
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment