{"id":59468,"date":"2024-06-17T08:06:47","date_gmt":"2024-06-17T00:06:47","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=59468"},"modified":"2024-06-17T08:06:47","modified_gmt":"2024-06-17T00:06:47","slug":"%e4%b8%80%e7%bd%91%e6%89%93%e5%b0%bd%ef%bc%81pca%ef%bc%8cumap%e5%92%8ctsne%e4%b8%89%e7%a7%8d%e9%99%8d%e7%bb%b4%e5%88%86%e6%9e%90-2","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=59468","title":{"rendered":"\u4e00\u7f51\u6253\u5c3d\uff01PCA\uff0cUMAP\u548ctSNE\u4e09\u79cd\u964d\u7ef4\u5206\u6790"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u4e00\u7f51\u6253\u5c3d\uff01PCA\uff0cUMAP\u548ctSNE\u4e09\u79cd\u964d\u7ef4\u5206\u6790\",\"time\":\"2023-08-06 19:01:05\",\"timeStamp\":\"1691319665\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247491051&#038;idx=3&#038;sn=ffe1dca63313d9bb163cea93a1246087&#038;chksm=cf7c8d2ef80b043829ff8903c00b4981773ff118131985ff52673e9c21f6af46d8e55f7994ef#rd\" target=\"_blank\" rel=\"noopener\">\u4e00\u7f51\u6253\u5c3d\uff01PCA\uff0cUMAP\u548ctSNE\u4e09\u79cd\u964d\u7ef4\u5206\u6790<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u82b1&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-08-06 19:01:05<\/em><\/div>\n<p><content><\/p>\n<div class=\"reprint\">\n<p>\u8f6c\u81ea\u516c\u4f17\u53f7\uff1a\u751f\u4fe1\u82b1<br \/><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkzODUxNjcwMA==&#038;mid=2247483955&#038;idx=1&#038;sn=11b068077ccfd71eb8ba20bbd7bd2f84\" target=\"_blank\" title=\"\u9605\u8bfb\u539f\u6587\" rel=\"noopener\">http:\/\/mp.weixin.qq.com\/s?__biz=MzkzODUxNjcwMA==&#038;mid=2247483955&#038;idx=1&#038;sn=11b068077ccfd71eb8ba20bbd7bd2f84<\/a><\/p>\n<\/div>\n<section style=\"font-size: 14px;margin-bottom: 24px;\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;background-color: rgb(65, 128, 216);\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;padding-left: 12px;\">\n<section style=\"text-align: justify;color: rgb(255, 255, 255);\" powered-by=\"xiumi.us\">\n<p><strong>\u70b9\u51fb\u84dd\u5b57 \u5173\u6ce8\u6211\u4eec<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\">\n<section style=\"justify-content: flex-start;display: flex;flex-flow: row;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: top;width: 34px;align-self: flex-start;flex: 0 0 auto;height: auto;overflow: hidden;margin-right: -17px;\">\n<section style=\"transform: rotateZ(60deg);\" powered-by=\"xiumi.us\">\n<section style=\"margin-top: 10px;margin-bottom: 10px;text-align: center;\">\n<section style=\"width: 100%;height: 5px;background-color: rgb(255, 255, 255);\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: 34px;align-self: flex-start;flex: 0 0 auto;height: auto;overflow: hidden;margin-right: -17px;\">\n<section style=\"transform: rotateZ(60deg);\" powered-by=\"xiumi.us\">\n<section style=\"margin-top: 10px;margin-bottom: 10px;text-align: center;\">\n<section style=\"width: 100%;height: 5px;background-color: rgb(201, 229, 70);\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: 34px;align-self: flex-start;flex: 0 0 auto;height: auto;overflow: hidden;\">\n<section style=\"transform: rotateZ(60deg);\" powered-by=\"xiumi.us\">\n<section style=\"margin-top: 10px;margin-bottom: 10px;text-align: center;\">\n<section style=\"width: 100%;height: 5px;background-color: rgb(255, 255, 255);\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p>\u4eca\u5929\u5c0f\u82b1\u60f3\u5229\u7528PCA\uff0cUMAP\u548ctSNE\u4e09\u79cd\u7b97\u6cd5\u5bf9\u540c\u4e00\u6570\u636e\u8fdb\u884c\u964d\u7ef4\u5206\u6790\uff0c\u6765\u6bd4\u8f83\u4e00\u4e0b\u4e09\u79cd\u65b9\u6cd5\u7684\u964d\u7ef4\u6548\u679c\uff0c\u5c0f\u82b1\u5c06\u901a\u8fc7\u8be5\u63a8\u6587\u4e3a\u5c0f\u4f19\u4f34\u4eec\u6f14\u793a\u5982\u4f55\u5229\u7528\u8fd9\u4e09\u79cd\u5206\u6790\u65b9\u6cd5\u8fdb\u884c\u964d\u7ef4\u5206\u6790\uff0c<br  \/><\/p>\n<p>\u6709\u9700\u8981\u5c0f\u4f19\u4f34\u53ef\u4ee5\u8ddf\u7740\u5c0f\u82b1\u7684\u6b65\u4f10\u5f00\u59cb\u4eca\u5929\u7684\u5b66\u4e60\u4e4b\u65c5\u55f7\uff01<\/p>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>1.\u4f55\u4e3aPCA\uff0cUMAP\u548ctSNE\u5206\u6790\uff1f<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p>PCA\u662f\u6700\u5e38\u7528\u7684\u7ebf\u6027\u964d\u7ef4\u65b9\u6cd5\uff0c\u901a\u8fc7\u67d0\u79cd\u7ebf\u6027\u6295\u5f71\uff0c\u5c06\u9ad8\u7ef4\u6570\u636e\u6620\u5c04\u5230\u4f4e\u7ef4\u7684\u7a7a\u95f4\u4e2d\u8868\u793a\uff0c\u5e76\u671f\u671b\u5728\u6240\u6295\u5f71\u7684\u7ef4\u5ea6\u4e0a\u6570\u636e\u7684\u65b9\u5dee\u6700\u5927\uff0c\u4ee5\u6b64\u4f7f\u7528\u8f83\u5c11\u7684\u6570\u636e\u7ef4\u5ea6\uff0c\u540c\u65f6\u4fdd\u7559\u4f4f\u8f83\u591a\u7684\u539f\u6570\u636e\u70b9\u7684\u7279\u6027\u3002t-SNE\u662f\u4e00\u79cd\u975e\u7ebf\u6027\u964d\u7ef4\u7b97\u6cd5\uff0c\u975e\u5e38\u9002\u7528\u4e8e\u9ad8\u7ef4\u6570\u636e\u964d\u7ef4\u52302\u7ef4\u6216\u80053\u7ef4\uff0c\u8fdb\u884c\u53ef\u89c6\u5316\uff0ct-SNE\u5177\u6709\u4e24\u5927\u4f18\u52bf\uff0c\u5bf9\u4e8e\u4e0d\u76f8\u4f3c\u7684\u70b9\uff0c\u7528\u4e00\u4e2a\u8f83\u5c0f\u7684\u8ddd\u79bb\u4f1a\u4ea7\u751f\u8f83\u5927\u7684\u68af\u5ea6\u6765\u8ba9\u8fd9\u4e9b\u70b9\u6392\u65a5\u5f00\u6765\uff0c\u8fd9\u79cd\u6392\u65a5\u53c8\u4e0d\u4f1a\u65e0\u9650\u5927\uff0c\u907f\u514d\u4e0d\u76f8\u4f3c\u7684\u70b9\u8ddd\u79bb\u592a\u8fdc\u3002UMAP\u53ef\u4ee5\u7528\u4e8e\u7c7b\u4f3c\u4e8et-SNE\u7684\u53ef\u89c6\u5316\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u4e00\u822c\u7684\u975e\u7ebf\u6027\u964d\u7ef4,\u4ee5\u4e0a\u5185\u5bb9\u5c31\u662f\u5c0f\u679c\u5bf9\u8fd9\u4e09\u79cd\u7b97\u6cd5\u539f\u7406\u7684\u7b80\u5355\u4ecb\u7ecd\uff0c\u63a5\u4e0b\u6765\u8ddf\u7740\u5c0f\u82b1\u5f00\u59cb\u4eca\u5929\u7684\u5b9e\u64cd\u5427\uff01<\/p>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>2.\u5b89\u88c5\u6240\u9700\u8981\u7684R \u5305<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">install.packages(\u201ctidyverse\u201d)<\/span><\/code><code><span class=\"code-snippet_outer\">install.packages(\u201cbroom\u201d)<\/span><\/code><code><span class=\"code-snippet_outer\">install.packages(\u201cumap\u201d)<\/span><\/code><code><span class=\"code-snippet_outer\">install.packages(\u201cRtsne\u201d)<\/span><\/code><code><span class=\"code-snippet_outer\">install.packages(\u201cggplot2\u201d)<\/span><\/code><\/pre>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>3.\u52a0\u8f7d\u9700\u8981\u7684R\u5305<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">library(tidyverse)<\/span><\/code><code><span class=\"code-snippet_outer\">library(broom)<\/span><\/code><code><span class=\"code-snippet_outer\">library(umap)<\/span><\/code><code><span class=\"code-snippet_outer\">library(Rtsne)<\/span><\/code><code><span class=\"code-snippet_outer\">library(ggplot2)<\/span><\/code><\/pre>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>4.\u8bfb\u53d6\u6570\u636e<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u6570\u636e\u7c7b\u578b\u5305\u62ec\u5b57\u7b26\u4e32\u7c7b\u578b\u548c\u6570\u503c\u578b\u7c7b\u578b\u3002<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">df&lt;-read.table(\u201ctest.txt\u201d,header=<span class=\"code-snippet__built_in\">T<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.375\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_cG6B845uzPPyU791CnpPgxaK2wlImw.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSY6wbcG48NZiboRfd6MhJTSGOiaXd4G2Fuh6ozVpiadUpIm7JPcG6B845uzPPyU791CnpPgxaK2wlImw\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"1080\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>5.#PCA\u964d\u7ef4\u5206\u6790<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">penguins &lt;- df %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">drop_na() %&gt;% <span class=\"code-snippet__comment\">#\u5220\u9664\u7f3a\u5931\u503c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">select(-year) <span class=\"code-snippet__comment\">#\u5220\u9664year\u8fd9\u4e00\u5217\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u4f7f\u7528prcomp()\u8fdb\u884cPCA<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#PCA\u524d\u5bf9\u6570\u503c\u578b\u6570\u636e\u8fdb\u884c\u6807\u51c6\u5316<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">pca_fit &lt;- penguins %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">select(where(<span class=\"code-snippet__built_in\">is.numeric<\/span>)) %&gt;% <span class=\"code-snippet__comment\">#\u9009\u62e9\u6570\u503c\u578b\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">scale() %&gt;% <span class=\"code-snippet__comment\">#\u6570\u636e\u8fdb\u884c\u6807\u51c6\u5316<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">prcomp() <span class=\"code-snippet__comment\">#prcomp\u51fd\u6570\u8fdb\u884cPCA\u5206\u6790<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">summary(pca_fit) <span class=\"code-snippet__comment\">#\u5bf9PCA\u5206\u6790\u7ed3\u679c\u8fdb\u884c\u7edf\u8ba1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">pca_fit %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">augment(penguins) %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">rename_at(vars(starts_with(<span class=\"code-snippet__string\">\".fitted\"<\/span>)),<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__built_in\">list<\/span>(~str_replace(.,<span class=\"code-snippet__string\">\".fitted\"<\/span>,<span class=\"code-snippet__string\">\"\"<\/span>))) %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(aes(x=PC1,<\/span><\/code><code><span class=\"code-snippet_outer\">y=PC2,<\/span><\/code><code><span class=\"code-snippet_outer\">color=species,<\/span><\/code><code><span class=\"code-snippet_outer\">shape=sex))+<\/span><\/code><code><span class=\"code-snippet_outer\">geom_point()+<\/span><\/code><code><span class=\"code-snippet_outer\">labs(x = <span class=\"code-snippet__string\">\"PC1\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">y = <span class=\"code-snippet__string\">\"PC2\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u4fdd\u5b58\u56fe\u7247<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">ggsave(<span class=\"code-snippet__string\">\"pca.pdf\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.9310793237971391\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_pBdWIyvT64KTxlCRZfzztRebhDp1XQ.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSY6wbcG48NZiboRfd6MhJTSGekUj8gx5GE2hGbDaTcQkqkXYpBdWIyvT64KTxlCRZfzztRebhDp1XQ\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"769\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>6.#UMAP\u964d\u7ef4\u5206\u6790<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">library(umap)<\/span><\/code><code><span class=\"code-snippet_outer\">theme_set(theme_bw(<span class=\"code-snippet__number\">18<\/span>))<\/span><\/code><code><span class=\"code-snippet_outer\">penguins &lt;- df%&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">drop_na() %&gt;% <span class=\"code-snippet__comment\">#\u53bb\u9664\u7a7a\u503c<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">select(-year)%&gt;% <span class=\"code-snippet__comment\">#\u5220\u9664year\u5217<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">mutate(ID=row_number()) <span class=\"code-snippet__comment\">#\u6dfb\u52a0\u65b0\u7684\u884c\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">penguins_meta &lt;- penguins %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">select(ID, species, island, sex) <span class=\"code-snippet__comment\">#\u7b5b\u9009\u8fd9\u4e09\u5217\u4fe1\u606f<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">set.seed(<span class=\"code-snippet__number\">142<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">umap_fit &lt;- penguins %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">select(where(<span class=\"code-snippet__built_in\">is.numeric<\/span>)) %&gt;% <span class=\"code-snippet__comment\">#\u9009\u62e9\u6570\u503c\u578b\u5217\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">column_to_rownames(<span class=\"code-snippet__string\">\"ID\"<\/span>) %&gt;% <span class=\"code-snippet__comment\">#\u5c06\u5217\u540d\u8f6c\u5316\u4e3a\u884c\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">scale() %&gt;% <span class=\"code-snippet__comment\">#\u5c06\u6570\u636e\u6807\u51c6\u5316<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">umap()<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u63d0\u53d6UMAP\u964d\u7ef4\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">umap_df &lt;- umap_fit$layout %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">as.data.frame()%&gt;% <span class=\"code-snippet__comment\">#\u5c06\u6570\u636e\u8f6c\u5316\u4e3a\u6570\u636e\u6846<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">rename(UMAP1=<span class=\"code-snippet__string\">\"V1\"<\/span>,<span class=\"code-snippet__comment\">#\u4fee\u6539\u5217\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">UMAP2=<span class=\"code-snippet__string\">\"V2\"<\/span>) %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">mutate(ID=row_number())%&gt;% <span class=\"code-snippet__comment\">#\u6dfb\u52a0\u65b0\u7684\u884c\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">inner_join(penguins_meta, by=<span class=\"code-snippet__string\">\"ID\"<\/span>) <span class=\"code-snippet__comment\">#\u5c06\u4e24\u4e2a\u6570\u636e\u8fdb\u884c\u5185\u8fde\u63a5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">umap_df %&gt;% head()<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u7ed8\u5236UMAP\u964d\u7ef4\u6563\u70b9\u56fe<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">umap_df %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(aes(x = UMAP1,<\/span><\/code><code><span class=\"code-snippet_outer\">y = UMAP2,<\/span><\/code><code><span class=\"code-snippet_outer\">color = species,<\/span><\/code><code><span class=\"code-snippet_outer\">shape = sex))+<\/span><\/code><code><span class=\"code-snippet_outer\">geom_point()+<\/span><\/code><code><span class=\"code-snippet_outer\">labs(x = <span class=\"code-snippet__string\">\"UMAP1\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">y = <span class=\"code-snippet__string\">\"UMAP2\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">subtitle = <span class=\"code-snippet__string\">\"UMAP plot\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">ggsave(<span class=\"code-snippet__string\">\"uma.pdf\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.9784656796769852\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/3_ECAZ6BLjAK0Wlm1hj0od3DicDX5TEw.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSY6wbcG48NZiboRfd6MhJTSGNibcv8EfyknYOcOecInqaVeoAicECAZ6BLjAK0Wlm1hj0od3DicDX5TEw\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"743\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;transform: translate3d(-15px, 0px, 0px);\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;vertical-align: middle;width: auto;min-width: 5%;flex: 0 0 auto;height: auto;align-self: center;\"><svg viewbox=\"0 0 1 1\" style=\"float:left;line-height:0;width:0;vertical-align:top;\"><\/svg><\/section>\n<section style=\"display: inline-block;vertical-align: middle;width: auto;align-self: center;flex: 0 0 auto;min-width: 5%;height: auto;background-color: rgb(129, 167, 211);padding: 13px;\">\n<section style=\"text-align: justify;color: rgb(19, 53, 102);font-size: 16px;padding-right: 12px;padding-left: 12px;\" powered-by=\"xiumi.us\">\n<p><strong>7.#tSNE\u964d\u7ef4\u5206\u6790<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"r\"><code><span class=\"code-snippet_outer\">library(Rtsne)<\/span><\/code><code><span class=\"code-snippet_outer\">theme_set(theme_bw(<span class=\"code-snippet__number\">18<\/span>))<\/span><\/code><code><span class=\"code-snippet_outer\">penguins &lt;- df %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">drop_na() %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">select(-year)%&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">mutate(ID=row_number())<\/span><\/code><code><span class=\"code-snippet_outer\">penguins_meta &lt;- penguins %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">select(ID,species,island,sex)<\/span><\/code><code><span class=\"code-snippet_outer\">set.seed(<span class=\"code-snippet__number\">142<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">tSNE_fit &lt;- penguins %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">select(where(<span class=\"code-snippet__built_in\">is.numeric<\/span>)) %&gt;%<span class=\"code-snippet__comment\">#\u7b5b\u9009\u6570\u636e\u7c7b\u578b\u662f\u6570\u503c\u578b\u7684\u5217<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">column_to_rownames(<span class=\"code-snippet__string\">\"ID\"<\/span>) %&gt;% <span class=\"code-snippet__comment\">#\u5c06\u5217ID\u6570\u636e\u8f6c\u6362\u4e3a\u884c\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">scale() %&gt;% <span class=\"code-snippet__comment\">#\u6570\u636e\u6807\u51c6\u5316<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">Rtsne() <span class=\"code-snippet__comment\">#\u8fdb\u884ctSNE\u5206\u6790<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u63d0\u53d6tSNE\u964d\u7ef4\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">tSNE_df &lt;- tSNE_fit$Y %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">as.data.frame() %&gt;% <span class=\"code-snippet__comment\">#\u5c06\u6570\u636e\u8f6c\u5316\u4e3a\u6570\u636e\u6846<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">rename(tSNE1=<span class=\"code-snippet__string\">\"V1\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">tSNE2=<span class=\"code-snippet__string\">\"V2\"<\/span>) %&gt;% <span class=\"code-snippet__comment\">#\u4fee\u6539\u5217\u540d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">mutate(ID=row_number()) <span class=\"code-snippet__comment\">#\u6dfb\u52a0\u65b0\u7684\u4e00\u5217<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">tSNE_df &lt;- tSNE_df %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">inner_join(penguins_meta, by=<span class=\"code-snippet__string\">\"ID\"<\/span>) <span class=\"code-snippet__comment\">#\u5185\u8fde\u63a5\uff0c\u53d6\u5171\u6709\u7684\u6570\u636e<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">tSNE_df %&gt;% head()<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">#\u7ed8\u5236tSNE\u964d\u7ef4\u6563\u70b9\u56fe<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">tSNE_df %&gt;%<\/span><\/code><code><span class=\"code-snippet_outer\">ggplot(aes(x = tSNE1,<\/span><\/code><code><span class=\"code-snippet_outer\">y = tSNE2,<\/span><\/code><code><span class=\"code-snippet_outer\">color = species,<\/span><\/code><code><span class=\"code-snippet_outer\">shape = sex))+<\/span><\/code><code><span class=\"code-snippet_outer\">geom_point()+<\/span><\/code><code><span class=\"code-snippet_outer\">theme(legend.position=<span class=\"code-snippet__string\">\"right\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">ggsave(<span class=\"code-snippet__string\">\"tSNE.pdf\"<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: center;margin-top: 10px;margin-bottom: 10px;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.9632152588555858\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/4_8XJlqCGvGpibwVGf174g6g9sJEkYDA.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSY6wbcG48NZiboRfd6MhJTSGGA54Ln2nxbJSIVj0DAesHkOJ18XJlqCGvGpibwVGf174g6g9sJEkYDA\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"734\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<p powered-by=\"xiumi.us\"><br  \/><\/p>\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row;margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 98%;vertical-align: top;align-self: flex-start;flex: 0 0 auto;height: auto;border-style: solid;border-width: 2px;border-color: rgb(160, 160, 160);padding: 27px;\">\n<section style=\"text-align: justify;line-height: 1.6;letter-spacing: 0px;padding-right: 6px;padding-left: 6px;\" powered-by=\"xiumi.us\">\n<p>\u6700\u7ec8\u5c0f\u82b1\u5229\u7528\u4e09\u79cd\u7b97\u6cd5\u8fdb\u884c\u4e86\u964d\u7ef4\u5206\u6790\uff0c\u4e0d\u540c\u7b97\u6cd5\u4ea7\u751f\u7684\u6548\u679c\u4e5f\u4e0d\u4e00\u81f4\u3002\u5982\u679c\u5c0f\u4f19\u4f34\u6709\u5176\u4ed6\u6570\u636e\u5206\u6790\u9700\u6c42\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u672c\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u751f\u4fe1\u5206\u6790\u5c0f\u5de5\u5177\u4e91\u5e73\u53f0\uff0c\u96f6\u4ee3\u7801\u5b8c\u6210\u5206\u6790\uff0c\u975e\u5e38\u65b9\u4fbf\u5965<\/p>\n<p><br  \/><\/p>\n<p>\u6b22\u8fce\u4f7f\u7528\uff1a\u4e91\u751f\u4fe1 &nbsp;&#8211; \u5b66\u751f\u7269\u4fe1\u606f\u5b66 (biocloudservice.com)<\/p>\n<p><br  \/><\/p>\n<p>\u5982\u679c\u60f3\u7528\u670d\u52a1\u5668\u53ef\u4ee5\u8054\u7cfb\u5fae\u4fe1\uff1a18502195490\uff08\u5feb\u6765\u8054\u7cfb\u6211\u4eec\u4f7f\u7528\u5427\uff01\uff09<\/p>\n<\/section>\n<section style=\"text-align: right;justify-content: flex-end;display: flex;flex-flow: row;transform: translate3d(40px, 0px, 0px);margin-bottom: -40px;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: auto;vertical-align: top;align-self: flex-start;flex: 0 0 auto;min-width: 5%;height: auto;\">\n<section style=\"transform: rotateZ(45deg);\" powered-by=\"xiumi.us\">\n<section style=\"text-align: center;\">\n<section style=\"display: inline-block;width: 26px;height: 26px;vertical-align: top;overflow: hidden;background-color: rgb(255, 255, 255);border-left: 1px solid rgb(160, 160, 160);border-bottom-left-radius: 0px;\">\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p powered-by=\"xiumi.us\"><a target=\"_blank\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwNjE0MDY3MQ==&amp;mid=2650761303&amp;idx=2&amp;sn=6f73471d1e82c56c0b2160d0fcd32d53&amp;scene=21#wechat_redirect\" textvalue=\"\" linktype=\"image\" imgurl=\"https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSYCoxhZfqr5L0fxy3C9eSFdt72DV7zqsmrNaiaaoOhic3sHzUpBN4r4MaBCk9p9v16yZwvMvS5nM7sQ\/0?wx_fmt=jpeg\" imgdata=\"[object Object]\" tab=\"innerlink\" data-linktype=\"1\" rel=\"noopener\"><span class=\"js_jump_icon h5_image_link\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.35083798882681566\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/5_pBN4r4MaBCk9p9v16yZwvMvS5nM7sQ-3.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSYCoxhZfqr5L0fxy3C9eSFdt72DV7zqsmrNaiaaoOhic3sHzUpBN4r4MaBCk9p9v16yZwvMvS5nM7sQ\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"895\" style=\"\"  data-recalc-dims=\"1\" \/><\/span><\/a><br  \/><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.3488888888888889\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/6_wGGHoIUWPWSIgBgzuWA7zggZhslM2g-1.jpg?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/KDvR2NrGicSbGdkTKlXI3tbocicP8GUCzibJV5ibjQs6D7lQhs1pnDYZQiauBwGGHoIUWPWSIgBgzuWA7zggZhslM2g\/640?wx_fmt=jpeg'\" data-type=\"jpeg\" data-w=\"900\" style=\"\"  data-recalc-dims=\"1\" \/><\/p>\n<p powered-by=\"xiumi.us\">\uff08\u70b9\u51fb\u539f\u6587\u8df3\u8f6c\uff09<\/p>\n<section style=\"text-align: left;margin: 10px 0%;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;min-width: 10%;vertical-align: top;padding-right: 20px;\">\n<section style=\"transform: translate3d(20px, 0px, 0px);margin: 10px 0% -30px;\" powered-by=\"xiumi.us\">\n<section style=\"color: rgb(62, 62, 62);text-align: justify;font-size: 12px;\">\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"rich_pages wxw-img\" data-ratio=\"0.866\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/7_ckicFEh6TCqLgEb3Miba1dcxDKt1Pw.gif?resize=18%2C15\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_gif\/KDvR2NrGicSY6wbcG48NZiboRfd6MhJTSG4cvdQPq7uXjrSbqiaiaWsokhPbTwckicFEh6TCqLgEb3Miba1dcxDKt1Pw\/640?wx_fmt=gif'\" data-type=\"gif\" data-w=\"500\" height=\"15\" style=\"width: 18px;height: 15px;\" width=\"18\"  data-recalc-dims=\"1\" \/>&nbsp;\u70b9\u4e00\u4e0b\u9605\u8bfb\u539f\u6587\u4e86\u89e3\u66f4\u591a\u8d44\u8baf<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 50px;height: 40px;vertical-align: top;overflow: hidden;\">\n<section style=\"text-align: center;margin-right: 0%;margin-left: 0%;line-height: 0;\" powered-by=\"xiumi.us\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.7709090909090909\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/8_e774gpWTpsxIMiaW2W5YOaFRFkDaaQ.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/KDvR2NrGicSY6wbcG48NZiboRfd6MhJTSGKssmhafx7ztNms3es4uhr22xRe774gpWTpsxIMiaW2W5YOaFRFkDaaQ\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"275\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"http:\/\/www.biocloudservice.com\/home.html\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u7f51\u6253\u5c3d\uff01PCA\uff0cUMAP\u548ctSNE\u4e09\u79cd\u964d\u7ef4\u5206\u6790 \u5c0f\u82b1&nbsp;&nbsp;\u751f\u4fe1\u679c&nbsp;&nbsp;2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59468"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59468"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59468\/revisions"}],"predecessor-version":[{"id":59477,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/59468\/revisions\/59477"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59468"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}