szpiech / selscan

Haplotype based scans for selection
GNU General Public License v3.0
107 stars 33 forks source link

Alleles must be coded 0/1 only #85

Open huangl07 opened 2 years ago

huangl07 commented 2 years ago

hello xpehh users,how to understanc alleles must be coded 0/1 only?

does it means no missing in ref vcfs?

Chen-SHuangHui commented 2 years ago

I have this question, too. But I guess it means that the data must be biallelic.

szpiech commented 2 years ago

Yep, that’s correct.

-Zachary

Le ven. 17 juin 2022 à 11:34 AM, Chen Shuanghui @.***> a écrit :

I have this question, too. But I guess it means that the data must be biallelic.

— Reply to this email directly, view it on GitHub https://github.com/szpiech/selscan/issues/85#issuecomment-1158997619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAKRQWTLJFZ4BFCHWIDH6TVPSLI3ANCNFSM5ZBKQ7GA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

huangl07 commented 2 years ago

while I have already check my file , it is biallelic varaint

you may check the file ,thankyou sca10010-1.vcf.gz sca10010-2.vcf.gz

huangl07 commented 2 years ago

how ever when I filtered all missing variant, the error is gone!

I think there could be fixed ?

but why the calculated can not do with the missing allele?

szpiech commented 2 years ago

Hello,

Selscan does not currently support missing data entries. So you will need to either filter/impute your loci with missing data in order to run the program.

Zachary

Le dim. 19 juin 2022 à 9:40 PM, huangl07 @.***> a écrit :

how ever when I filtered all missing variant, the error is gone!

I think there could be fixed ?

but why the calculated can not do with the missing allele?

— Reply to this email directly, view it on GitHub https://github.com/szpiech/selscan/issues/85#issuecomment-1159875345, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAKRQXXDPHZUUJSSR5YDKTVP7DYTANCNFSM5ZBKQ7GA . You are receiving this because you commented.Message ID: @.***>

huangl07 commented 2 years ago

Thank you for your replay!

szpiech commented 1 year ago

Hello,

This is correct that missing data is not currently supported.

-Zachary

Le ven. 17 juin 2022 à 3:19 AM, huangl07 @.***> a écrit :

hello xpehh users,how to understanc alleles must be coded 0/1 only?

does it means no missing in ref vcfs?

— Reply to this email directly, view it on GitHub https://github.com/szpiech/selscan/issues/85, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAKRQRFPXCZR5X4AY4AZR3VPQRI5ANCNFSM5ZBKQ7GA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

original10012 commented 1 year ago

Can you share the filtered code?

This error still exists

original10012 commented 1 year ago

ERROR: Haplotypes from test1.vcf.gz and test2.vcf.gz do not have the same number of loci. Does that mean we need to keep the same number of loci

szpiech commented 1 year ago

Hello,

Yes this is correct, the two vcf (or other format) files you pass should have the same loci in each file.

-Zachary

Le jeu. 15 déc. 2022 à 9:23 AM, original10012 @.***> a écrit :

ERROR: Haplotypes from test1.vcf.gz and test2.vcf.gz do not have the same number of loci. Does that mean we need to keep the same number of loci

— Reply to this email directly, view it on GitHub https://github.com/szpiech/selscan/issues/85#issuecomment-1353172426, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAKRQXT6EG3PILR23E4MBDWNMSUXANCNFSM5ZBKQ7GA . You are receiving this because you commented.Message ID: @.***>

original10012 commented 1 year ago

Hello, Yes this is correct, the two vcf (or other format) files you pass should have the same loci in each file. -Zachary Le jeu. 15 déc. 2022 à 9:23 AM, original10012 @.> a écrit : ERROR: Haplotypes from test1.vcf.gz and test2.vcf.gz do not have the same number of loci. Does that mean we need to keep the same number of loci — Reply to this email directly, view it on GitHub <#85 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAKRQXT6EG3PILR23E4MBDWNMSUXANCNFSM5ZBKQ7GA . You are receiving this because you commented.Message ID: @.>

Thank you for your reply. I have successfully solved this problem.