Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
e3d5e476
Commit
e3d5e476
authored
Jul 19, 2016
by
jgould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fallback if byte range requests are not supported
parent
3851059f
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
24 deletions
+37
-24
js/morpheus-external-latest.min.js
js/morpheus-external-latest.min.js
+1
-2
js/morpheus-latest.min.js
js/morpheus-latest.min.js
+20
-20
src/io/gct_reader.js
src/io/gct_reader.js
+16
-2
No files found.
js/morpheus-external-latest.min.js
View file @
e3d5e476
This source diff could not be displayed because it is too large. You can
view the blob
instead.
js/morpheus-latest.min.js
View file @
e3d5e476
This diff is collapsed.
Click to expand it.
src/io/gct_reader.js
View file @
e3d5e476
...
...
@@ -7,6 +7,16 @@ morpheus.GctReader.prototype = {
return
'
gct
'
;
},
read
:
function
(
fileOrUrl
,
callback
)
{
if
(
fileOrUrl
instanceof
File
)
{
this
.
_readChunking
(
fileOrUrl
,
callback
,
false
);
}
else
{
this
.
_readChunking
(
fileOrUrl
,
callback
,
true
);
}
},
_readChunking
:
function
(
fileOrUrl
,
callback
,
tryNoChunkIfError
)
{
var
_this
=
this
;
// Papa.LocalChunkSize = 10485760 * 10; // 100 MB
// Papa.RemoteChunkSize = 10485760 * 10; // 100 MB
var
lineNumber
=
0
;
var
version
;
var
numRowAnnotations
=
1
;
// in addition to row id
...
...
@@ -155,7 +165,11 @@ morpheus.GctReader.prototype = {
callback
(
null
,
dataset
);
},
error
:
function
(
err
)
{
if
(
tryNoChunkIfError
)
{
_this
.
_readNoChunking
(
fileOrUrl
,
callback
);
}
else
{
callback
(
err
);
}
},
download
:
!
(
fileOrUrl
instanceof
File
),
skipEmptyLines
:
false
,
...
...
@@ -418,7 +432,7 @@ morpheus.GctReader.prototype = {
}
},
_read
:
function
(
fileOrUrl
,
callback
)
{
_read
NoChunking
:
function
(
fileOrUrl
,
callback
)
{
var
_this
=
this
;
var
name
=
morpheus
.
Util
.
getBaseFileName
(
morpheus
.
Util
.
getFileName
(
fileOrUrl
));
...
...
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