Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datautils
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo
datautils
Commits
5210187c
Commit
5210187c
authored
10 years ago
by
Holger Brandl
Browse files
Options
Downloads
Patches
Plain Diff
converted into spinable doc; migrated to dplyr
parent
53427c15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/bio/bioinfo_commons.R
+13
-12
13 additions, 12 deletions
R/bio/bioinfo_commons.R
with
13 additions
and
12 deletions
R/bio/bioinfo_commons.R
+
13
−
12
View file @
5210187c
...
...
@@ -32,20 +32,21 @@ getSeqLengthFromFasta <- function(fileName){
## necessary to disable scientific number formats for long integers
options
(
scipen
=
100
)
#
options(scipen=100)
## writes a table in bed format expecting columns being ordered according to bed spec already
write.bed
<-
function
(
bedData
,
file
){
write.table
(
bedData
,
file
=
file
,
quote
=
FALSE
,
sep
=
"\t"
,
na
=
"NA"
,
row.names
=
FALSE
,
col.names
=
FALSE
)
}
#write.bed <- function(bedData, file){
# oldScipen<-getOption("scipen")
#
# ## necessary to disable scientific number formats for long integers
# options(scipen=100)
#
# write.table(bedData, file=file, quote=FALSE, sep ="\t", na="NA", row.names=FALSE, col.names=FALSE)
#
# options(oldScipen)
#}
write.bed
<-
function
(
bedData
,
file
){
oldScipen
<-
getOption
(
"scipen"
)
## necessary to disable scientific number formats for long integers
options
(
scipen
=
100
)
write.table
(
bedData
,
file
=
file
,
quote
=
FALSE
,
sep
=
"\t"
,
na
=
"NA"
,
row.names
=
FALSE
,
col.names
=
FALSE
)
## restore old scipen value
options
(
scipen
=
oldScipen
)
}
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