ksiewert / BetaScan

Genome-wide scan for balancing selection using beta statistic
27 stars 5 forks source link

chromosome information and beta score is none #21

Closed xixifa closed 11 months ago

xixifa commented 1 year ago

Hi I have two questions when I use the software.

  1. For the calculation of beta, if it is the whole genome, does it need to be calculated by chromosome? Because the output does not contain chromosome information, only location, should not be distinguishable? Or does this statistic just use the position, it doesn't need chromosome information?
  2. The following error occurred while running, some beta score in the output is NONE. How can I solve it? image

image

Thanks

ksiewert commented 11 months ago

Hello, thank you for your questions!

  1. You should run BetaScan on one chromosome at a time.
  2. Can you send me the portion of your input file that causes the None errors? You can either post it here or e-mail it.
xixifa commented 11 months ago

Thank you for your reply. The first image is the input file that I reported an error image The initial error was this second image,and there is no output after the problematic line,like 51482094. image Then I modified the script based on the error, the round function was removed, like third image. image So the result is finally printed, but the line in question shows None. image

ksiewert commented 11 months ago

Thank you! I don't see anything obviously wrong with the input file format, so I'll try to reproduce the error on my end. Could you send me the command you used to run BetaScan, so I know what parameters you used? If you could also send that section of the input file in a text format that would be helpful, so I can copy it into a text file.

xixifa commented 11 months ago

Thank you, I've solved the problem. As long as I run one chromosome at a time , there are no errors.