Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single SNP Weights Break FUSION.post_process.R #62

Open
travismize opened this issue Aug 2, 2023 · 0 comments
Open

Single SNP Weights Break FUSION.post_process.R #62

travismize opened this issue Aug 2, 2023 · 0 comments

Comments

@travismize
Copy link

Hello,

I have been building single eQTL weights and have noticed that this breaks the FUSION.post_process.R script in multiple places. This is due to datatype changes where matrices are coerced to vectors. For example, this line:

wgt.matrix = wgt.matrix[m.keep,]

will be coerced from a matrix to a vector when m.keep has a length of one. This will then cause the script to error out at these lines:

wgt.matrix[qc$flip,] = -1 * wgt.matrix[qc$flip,]
ge_g.matrix[,i] = cur.genos %*% wgt.matrix[ , mod ]

Currently, I have made edits to this script to have it run successfully, but I would like to request the ability to run FUSION.post_process.R with weights that consist of a single SNP.

Best,
-Travis Mize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant