Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stuart
Manage
Activity
Members
Labels
Plan
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
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
mouselab
stuart
Commits
2389d668
Commit
2389d668
authored
3 years ago
by
Marie BOURDON
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Update write_rqtl.R See merge request
!7
parents
f6809a82
3afae76c
No related branches found
No related tags found
1 merge request
!7
Update write_rqtl.R
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/write_rqtl.R
+3
-0
3 additions, 0 deletions
R/write_rqtl.R
with
3 additions
and
0 deletions
R/write_rqtl.R
+
3
−
0
View file @
2389d668
...
@@ -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"
))
...
...
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