Question: sex imputation based on SNP data
0
gravatar for blueskypie
16 months ago by
blueskypie50
United States
blueskypie50 wrote:

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!

sex imputation • 265 views
ADD COMMENTlink modified 16 months ago • written 16 months ago by blueskypie50
0
gravatar for RamRS
16 months ago by
RamRS30k
Baylor College of Medicine, Houston, TX
RamRS30k wrote:
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.

ADD COMMENTlink modified 16 months ago • written 16 months ago by RamRS30k
0
gravatar for blueskypie
16 months ago by
blueskypie50
United States
blueskypie50 wrote:

Thanks for the help, @RamRS! Are you saying that PLINK can run batch processing like plink file.containing.plink.commands?

Thanks again!

ADD COMMENTlink written 16 months ago by blueskypie50

Hi blueskypie,

Please do not add answers unless you're answering the top level question. Use Add Comment or Add 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:

  1. Copy the contents of your reply from this answer (you can edit this answer (Ctrl/Cmd + click the link to open it in a new tab) and do a Select All -> Copy there).
  2. Click on Add Comment on my post here: A: sex imputation based on SNP data
  3. Paste the copied text
  4. Click on the green Add Comment button
  5. Click on moderate back in your answer here: A: sex imputation based on SNP data
  6. Choose Delete Post
  7. Click on the blue Submit button.

Thank you!

ADD REPLYlink written 16 months ago by RamRS30k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1373 users visited in the last hour