Skip to content

How to make Manhattan with chromosome at LFMM results #8

@sekhwal

Description

@sekhwal

Hi,
I am following the tutorial (https://bcm-uga.github.io/lfmm/articles/lfmm) for lfmm analysis. In my analysis, I am using .raw file as genotype and a phenotype file.

Input file: gi.lfmm <- lfmm_ridge(Y=gen.imp, X=pred.PC1, K=K).

Finally, I am using following command to make a Manhattan plot. However, I am not getting how to categories SNPs at different chromosome (total 11). Please advise.

plot(-log10(pvalues),
pch = 19,
cex = .2,
xlab = "SNP", ylab = "-Log P",
col = "grey")
manhattan2

Current result:

manhattan

Expected Manhattan Plot:

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