Skip to content

histogram limits when query results in only one structure #87

@eszter137

Description

@eszter137

When the query finds more than 1 structures, it prints a histogram that I'd expect; however, with only one structure it prints empty bins that are not consistent with the query (e.g. having larger distance than specified in the query below). Maybe the histogram could have the same upper limit as specified by the query or a smaller one.
Query resulting 2 structures:

$ abcd summary -q "dXX_min<1.75" -p dXX_min
dXX_min  count: 3 min:  1.7060e+00 med:  1.7323e+00 max:  1.7468e+00 std:  1.8655e-02 var: 3.4800e-04
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉                     1 [ 1.7060e+00,      1.7101)
                                         0 [ 1.7101e+00,      1.7141)
                                         0 [ 1.7141e+00,      1.7182)
                                         0 [ 1.7182e+00,      1.7223)
                                         0 [ 1.7223e+00,      1.7264)
                                         0 [ 1.7264e+00,      1.7305)
                                         0 [ 1.7305e+00,      1.7345)
                                         0 [ 1.7345e+00,      1.7386)
                                         0 [ 1.7386e+00,      1.7427)
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 2 [ 1.7427e+00,      1.7468)

Query resulting 1 structure:

$ abcd summary -q "dXX_min<1.74" -p dXX_min
dXX_min  count: 1 min:  1.7060e+00 med:  1.7060e+00 max:  1.7060e+00 std:  0.0000e+00 var: 0.0000e+00
                                         0 [ 1.2060e+00,      1.3060)
                                         0 [ 1.3060e+00,      1.4060)
                                         0 [ 1.4060e+00,      1.5060)
                                         0 [ 1.5060e+00,      1.6060)
                                         0 [ 1.6060e+00,      1.7060)
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1 [ 1.7060e+00,      1.8060)
                                         0 [ 1.8060e+00,      1.9060)
                                         0 [ 1.9060e+00,      2.0060)
                                         0 [ 2.0060e+00,      2.1060)
                                         0 [ 2.1060e+00,      2.2060)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions