Skip to content

Potential bug in SPiP_functions.r #12

@Krakada

Description

@Krakada

Hi @raphaelleman ,

I'm under the impression that these 2 lines should be removed:

probaSSPhysioMut <- tmpTableSeqPhy$proba[1]
classProbaSSPhysioMut <- tmpTableSeqPhy$classProba[1]

as they are trying to fill probaSSPhysioMut and classProbaSSPhysioMut from tmpTableSeqPhy instead of tmpTableSeqPhyMut.

probaSSPhysioMut and classProbaSSPhysioMut seem to be already properly set slightly below:

if(nrow(tmpTableSeqPhyMut)>0){
probaSSPhysioMut <- tmpTableSeqPhyMut$proba[1]
classProbaSSPhysioMut <- tmpTableSeqPhyMut$classProba[1]

but that will overwrite them only when nrow(tmpTableSeqPhyMut)>0, if it's not the case, the 2 (wrong?) values set l.1167 to 1168 will remain and have the exact same value as probaSSPhysio and classProbaSSPhysio.

Could you confirm if it's indeed a bug? I could open a Pull request to remove these 2 lines if it helps.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions