Skip to content

compute_trace.py confuses -prefix and Ne? #42

@s7guan

Description

@s7guan

Hi,
I am running on SINGER 0.1.8 beta and running compute_trace.py for MCMC convergence diagnostics. I noticed that when I run the following and would got an error message like this:

python /n/home10/sguan/SINGER-0.1.8-beta/SINGER//SINGER/compute_trace.py -prefix melp_Hmel218003o_optix2new -m 2.9e-9 -start 0 -end 99 -outpiut test
usage: compute_trace.py [-h] [-prefix PREFIX] [-m M] [-start_index START_INDEX] -end_index END_INDEX -output_filename
                        OUTPUT_FILENAME
compute_trace.py: error: argument -prefix: invalid float value: 'melp_Hmel218003o_optix2new'

I am inclined to think there is some code error when the .py script is written as it seems to suggest -prefix is taking Ne as input:

python /n/home10/sguan/SINGER-0.1.8-beta/SINGER/SINGER/compute_trace.py -h
usage: compute_trace.py [-h] [-prefix PREFIX] [-m M] [-start_index START_INDEX] -end_index END_INDEX -output_filename
                        OUTPUT_FILENAME

Compute traces for MCMC samples from SINGER.

options:
  -h, --help            show this help message and exit
  -prefix PREFIX        Effective population size.
  -m M                  Mutation rate.
  -start_index START_INDEX
                        The start index of the ARG sample
  -end_index END_INDEX  The end index of the ARG sample
  -output_filename OUTPUT_FILENAME
                        Output filename of the MCMC traces.

Do you think it is a copy paste error when you were writing the functions? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions