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
tbg
backmap_workflow
Commits
cd77d3af
Commit
cd77d3af
authored
Jan 06, 2021
by
Raphael Müller
Browse files
removed unnecessary scripts
parent
02c7302f
Changes
3
Hide whitespace changes
Inline
Side-by-side
nextflow/bin/assemLen.py
deleted
100755 → 0
View file @
02c7302f
#!/usr/bin/env python3
import
sys
# Reading file
assembFile
=
sys
.
argv
[
1
]
# Variable for assembly length
assembLen
=
0
# Opening file
with
open
(
assembFile
,
'r'
)
as
aF
:
# Reading each line
for
line
in
aF
:
# Each line that does not start with ">"
if
not
line
.
startswith
(
">"
):
assembLen
=
assembLen
+
len
(
line
.
strip
())
print
(
assembLen
)
nextflow/bin/estgensize.py
deleted
100644 → 0
View file @
02c7302f
#!/usr/bin/env python3
import
sys
# Reading files
nextflow/bin/rall.R
deleted
100755 → 0
View file @
02c7302f
#!/usr/bin/env Rscript
library
(
ggplot2
)
options
(
scipen
=
999
)
# Set up variable to control command line arguments
args
<-
commandArgs
(
TRUE
)
files
<-
c
(
args
)
techs
<-
list
()
for
(
i
in
1
:
length
(
files
)){
if
(
grepl
(
"pb_sort_cov_hist"
,
files
[
i
],
fixed
=
TRUE
)){
techs.current
<-
"PacBio"
}
else
if
(
grepl
(
"ont_sort_cov_hist"
,
files
[
i
],
fixed
=
TRUE
)){
techs.current
<-
"Nanopore"
}
else
{
techs.current
<-
"Illumina"
}
techs
[
i
]
<-
techs.current
}
df
<-
data.frame
()
for
(
i
in
1
:
length
(
files
)){
df.current
<-
read.table
(
files
[
i
])
df.current
$
tech
<-
techs
[
i
]
df
<-
rbind
(
df
,
df.current
)
}
df
$
tech
<-
factor
(
unlist
(
df
$
tech
,
use.names
=
TRUE
))
colnames
(
df
)
<-
c
(
"Coverage"
,
"Count"
,
"tech"
)
p
<-
ggplot
(
data
=
df
,
mapping
=
aes
(
x
=
Coverage
,
y
=
Count
,
group
=
tech
,
color
=
tech
))
+
geom_line
()
+
annotation_logticks
()
+
scale_x_log10
()
+
expand_limits
(
x
=
0
,
y
=
0
)
ggsave
(
"Rall.jpeg"
,
plot
=
p
,
device
=
"jpeg"
)
# scale_y_log10() +
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