[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-703134-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-703134-en":130,"doc-similar-703134":165},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","spatial-principal-component-analysis-spca-tutorial-using-adegenet","Spatial Principal Component Analysis (sPCA) Tutorial - Using adegenet","","Tutorial for spatial principal component analysis (sPCA) using the adegenet package in R. The method identifies spatial genetic patterns by complementing classical PCA with a criterion that integrates both spatial structure, via Moran’s I, and genetic variability through allele frequency data. The guide first demonstrates sPCA on a simulated dataset and then applies it to empirical chamois genetic data from the Bauges mountains, illustrating mapping, multivariate testing, and graphical interpretation.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/spatial-principal-component-analysis-spca-tutorial-using-adegenet/703134/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/spatial-principal-component-analysis-spca-tutorial-using-adegenet/703134.png","ImageObject",300,407,{"name":42,"@type":43},"Aran","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-22","2026-11-13",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What problem does sPCA address compared with classical PCA?","Question",{"text":62,"@type":63},"sPCA complements classical PCA by being more powerful for retrieving non-trivial spatial genetic patterns. It explicitly targets spatial structure together with genetic variability.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What inputs are used in the sPCA formulation?",{"text":67,"@type":63},"sPCA uses a matrix of relative allele frequencies X, where rows represent entities and columns represent alleles. Spatial information is encoded in a spatial weighting matrix L derived from spatial proximity among entities.",{"name":69,"@type":60,"acceptedAnswer":70},"How does sPCA measure spatial structure and genetic variability?",{"text":71,"@type":63},"Moran’s I measures spatial structure for a centred variable x, while sPCA combines variance and autocorrelation using C(x) = var(x)I(x). The criterion uses this combination to find allele linear combinations with maximal-to-minimal values of C.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},703134,1794561131,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":102,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":143,"preview_page_count":96,"preview_urls":144},137455076865,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","A tutorial for the spatial Analysis of Principal Components (sPCA) using adegenet 2.0.0  \nThibaut Jombart 􀀃  \nImperial College London  \nMRC Centre for Outbreak Analysis and Modelling  \nJune 23, 2015  \nAbstract  \nThis vignette provides a tutorial for the spatial analysis of principal components (sPCA, [1]) using the adegenet package [2] for the R software [3] . sPCA is 􀀌rst illustrated using a simple simulated dataset, and then using empirical data of Chamois (Rupicapra rupicapra) from the Bauges mountains (France) . In particular, we illustrate how sPCA complements classical PCA by being more powerful for retrieving non-trivial spatial genetic patterns.  \n􀀃 tjombart@imperial .ac .uk  \nContents  \n1 Introduction 3  \n1.1 Rationale of sPCA ................................ 3  \n1.2 The spca function ................................ 4  \n1.3 Contents of a spca object ............................ 9  \n1.4 Graphical display of spca results ........................ 13  \n2 Case study: spatial genetic structure of the chamois in the Bauges mountains 25  \n2.1 An overview of the data ............................. 26  \n2.2 Summarising the genetic diversity ........................ 28  \n2.3 Mapping and testing PCA results ........................ 35  \n2.4 Multivariate tests of spatial structure ...................... 42  \n2.5 Spatial Principal Component Analysis ..................... 43  \n1 Introduction  \nThis tutorial goes through the spatial Principal Component Analysis (sPCA, [1]), a multivariate method devoted to the identi􀀌cation of spatial genetic patterns. The purpose of this tutorial is to provide guidelines for the application of sPCA as well as to illustrate its usefulness for the investigation of spatial genetic patterns. After brie􀀍y going through the rationale of the method, we introduce the di􀀋erent tools implemented for sPCA inadegenet. This technical overview is then followed by the analysis of an empirical dataset which illustrates the advantage of sPCA over classical PCA for investigating spatial patterns.  \n1.1 Rationale of sPCA  \nMathematical notations used in this tutorial are identical to the original publication [1] . The sPCA analyses a matrix of relative allele frequencies X which contains genotypes or populations (later refered to as 'entities') in rows and alleles in columns. Spatial information is stored inside a spatial weighting matrix L which contains positive terms corresponding to some measurement (often binary) of spatial proximity among entities. Most often, these terms can be derived from a connection network built upon a given algorithm (for instance, pp.752-756 in [4]) . This matrix is row-standardized (i.e., each of its rows sums to one), and all its diagonal terms are zero. L can be used to compute the spatial autocorrelation of a given centred variable x (i. e. , with mean zero) with n observations (x 2 Rn ) using Moran's I [5 , 6 , 7]:  \nxTLx  \nI (x) = (1)  \nxTx  \nIn the case of genetic data, x contains frequencies of an allele. Moran's I can be used to measure spatial structure in the values of x: it is highly positive when values of x observed at neighbouring sites tend to be similar (positive spatial autocorrelation, referred to as global structures), while it is strongly negative when values of x observed at neighbouring sites tend to be dissimilar (negative spatial autocorrelation, referred to as local structures) .  \nHowever, since it is standardized by the variance of x, Moran's index measures only spatial structures and not genetic variability. The sPCA de􀀌nes the following function to measure both spatial structure and variability in x:  \n1 T  \nC (x) = var(x)I (x) = nx Lx (2)  \nC (x) is highly positive when x has a large variance and exhibits a global structure; conversely, it is largely negative when x has a high variance and displays a local structure. This function is the criterion used in sPCA, which 􀀌nds linear combinations of the alleles of X (denoted Xv) decomposing C from its maximum to","cbCaipqtH0y3U97S","https://ap.wps.com/l/cbCaipqtH0y3U97S","pdf",1179856,"English","# Introduction\n## Rationale of sPCA\n## The spca function\n## Contents of a spca object\n## Graphical display of spca results\n# Case study: spatial genetic structure of the chamois in the Bauges mountains\n## An overview of the data\n## Summarising the genetic diversity\n## Mapping and testing PCA results\n## Multivariate tests of spatial structure\n## Spatial Principal Component Analysis","[{\"question\":\"What problem does sPCA address compared with classical PCA?\",\"answer\":\"sPCA complements classical PCA by being more powerful for retrieving non-trivial spatial genetic patterns. It explicitly targets spatial structure together with genetic variability.\"},{\"question\":\"What inputs are used in the sPCA formulation?\",\"answer\":\"sPCA uses a matrix of relative allele frequencies X, where rows represent entities and columns represent alleles. Spatial information is encoded in a spatial weighting matrix L derived from spatial proximity among entities.\"},{\"question\":\"How does sPCA measure spatial structure and genetic variability?\",\"answer\":\"Moran’s I measures spatial structure for a centred variable x, while sPCA combines variance and autocorrelation using C(x) = var(x)I(x). The criterion uses this combination to find allele linear combinations with maximal-to-minimal values of C.\"}]","Spatial Principal Component Analysis (sPCA) Tutorial - Using adegenet | PDF",126,[145,149,153,157,161],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/06cbf4d1b1ea8a8776309463221f81c4.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/c2cb91f8eb9d9615713fb5c61032fdfb.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/468724955bb6b25123af192405ceaf4f.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/347c754b82bd838bfa55188d05c43f94.webp",980,1268,{"page_no":96,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/d510efff644a38f368d9d08b9abfec47.webp",979,1267,{"list":166,"token":11},[167,174,181,188,195,202,209,216,223,230],{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":172,"category_name":29,"create_tm":173},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=LQkGkAZgPemyuYj%2B5EGx43gsDjs%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",914,1785472614,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":29,"create_tm":180},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=TK1BH53vs7MEiaOzpEfjecLPOOw%3D","xnx-universal-transmitter-installation-manual",856,1776135954,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":29,"create_tm":187},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=8uVos35Lb9vvE9XrI9ZBMOLdLSw%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":29,"create_tm":194},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=zlQ1SXVQihCAOba8oTxuVeojz6M%3D","free-fire-proxy-server",565,1776135932,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":29,"create_tm":201},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=BqfpsD7BXtQYVWs3q2NJRza2vTg%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":29,"create_tm":208},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=O17xP23A849SCdb9vEm4srVk5fM%3D","tiktok-content-tricks-from-0-to-fyp",492,1776338393,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":214,"category_name":29,"create_tm":215},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=rFnFFN6I2m%2BhwK%2FtWXqdNmXCZrI%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":29,"create_tm":222},14249,"EW 101: A First Course in Electronic Warfare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699258216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=CzbwTyuyZaIcJcKiolnBQO3iy9M%3D","ew-101-a-first-course-in-electronic-warfare",438,1776558348,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":29,"create_tm":229},238737,"Spectrum Channel List 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229894154298/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=CEhK%2F2333eoq0y8744lPWltmZ88%3D","spectrum-channel-list-2026",436,1789139284,{"doc_id":22,"doc_title":231,"file_type":137,"home_preview_img_url":232,"slug":233,"view_count":234,"category_name":29,"create_tm":235},"WPS Office PDF Quick Start Guide: AI-Powered","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229689306536/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113079&Signature=jHB1FdT1nDs5OWgh%2FIrNd99SoSA%3D","wps-office-pdf-quick-start-guide-ai-powered",372,1775804569]