Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
custom
Fiumara_BasePrimeEd2022
Fiumara_BasePrimeEd2022_WES
Commits
01515227
Commit
01515227
authored
Jul 31, 2023
by
Stefano Beretta
Browse files
Update WESopt_plot_results.R
parent
14a5691d
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/WESopt_plot_results.R
View file @
01515227
...
@@ -145,7 +145,7 @@ plot_variants <- function(full.t, out_dir, plot_prefix, fill_by) {
...
@@ -145,7 +145,7 @@ plot_variants <- function(full.t, out_dir, plot_prefix, fill_by) {
###############
###############
### General ###
### General ###
###############
###############
wdir
<-
"WESopt"
wdir
<-
"
Fiumara_BasePrimeEd2022_WES/
WESopt"
out_dir
<-
paste
(
wdir
,
"results"
,
sep
=
"/"
)
out_dir
<-
paste
(
wdir
,
"results"
,
sep
=
"/"
)
dir.create
(
out_dir
,
showWarnings
=
F
)
dir.create
(
out_dir
,
showWarnings
=
F
)
...
@@ -162,7 +162,7 @@ samples <- c("S1_B1", "S2_B2", "S3_B3",
...
@@ -162,7 +162,7 @@ samples <- c("S1_B1", "S2_B2", "S3_B3",
full.t
<-
data.frame
()
full.t
<-
data.frame
()
for
(
ss
in
samples
)
{
for
(
ss
in
samples
)
{
print
(
ss
)
print
(
ss
)
t
<-
read.table
(
gzfile
(
paste
(
wdir
,
"data"
,
ss
,
paste0
(
ss
,
"-DP500_PASS_sGQ80_sDP10.ANNOT.vcf.gz"
),
sep
=
"/"
)),
comment.char
=
"#"
,
sep
=
"\t"
)
t
<-
read.table
(
gzfile
(
paste
(
wdir
,
"data"
,
paste0
(
ss
,
"-DP500_PASS_sGQ80_sDP10.ANNOT.vcf.gz"
),
sep
=
"/"
)),
comment.char
=
"#"
,
sep
=
"\t"
)
colnames
(
t
)
<-
c
(
"CHROM"
,
"POS"
,
"ID"
,
"REF"
,
"ALT"
,
"QUAL"
,
"FILTER"
,
"ANNOT"
,
"FORMAT"
,
"SAMPLE"
)
colnames
(
t
)
<-
c
(
"CHROM"
,
"POS"
,
"ID"
,
"REF"
,
"ALT"
,
"QUAL"
,
"FILTER"
,
"ANNOT"
,
"FORMAT"
,
"SAMPLE"
)
t
$
Sample
<-
ss
t
$
Sample
<-
ss
t
$
Vars
<-
paste
(
t
$
CHROM
,
t
$
POS
,
t
$
REF
,
t
$
ALT
,
sep
=
"-"
)
t
$
Vars
<-
paste
(
t
$
CHROM
,
t
$
POS
,
t
$
REF
,
t
$
ALT
,
sep
=
"-"
)
...
...
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