Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bioinfo
datautils
Commits
d59974ea
Commit
d59974ea
authored
Jun 01, 2016
by
Holger Brandl
Browse files
fixed sequence length from fasta
parent
88b2a2e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/bio/bioinfo_commons.R
View file @
d59974ea
...
...
@@ -7,7 +7,7 @@
read.fasta
<-
function
(
fileName
){
warning
(
"Deprecated: use read_fasta instead!"
)
read_fasta
(
file
n
ame
)
read_fasta
(
file
N
ame
)
}
...
...
@@ -26,7 +26,7 @@ read_fasta <- function(fileName){
write.fasta
<-
function
(
fileName
){
warning
(
"Deprecated: use write_fasta instead!"
)
read_fasta
(
file
n
ame
)
read_fasta
(
file
N
ame
)
}
...
...
@@ -38,7 +38,7 @@ write_fasta <- function(seq_names, sequences, file){
getSeqLengthFromFasta
<-
function
(
fileName
){
assembly
<-
mutate
(
read
.
fasta
(
fileName
),
seq_len
=
nchar
(
Sequence
))
assembly
<-
mutate
(
read
_
fasta
(
fileName
),
seq_len
=
nchar
(
Sequence
))
assembly
$
Sequence
=
NULL
return
(
assembly
)
}
...
...
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