Skip to content

plotIdentities_EM.R minimum frequency not working as intended #78

@7Koris

Description

@7Koris

I have found that the minimum frequency command line argument is not being cast to a numeric type, and as a result when the following comparison is made:

if(iFreq >= minimumPlotFreq)
the minimumPlotFreq is not treated numerically. This will allow taxonIDs to be plotted which have a frequency below the minimum.

I made a run of the program with a minimumPlotFreq of 0.0001 and taxonIDs with frequencies well below that were allowed to be plotted. The minimumPlotFreq itself was "0.0001" instead of 0.0001.

I believe the following change should fix the issue:
minimumPlotFreq <- as.double(args[[2]])

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