mbend: an R package for bending non-positive-definite symmetric matrices to positive-definite.

IF 2.9 Q2 Biochemistry, Genetics and Molecular Biology
Mohammad Ali Nilforooshan
{"title":"mbend: an R package for bending non-positive-definite symmetric matrices to positive-definite.","authors":"Mohammad Ali Nilforooshan","doi":"10.1186/s12863-020-00881-z","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>R package mbend was developed for bending symmetric non-positive-definite matrices to positive-definite (PD). Bending is a procedure of transforming non-PD matrices to PD. The covariance matrices used in multi-trait best linear unbiased prediction (BLUP) should be PD. Two bending methods are implemented in mbend. The first is an unweighted bending with small positive values in a descending order replacing negative eigenvalues (LRS14), and the second method is a weighted (precision-based) bending with a custom small positive value (ϵ) replacing smaller eigenvalues (HJ03). Weighted bending is beneficial, as it relaxes low precision elements to change and it reduces or prohibits the change in high precision elements. Therefore, a weighted version of LRS14 was developed in mbend. In cases where the precision of matrix elements is unknown, the package provides an unweighted version of HJ03. Another unweighted bending method (DB88) was tested, by which all eigenvalues are changed (eigenvalues less than ϵ replaced with 100 × ϵ), and it is originally designed for correlation matrices.</p><p><strong>Results: </strong>Different bending procedures were conducted on a 5 × 5 covariance matrix (V), V converted to a correlation matrix (C) and an ill-conditioned 1000 × 1000 genomic relationship matrix (G). Considering weighted distance statistics between matrix elements before and after bending, weighting considerably improved the bending quality. For weighted and unweighted bending of V and C, HJ03-4 (HJ03, ϵ = 10<sup>-4</sup>) performed the best. HJ03-2 (HJ03, ϵ = 10<sup>-2</sup>) ranked better than LRS14 for V, but not for C. Though the differences were marginal, LRS14 performed the best for G. DB88-4 (DB88, ϵ = 10<sup>-4</sup>) was used for unweighted bending and it ranked the last. This method could perform considerably better with a lower ϵ.</p><p><strong>Conclusions: </strong>R package mbend provides necessary tools for transforming symmetric non-PD matrices to PD, using different methods and parameters. There were benefits in both weighted bending and small positive values in a descending order replacing negative eigenvalues. Thus, weighted LRS14 was implemented in mbend. Different bending methods might be preferable for different matrices, depending on the matrix type (covariance vs. correlation), number and the magnitude of negative eigenvalues, and the matrix size.</p>","PeriodicalId":9197,"journal":{"name":"BMC Genetics","volume":" ","pages":"97"},"PeriodicalIF":2.9000,"publicationDate":"2020-09-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1186/s12863-020-00881-z","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"BMC Genetics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1186/s12863-020-00881-z","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"Biochemistry, Genetics and Molecular Biology","Score":null,"Total":0}
引用次数: 5

Abstract

Background: R package mbend was developed for bending symmetric non-positive-definite matrices to positive-definite (PD). Bending is a procedure of transforming non-PD matrices to PD. The covariance matrices used in multi-trait best linear unbiased prediction (BLUP) should be PD. Two bending methods are implemented in mbend. The first is an unweighted bending with small positive values in a descending order replacing negative eigenvalues (LRS14), and the second method is a weighted (precision-based) bending with a custom small positive value (ϵ) replacing smaller eigenvalues (HJ03). Weighted bending is beneficial, as it relaxes low precision elements to change and it reduces or prohibits the change in high precision elements. Therefore, a weighted version of LRS14 was developed in mbend. In cases where the precision of matrix elements is unknown, the package provides an unweighted version of HJ03. Another unweighted bending method (DB88) was tested, by which all eigenvalues are changed (eigenvalues less than ϵ replaced with 100 × ϵ), and it is originally designed for correlation matrices.

Results: Different bending procedures were conducted on a 5 × 5 covariance matrix (V), V converted to a correlation matrix (C) and an ill-conditioned 1000 × 1000 genomic relationship matrix (G). Considering weighted distance statistics between matrix elements before and after bending, weighting considerably improved the bending quality. For weighted and unweighted bending of V and C, HJ03-4 (HJ03, ϵ = 10-4) performed the best. HJ03-2 (HJ03, ϵ = 10-2) ranked better than LRS14 for V, but not for C. Though the differences were marginal, LRS14 performed the best for G. DB88-4 (DB88, ϵ = 10-4) was used for unweighted bending and it ranked the last. This method could perform considerably better with a lower ϵ.

Conclusions: R package mbend provides necessary tools for transforming symmetric non-PD matrices to PD, using different methods and parameters. There were benefits in both weighted bending and small positive values in a descending order replacing negative eigenvalues. Thus, weighted LRS14 was implemented in mbend. Different bending methods might be preferable for different matrices, depending on the matrix type (covariance vs. correlation), number and the magnitude of negative eigenvalues, and the matrix size.

Abstract Image

mbend:将非正定对称矩阵弯曲成正定的R包。
背景:开发了用于对称非正定矩阵向正定矩阵弯曲的R包mbend。弯曲是将非PD矩阵转化为PD矩阵的过程。多性状最优线性无偏预测(BLUP)中使用的协方差矩阵应为PD。在mbend中实现了两种弯曲方法。第一种方法是以降序的小正值代替负特征值的非加权弯曲(LRS14),第二种方法是加权(基于精度的)弯曲,用自定义的小正值(御柱)代替较小的特征值(HJ03)。加权弯曲是有益的,因为它放松了低精度元件的变化,减少或阻止了高精度元件的变化。因此,在mbend中开发了LRS14的加权版本。在矩阵元素的精度未知的情况下,该包提供了一个未加权的HJ03版本。我们测试了另一种非加权弯曲法(DB88),通过这种方法,所有特征值都被改变(特征值小于λ被100 × λ取代),它最初是为相关矩阵设计的。结果:在5 × 5协方差矩阵(V)上进行不同的弯曲处理,V转换为相关矩阵(C)和病态1000 × 1000基因组关系矩阵(G)。考虑到弯曲前后矩阵元素之间的加权距离统计,加权后弯曲质量显著提高。对于V和C的加权和非加权弯曲,HJ03-4 (HJ03, ε = 10-4)表现最好。HJ03-2 (HJ03, ε = 10-2)对V的评价优于LRS14,但对c的评价不如LRS14。虽然差异不大,但LRS14对g的评价最好。这种方法可以在更低的λ下表现得更好。结论:R包mbend提供了将对称非PD矩阵转换为PD的必要工具,使用不同的方法和参数。加权弯曲和小正值降序取代负特征值都有好处。因此,在mbend中实现了加权LRS14。不同的弯曲方法可能更适合于不同的矩阵,这取决于矩阵类型(协方差还是相关)、负特征值的数量和大小以及矩阵大小。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
BMC Genetics
BMC Genetics 生物-遗传学
CiteScore
4.30
自引率
0.00%
发文量
77
审稿时长
4-8 weeks
期刊介绍: BMC Genetics is an open access, peer-reviewed journal that considers articles on all aspects of inheritance and variation in individuals and among populations.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信