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
Armin Rauschenberger
joinet
Commits
985a6b27
Commit
985a6b27
authored
Jul 16, 2018
by
Rauschenberger
Browse files
automation
parent
6e613bf8
Changes
1
Show whitespace changes
Inline
Side-by-side
R/functions.R
View file @
985a6b27
...
...
@@ -197,7 +197,8 @@ get.snps.bbmri <- function(chr,biobank=NULL,path=getwd(),size=500*10^3){
#### start trial ####
# ONLY RETAINING SNPS WITH COMPLETE DATA
position
<-
apply
(
collect
[
i
,,
drop
=
FALSE
],
2
,
function
(
x
)
x
[[
1
]]
@
fix
[,
"POS"
])
#position <- apply(collect[i,,drop=FALSE],2,function(x) x[[1]]@fix[,"POS"])
position
<-
lapply
(
seq_along
(
study
),
function
(
j
)
collect
[
i
,
j
][[
1
]]
@
fix
[,
"POS"
])
common
<-
Reduce
(
f
=
intersect
,
x
=
position
)
for
(
j
in
seq_along
(
study
)){
cond
<-
match
(
x
=
common
,
table
=
position
[[
j
]])
...
...
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