Skip to content

as.peakData() allows tibble inputs which breaks downstream functions (like compound_calcs() )  #10

@alecarmstrong

Description

@alecarmstrong

Hello! I have used your excellent package for exploring my FT-ICR-MS data sets without incident until I inadvertently tried assembling a new peakData object with tibbles instead of strictly using data frames. These were products of some preliminary filtering with dplyr functions and readr::read_table. Then as.peakData seemed happy to accept them as inputs and construct a peakData object. I ran compound_calcs and got an error reading "Error in [<-.data.frame(*tmp*, ai_ids, value = 0) : new columns would leave holes after existing columns". Modifying all the as.peakData inputs with as.data.frame() and rebuilding the peakData object worked fine, but it took a little while to figure out why it suddenly seemed like compound_calcs wasn't working. Thought you might be interested in case anyone else runs into this! Here's a quick console screenshot in case that helps illustrate.
ftmsRanalysis_issue_console_screenshot

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