Open ZyRose1 opened 1 year ago
I have the same problem, have you solved it?
SNP ,not “SNP”,No double quotation marks
I have the same problem, have you solved it? have you solved the problem?
SNP ,not “SNP”,No double quotation marks
I removed the double quotation marks, the error still existed. How to solve the problem? Many thanks.
@731104 You have specified --snp snpid
. You need to ensure that the column header matches the argument.
@731104 You have specified
--snp snpid
. You need to ensure that the column header matches the argument. Many thanks again!
Call: ./munge_sumstats.py \ --signed-sumstats beta,0 \ --out ./result/LPA \ --merge-alleles ./reference/w_hm3.snaplist \ --chunksize 500000 \ --a1 alt \ --a2 ref \ --snp rsid \ --sumstats ./sample/lpa.txt
ERROR converting summary statistics:
Traceback (most recent call last): File "./munge_sumstats.py", line 627, in munge_sumstats raise ValueError('Could not find {C} column.'.format(C=c)) ValueError: Could not find SNP column.
Conversion finished at Tue Jul 9 12:48:40 2024
Total time elapsed: 0.01s
I also have met this problem even I have specified --snp rsid
, What's the best way to fix this?
@xzt199610 It is not possible to answer your question without seeing the first line of the input file ./sample/lpa.txt
@aksarkar This is several rows of my data. Many thanks.
rsid,bp,ref,alt,se,beta,pval,N rs1444281458,10485,G,A,0.0380333,-0.0296248,2.2E-01,174301 rs534229142,10511,G,A,0.0634967,-0.0156338,8.5E-01,174301 rs1387993806,10580,G,T,0.0512324,-0.0179897,9.7E-01,174301 rs1401057884,10705,A,G,0.0546404,0.0531506,2.2E-01,174301
And I have tried an example of LDSC. I found this demo file coded by unix. I tried to convert my data file into this style. But the same error appeared again. I hope you can solve this problem. It is grateful for your help. @aksarkar
@xzt199610 The file needs to be whitespace delimited, not comma-delimited. Replace the commas by tabs or single spaces.
@aksarkar Grateful for your help. I have solved the problem as you advised. Many thanks again.
(ldsc) python munge_sumstats.py \
ERROR converting summary statistics:
Traceback (most recent call last): File "munge_sumstats.py", line 627, in munge_sumstats raise ValueError('Could not find {C} column.'.format(C=c)) ValueError: Could not find SNP column.
Conversion finished at Fri Mar 24 11:30:21 2023 Total time elapsed: 0.0s Traceback (most recent call last): File "munge_sumstats.py", line 745, in
munge_sumstats(parser.parse_args(), p=True)
File "munge_sumstats.py", line 627, in munge_sumstats
raise ValueError('Could not find {C} column.'.format(C=c))
ValueError: Could not find SNP column.