Skip to content
GitLab
Menu
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
27a99f60
Commit
27a99f60
authored
Mar 30, 2015
by
Mathieu Giraud
Browse files
clone.js: Fasta export with line breaks between V/N and N/J
.getPrintableSegSequence()
parent
c84fac9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/clone.js
View file @
27a99f60
...
...
@@ -212,7 +212,7 @@ Clone.prototype = {
getFasta
:
function
()
{
fasta
=
''
fasta
+=
'
>
'
+
this
.
getCode
()
+
'
'
+
this
.
getPrintableSize
()
+
'
\n
'
fasta
+=
this
.
getSequence
()
+
'
\n
'
fasta
+=
this
.
get
PrintableSeg
Sequence
()
+
'
\n
'
return
fasta
},
...
...
@@ -338,6 +338,22 @@ Clone.prototype = {
}
},
getPrintableSegSequence
:
function
()
{
if
(
typeof
this
.
seg
==
'
undefined
'
||
typeof
this
.
seg
[
'
5end
'
]
==
'
undefined
'
||
typeof
this
.
seg
[
'
3start
'
]
==
'
undefined
'
)
{
return
this
.
getSequence
()
}
var
s
=
''
s
+=
this
.
sequence
.
substring
(
0
,
this
.
seg
[
'
5end
'
])
s
+=
'
\n
'
if
(
this
.
seg
[
'
5end
'
]
<
this
.
seg
[
'
3start
'
]
-
1
)
{
s
+=
this
.
sequence
.
substring
(
this
.
seg
[
'
5end
'
],
this
.
seg
[
'
3start
'
]
-
1
)
s
+=
'
\n
'
}
s
+=
this
.
sequence
.
substring
(
this
.
seg
[
'
3start
'
]
-
1
)
return
s
},
computeGCContent
:
function
()
{
if
(
typeof
(
this
.
sequence
)
==
'
undefined
'
)
{
this
.
GCContent
=
'
?
'
...
...
Vidjil Team
@vidjilteam
Mentioned in issue
#1484 (closed)
·
Nov 29, 2016
Mentioned in issue
#1484 (closed)
Mentioned in issue #1484
Toggle commit list
Write
Preview
Supports
Markdown
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