Recoding plink file from 12 to 01
0
0
Entering edit mode
6.3 years ago
dirranrak ▴ 20

Hi all,

I tried to use Plink2chromopainter.pl to convert plink file to chromopainter file. I have plink file recoded 12 but I need to recode the file to 01 before using the program. I did use --recode 01 --output-missing-genotype 3. I have red the plink manual but I still got a strange content in the file with very few variants. What should be the problem? What should I do?

More details:

I am trying to use finestructure, I need chromopainter file to be able to work with. I have plink ped file recoded 12, I need to convert the plink file into chromopainter format by using plink2chromopainter.pl. I followed the instruction from the finestructure website. I ran the conversion script as told but I get an error:

SNPs must be in 0/1 format, but we received 0 (-1) = -1. Do you need to run with/without -a?

Thank you very much

plink plink2chromopaiter.pl • 2.8k views
ADD COMMENT
0
Entering edit mode

I think OP is talking about a tool found here: https://people.maths.bris.ac.uk/~madjl/finestructure/manualse11.html

OP, please always provide context.

ADD REPLY
0
Entering edit mode

need to recode the file to 01 before using the program

  • which program?
  • where does it say you need to recode the file to 01?
  • why does a tool want you recoding back and forth for its own internal compatibility? That's a badly designed tool.
ADD REPLY
0
Entering edit mode

Hi, sorry for not giving enough details. I am trying to use finestructure, I need chromopainter file to be able to work with. I have plink ped file recoded 12, I need to convert the plink file into chromopainter format by using plink2chromopainter.pl. I followed the instruction from the finestructure website. I ran the conversion script as told but I get an error: SNPs must be in 0/1 format, but we received 0 (-1) = -1. Do you need to run with/without -a?

Thank you for your answer

ADD REPLY
0
Entering edit mode

Do not add an answer unless you're answering your original question. What you're doing here is adding more information, which you should do by editing your original post.

I'll do what's needed for you now, but please be more careful in the future.

ADD REPLY
0
Entering edit mode

The tool mentions you need the input file in 12 format but errors out saying it needs them in 01 format? You mention you recoded in 01 format, and then you say you recoded in 12 format, which is it? Please edit you question and add the exact command you used. Also, try your command with a -a only if your data is 01 recoded.

ADD REPLY

Login before adding your answer.

Traffic: 2480 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6