kr-colab / diploSHIC

feature-based deep learning for the identification of selective sweeps
MIT License
50 stars 14 forks source link

Error when making sweep training Windows #17

Closed SBNoor closed 5 years ago

SBNoor commented 5 years ago

I am trying to format the training set i.e. consolidate the training set into 5 files. However, instead of having 11 windows, I have 22 windows whereby window 10 and 11 would classify as sweep and rest of the windows as linked to a given sweep. The command tells me that 'sweepTrainingWindows' parameter can be a comma-separated list of windows. However, when I provide a comma-separated list of windows it raises an error.

screenshot 2019-02-12 at 10 23 40

The Command I enter is:

screenshot 2019-02-12 at 10 15 43

Could you please tell me why is the tool raising this error? Have I understood comma-separated list of windows in a wrong way?

andrewkern commented 5 years ago

Hi there. This error is arising because diploSHIC expects a single sweep window. In the example above you are passing it two windows 10,11 and it thus diploSHIC doesn't know what to do.

SBNoor commented 5 years ago

But doesn't the manual say that sweepTrainingWindows parameter can be a comma-separated list of windows?

andrewkern commented 5 years ago

sorry for the confusion. the code is written to be general to this case, but the implementation hasn't been used (as far as I know). Just use a single sweep window and it should go fine. Do your training simulations have more than one sweep within them?

SBNoor commented 5 years ago

Yes, I have more than one sweep. But I'll try simulating data with a single sweep. Thanks.