Hi, is there any R package that can do sex imputation from GWAS SNP data?
Or is there anyway to run PLINK inside R code?
Thanks a lot!
Hi, is there any R package that can do sex imputation from GWAS SNP data?
Or is there anyway to run PLINK inside R code?
Thanks a lot!
system('plink ...')
might be the way to go. That's what we did :-)
EDIT:
Of course, if you have a file with the plink commands already stored as a script, you can always system('bash script_file.sh')
. For this to work in an automated though, you would need to address changing input parameters on the fly within the script file, at which point it becomes easier to just construct the command as a string and execute that string instead of adding on a couple of File IO operations.
Thanks for the help, @RamRS! Are you saying that PLINK can run batch processing like plink file.containing.plink.commands
?
Thanks again!
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Hi blueskypie,
Please do not add answers unless you're answering the top level question. Use
Add Comment
orAdd Reply
as appropriate. This reply is better suited as a comment on my answer. Could you make the appropriate change please? That would involve the following steps:Select All
->Copy
there).Add Comment
on my post here: A: sex imputation based on SNP dataAdd Comment
buttonmoderate
back in your answer here: A: sex imputation based on SNP dataDelete Post
Submit
button.Thank you!