SNPhylo Error Help: there is no SNP and Na/NaN arguement
1
1
Entering edit mode
7.7 years ago
N Smith ▴ 10

Hi All,

I'm trying to run snphylo on a VCF file. However, i keep getting the error

Removing 2120285 non-autosomal SNPs
Error in snpgdsLDpruning(genofile, ld.threshold = ld.threshold, maf = maf.threshold,  : 
  There is no SNP!
Execution halted

I added the line "-autosome.only=FALSE" and got a new error:

SNP pruning based on LD:
    Sliding window: 500000 basepairs, Inf SNPs
    |LD| threshold: 0.1
Error in opt$autosome.start:opt$autosome.end : NA/NaN argument
Calls: snpgdsLDpruning -> %in% -> match
Execution halted

How do I fix?

snphylo tree VCF phylogenetic • 2.5k views
ADD COMMENT
0
Entering edit mode
7 months ago
Varvara • 0

I have a similar problem and for me, autosome.only=F has worked. Can you show the whole code that you uploaded?

ADD COMMENT

Login before adding your answer.

Traffic: 2813 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