Skip to content

Errors when using data from local files #22

@mardissino

Description

@mardissino

I am trying to use the package while using data from local files (imported and harmonised with TwoSampleMR). I am successfully detecting outliers (4 in total), and candidate traits associated with outliers at p < 5e-08 (189 in total). However, when I get to extracting and harmonising, I get this error message when harmonising:

Error in check_required_columns(outcome_dat, "outcome") :
The following required columns are missing from outcome: SNP, id.outcome, outcome, beta.outcome, se.outcome, effect_allele.outcome, other_allele.outcome

I note that in x$output, it has successfully extracted "candidate_instruments" and "exposure_candidate" but not "candidate_outcome" and "candidate_exposure" - these two are missing from x$output. Is this because of the local origin of the data? Is there any way to get around this or does the data have to come from MR-Base strictly?

Thank you in advance,

MA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions