mhguo1 / TRAPD

Burden testing against public controls
MIT License
50 stars 32 forks source link

Bug reported #3

Closed CancerGenome closed 5 years ago

CancerGenome commented 5 years ago

Hi Guo,

Thanks for your software. It's very helpful in my project. I am writing to report potential bugs in both count_control.py and count_cases.py. 1) count_case.py: Line 154 : if options.snpformat=="VCF":

It seems like the default option should be VCFID. I have tried this command line: "python count_case.py -s test.out.txt -o counts.txt -v test.ihh.vcf.gz" and print all the SNPID. Unexpectedly, the snpids are CHRPOSREFALT format. Same problem was observed in count_control.py.

2) count_case.py: Line 177: outfile.write(line_s[0]+"\t"+str(counts[0])+"\t"+str(counts[1])+"\t"+str(counts[2])+'\n')

I also realized that count_case.py gave you only four columns, rather than five.

mhguo1 commented 5 years ago

Hi, glad you found our work helpful and thanks for catching these bugs! Both of them should be fixed now. Please let me know if you have any additional issues or suggestions.

mhguo1 commented 5 years ago

Hi Wang, I'm glad you found our work helpful and thanks for catching these bugs! Both of them should be fixed now. Please let me know if you have any additional issues or suggestions.

Best, Mike

On Jan 4, 2019, at 4:25 PM, Wang Yu notifications@github.com wrote:

Hi Guo,

Thanks for your software. It's very helpful in my project. I am writing to report a potential bug in both count_control.py and count_cases.py.

Line 154 : if options.snpformat=="VCF":

It seems like the default option should be VCFID. If I print the snpid when using this command line "python count_case.py -s test.out.txt -o counts.txt -v test.ihh.vcf.gz", the snpid is still CHRPOSREFALT format.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mhguo1/TRAPD/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/APa9tRmJ2u4FFYBXS_Jzu2MjUgvvOwWgks5u_8a3gaJpZM4ZtkSj.