Hi Jonathan,
I've checked, Phenotype targeted is coded as 1/2 in fam file, without missing values. And I don't apply any external phenotype data or covariates.
What confuses me more is when I use another base data instead of "converge" ,this error didn't occur.
As for debug,mode log, please see below,
[root@promote converge-MR_allSNP]# R --file=PRS.R -q --args plink /converge-MR_allSNP/plink_1.9_linux_160914 base /converge-MR_allSNP/converge target /converge-MR_allSNP/MRsample_all_SNP slower 0 sinc 0.01 supper 0.5 covary F debug.mode T
$plink
[1] "/converge-MR_allSNP/plink_1.9_linux_160914"
$base
[1] "/converge-MR_allSNP/converge"
$target
[1] "/converge-MR_allSNP/MRsample_all_SNP"
$slower
[1] 0
$sinc
[1] 0.01
$supper
[1] 0.5
$covary
[1] "F"
$debug.mode
[1] "T"
#################################
#
# Check options match
#
#################################
[1] "Using current directory as working directory"
#################################
#
# Check base input format
#
#################################
#################################
#
# Remove Ambiguous SNPs
#
#################################
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to non_synonymous_snps_only.log.
Note: --noweb has no effect since no web check is implemented yet.
976 MB RAM detected; reserving 488 MB for main workspace.
10555 variants loaded from .bim file.
90 people (47 males, 43 females) loaded from .fam.
90 phenotype values loaded from .fam.
--exclude: 10555 variants remaining.
Using 1 thread.
Calculating allele frequencies... done.
Warning: 300 het. haploid genotypes present (see non_synonymous_snps_only.hh ).
Total genotyping rate is 0.980723.
10555 variants and 90 people pass filters and QC.
Among remaining phenotypes, 54 are cases and 36 are controls.
--make-bed to non_synonymous_snps_only.bed + non_synonymous_snps_only.bim +
non_synonymous_snps_only.fam ... done.
#################################
#
# Clump
#
#################################
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to cleaned_base.log.
Note: --noweb has no effect since no web check is implemented yet.
976 MB RAM detected; reserving 488 MB for main workspace.
10555 variants loaded from .bim file.
90 people (47 males, 43 females) loaded from .fam.
90 phenotype values loaded from .fam.
Using 1 thread.
Calculating allele frequencies... done.
Warning: 300 het. haploid genotypes present (see cleaned_base.hh ).
Total genotyping rate is 0.980723.
10555 variants and 90 people pass filters and QC.
Among remaining phenotypes, 54 are cases and 36 are controls.
--clump: 2437 clumps formed from 8675 top variants.
Results written to cleaned_base.clumped .
#################################
#
# Deal with strand flips if target is in genotype format and produce input files for polygenic scoring
#
#################################
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to flipped_target.log.
Note: --noweb has no effect since no web check is implemented yet.
976 MB RAM detected; reserving 488 MB for main workspace.
10555 variants loaded from .bim file.
90 people (47 males, 43 females) loaded from .fam.
90 phenotype values loaded from .fam.
--flip: 2 SNPs flipped.
Using 1 thread.
Calculating allele frequencies... done.
Warning: 300 het. haploid genotypes present (see flipped_target.hh ).
Total genotyping rate is 0.980723.
10555 variants and 90 people pass filters and QC.
Among remaining phenotypes, 54 are cases and 36 are controls.
--make-bed to flipped_target.bed + flipped_target.bim + flipped_target.fam ...
done.
#################################
#
# Polygenic scoring!
#
#################################
(C) 2005-2014 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to PROFILES.log.
Note: --noweb has no effect since no web check is implemented yet.
976 MB RAM detected; reserving 488 MB for main workspace.
10555 variants loaded from .bim file.
90 people (47 males, 43 females) loaded from .fam.
90 phenotype values loaded from .fam.
Using 1 thread.
Calculating allele frequencies... done.
Warning: 300 het. haploid genotypes present (see PROFILES.hh ).
Total genotyping rate is 0.980723.
10555 variants and 90 people pass filters and QC.
Among remaining phenotypes, 54 are cases and 36 are controls.
Warning: 2 lines skipped in --score file.
Warning: 2 lines skipped in --q-score-range data file.
--score: 50 ranges processed (1 empty range skipped).
Results written to PROFILES.*.profile.
#################################
#
# Regression Models
#
#################################
Regression Models: 10% Complete
Regression Models: 20% Complete
Regression Models: 30% Complete
Error in glm.fit(x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, :
NA/NaN/Inf in 'x'
Calls: summary ... with.default -> eval -> eval -> glm -> eval -> eval -> glm.fit
Execution halted
[root@promote converge-MR_allSNP]#