alachins / sweed

Likelihood-based Selective Sweep Detection
GNU General Public License v3.0
35 stars 6 forks source link

ERROR: Invalid argument -threads #8

Closed Zhuxitong closed 5 years ago

Zhuxitong commented 5 years ago

When I run the following command, I got the error: Invalid argument -threads

~/softwares/population_analysis/SweeD_v3.2.1_Linux/SweeD-P -name chr7 -input Cul_Wild_1529lines.chr7.vcf -grid 300 -threads 20

SweeD-P is successfully complied and could display help message. Why can't it recognize this parameter?

alachins commented 5 years ago

Hi there, SweeD is currently at version 4.0.0. Also you need to clean all the .o files before compiling. Try make clean and then make again to fix this. Best regards, Nikos

On Fri, May 10, 2019 at 9:40 AM Zhu xitong notifications@github.com wrote:

When I run the following command, I got the error: Invalid argument -threads

~/softwares/population_analysis/SweeD_v3.2.1_Linux/SweeD-P -name chr7 -input Cul_Wild_1529lines.chr7.vcf -grid 300 -threads 20

SweeD-P is successfully complied and could display help message. Why can't it recognize this parameter?

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

-- Nikolaos Alachiotis

Zhuxitong commented 5 years ago

Hi there, SweeD is currently at version 4.0.0. Also you need to clean all the .o files before compiling. Try make clean and then make again to fix this. Best regards, Nikos On Fri, May 10, 2019 at 9:40 AM Zhu xitong @.***> wrote: When I run the following command, I got the error: Invalid argument -threads ~/softwares/population_analysis/SweeD_v3.2.1_Linux/SweeD-P -name chr7 -input Cul_Wild_1529lines.chr7.vcf -grid 300 -threads 20 SweeD-P is successfully complied and could display help message. Why can't it recognize this parameter? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#8>, or mute the thread https://github.com/notifications/unsubscribe-auth/AALKWCRS2UW6CUP4CULUS5LPUUKHPANCNFSM4HMAJA4A . -- Nikolaos Alachiotis

Thank you for you quick reply. I downloaded version and make, this error still occured. Later I realized that I first make -f Makefile.gcc to get SweeD, later I make -f Makefile.PTHREADS.gcc to get SweeD-P.

The problem is excatly here, if I got SweeD and then compiled to get SweeD-P, this would cause an error. So I cleaned everything and complied SweeD-P ONLY, -thread can be used.