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
mouselab
stuart
Commits
3afae76c
Commit
3afae76c
authored
Jun 17, 2021
by
Marie BOURDON
Browse files
Update write_rqtl.R
parent
f6809a82
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/write_rqtl.R
View file @
3afae76c
...
@@ -59,6 +59,9 @@ write_rqtl <- function(geno,pheno,tab,ref,par1,par2,prefix,pos,path=NA){
...
@@ -59,6 +59,9 @@ write_rqtl <- function(geno,pheno,tab,ref,par1,par2,prefix,pos,path=NA){
#merge genotypes with parents
#merge genotypes with parents
geno
<-
left_join
(
geno
,
ref
,
by
=
c
(
"marker"
=
"marker"
))
geno
<-
left_join
(
geno
,
ref
,
by
=
c
(
"marker"
=
"marker"
))
#remove snps with no position
geno
<-
geno
%>%
filter
(
is.na
(
chr
)
==
FALSE
)
#recode "-" in "N" in geno file
#recode "-" in "N" in geno file
geno
<-
geno
%>%
mutate
(
allele_1
=
recode
(
allele_1
,
geno
<-
geno
%>%
mutate
(
allele_1
=
recode
(
allele_1
,
"-"
=
"N"
))
"-"
=
"N"
))
...
...
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