自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(142)
  • 收藏
  • 关注

转载 [DEBUG] Springboot打包jar/war后访问包外的路径

========================================================我是Ruriko,我爱这个世界:)转载于:https://www.cnblogs.com/pxy7896/p/11577235.html

2019-09-24 11:11:00 538

转载 Html大段文本自适应换行显示-SSM

只处理前端:<style> .ctl{ table-layout:fixed } .ctl td{ word-break:break-all }</style> <div> &l...

2019-09-23 14:31:00 705

转载 [DEBUG] ubuntu pip安装成功却无法import

我的pip经常出问题,我也不知道为啥。。今天搞啥啥坏=。=问题:pip自动安装显示成功,在交互环境下却无法import==========================踩坑=================================首先要考虑路径问题。先pip uninstall看看它装到哪里了,然后在python里看sys.path确定是不是真的是能搜索到的。当...

2019-09-19 14:53:00 1939

转载 [DEBUG] ubuntu mysql root@localhost改了密码还是进不去ERROR 1698 (28000)

之前用skip-grant-tables的方法免密进入Mysql,修改了root的密码,当时重启服务后是可以用密码进入Mysql的。结果昨天突然又进不去了:)所以更换方法,特此记录。=================踏坑记录========================================================================首先是...

2019-09-19 09:59:00 165

转载 [DEBUG] Spring boot前端html无法下载示例文件

更新:原方法打jar包的时候是可以的,后来我打war包之后下载的文件就是0字节。尴尬:)所以现在更换一种方法,然后打war包。在服务器已测试成功。前端不需要改变,只需要更改controller: @RequestMapping("/example") @ResponseBody public void downloadExampleFileForUse...

2019-09-18 15:19:00 121

转载 [DEBUG] spring boot在eclipse中用maven打包成jar访问templates报500错误

更新:打war包的话只要把html文件放在resources/templates下即可,根本不需要放外面。配置application.yml和templates放外面这种做法,打war包确实不行。不过有时候打包问题也会造成500错误,需要仔细检查。================================================================...

2019-09-18 14:23:00 265

转载 [DEBUG] java中用Runtime调用python 简单程序输出null

今天需要在java中调用python脚本,首先考虑的是java自带的Runtime在ubuntu和win10下分别测试,发现win10报错java源代码@Test public void testRuntime() throws InterruptedException { Scanner input = new Scanner(System.i...

2019-09-17 09:56:00 310

转载 SpringBoot中service注入失败(A component required a bean of type 'XXService' that could not found)...

先写了JUnit,发现启动不了,注释掉有问题的service也不可以。可能是因为spring开始时会加载所有service吧。按照网友们的说法,一般需要检查:1.入口类有没有写MapperScan我写了,没问题:)@MapperScan(basePackages="com.example.demo.mapper")2.该service对应的dao接口上没写@Mapp...

2019-09-11 09:46:00 5138

转载 Numpy安装报错:试过N种安装方法终于

Import numpy时,会报下面的错误/home/spyros/.local/lib/python2.7/site-packages/numpy/core/multiarray.so: undefined symbol: PyUnicodeUCS2_FromObject忘了截图,大概就是PyUnicodeUCS2引发的错误,提示我某些c扩展编译有问题。可是天地良心啊,我都是直...

2018-11-28 16:36:00 1011

转载 RepeatMasker使用

RM是library-based,通过相似性比对来识别重复序列,可以屏蔽序列中转座子重复序列和低复杂度序列(默认将其替换成N)。使用数据库Dfam和Repbase。The Dfam database is a collection ofRepetitive DNA elementsequence alignments,hidden Markov models (HMMs)an...

2018-11-23 16:56:00 2084

转载 bedtools

转载于:https://www.cnblogs.com/pxy7896/p/10008211.html

2018-11-23 16:11:00 198

转载 python_字符串_常用处理

1. 输出原序列的反向互补序列in1 = open("brca1.fasta", "r")out1 = open("re_brca1.fasta", "w")raw = in1.readlines()# 序列信息暂时不想改out1.write(raw[0])s = raw[1].split("\n")[0]# 原序列中存在小写,先统一改为大写s =...

2018-11-20 10:53:00 88

转载 邀请码

小木虫是我的最爱,老牌科研论坛,人气第一,牛人超多。论坛涵盖化学化工、材料、生物、医药、食品、机械、理工、信息等学科,还有基金申请、留学出国、考研考博、论文投稿、专利标准、文献求助等实用内容!友情推荐访问:http://muchong.com/bbs/index.php?friend=10272942转载于:https://www.cnblogs.com/pxy7896/p/9982...

2018-11-19 12:21:00 1044

转载 R-biomaRt使用-代码备份

目标:使用R脚本从ensembl上下载transcript数据简单粗暴,直接上代码。biomaRt的介绍晚一点更新。# this file helps extract information from ensembl with gene name as input # 11/02/2018, pxy7896library(biomaRt)# 使用参数#...

2018-11-12 15:39:00 489

转载 R-描述性统计

RT。。。老实说这一章我是抖的。。。但是,加油~# 从1:100中均匀抽取size个数据,replace=TRUE指有放回抽样,数据可以重复x = sample(1:100, size = 100, replace = TRUE)y = x# 随机设置y中有20%的缺失值y[sample(x = 1:100, size = 20, replace = FALS...

2018-11-12 15:35:00 117

转载 django开发傻瓜教程-3-celery异步处理

Ref:https://www.jianshu.com/p/6f8576a37a3ehttps://blog.csdn.net/Demo_3/article/details/78119951https://blog.csdn.net/spur_man/article/details/79550917https://my.oschina.net/37Y37/blog/192...

2018-11-08 17:22:00 278

转载 Head First Java-图形化界面

Head First Java是本挺好的书,讲的比较清楚和简单。主要看原则、概念啥的。语法什么的,还是靠谷歌吧:)这部分的笔记也有很多了,最近会努力更新和搬运。顺便自己也重新读一下。就酱。想要这本书的可以私信我:)这两天在看图形化界面这块,所以先更新这里吧。感觉java的体系还是比较严谨的,思路都是一致的,比较适合我这种脑子不好用的:)import ja...

2018-11-06 10:20:00 164

转载 javascript隐藏和显示元素以及清空textarea

当前希望写一个单选框,选中“paste”则显示粘贴框,选中“upload”则提示选择文件。因为这两种情况只是显示不同,所以只需要用javascript来进行显示和隐藏。最后的结果大概这样:初始时,两个都不选中,所以粘贴框和上传按钮都不存在。选中Paste Input:粘贴框弹出,有删除按钮和行数计数。(这个在结尾作为彩蛋更新)选中Upload File:上传按...

2018-11-06 09:53:00 331

转载 GTF/GFF

转载于:https://www.cnblogs.com/pxy7896/p/9897277.html

2018-11-02 17:07:00 241

转载 Entrez Direct

安装cd ~/bin/bashperl -MNet::FTP -e \'$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive => 1);$ftp->login; $ftp->binary;$ftp->get("/entrez/entrezdirect/edirect.tar.gz");'gunzip -c e...

2018-11-02 09:16:00 426

转载 逆转录转座子初窥

转座子、重复序列一直是我搞不懂的一块。今天梳理了一下这方面的知识,写了一篇笔记。#参考文献缺失!!!下次一定要记录参考文献!!!#转座子transposon一类DNA序列,它们能够在基因组中转录或逆转录,在内切酶的作用下,在其他基因座上出现。I型转座子即反转录转座子,该型转座子会先被转录为RNA,然后利用逆转录酶将该RNA逆转录为cDNA,然后才被插入到目标位点中。“复制...

2018-10-31 13:34:00 3839

转载 django开发傻瓜教程-1-安装和HelloWorld

安装sudo pip install Django新建项目django-admin startproject XXX启动项目进入主目录下python manage.py runserver 0.0.0.0:8000文件体系HelloWorld: 文件夹,项目的容器。manage.py: 一个实用的命令行工具,可让你以各种方式与该...

2018-10-29 09:01:00 116

转载 爬虫教程-1

很久没来了,先贴一篇上个月的旧文。#最近争取每天中午更新一点,也算是复习笔记了,哭泣#可能是我蠢,爬虫这块搞了好几天才写了这么一点点,先入门吧,之后再写复杂的。#可能是下个月了:)#环境:VirtualBox,lubuntu。1. 安装dockerhttps://yeasy.gitbooks.io/docker_practice/install/ubuntu.ht...

2018-10-19 09:35:00 80

转载 算法_NP_证明

8.3STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and an integer k, find a satisfyingassignment in which at most k variables are true, if such a...

2017-07-04 16:24:00 330

转载 Applied Nonparametric Statistics-lec10

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/14估计CDFThe Empirical CDF绘制empirical cdf的图像:x = c(4, 0, 3, 2, 2)plot.ecdf(x)Kolmogorov-Smirnov test...

2017-06-23 11:31:00 131

转载 Applied Nonparametric Statistics-lec9

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/12前面我们考虑的情况是:response是连续的,variable是离散的。举例:如果打算检查GPA的中位数是否与学生坐在教室的位置有关,那么GPA的中位数是连续的,是响应变量;学生坐的位置(前中后)是离散的,是解释变量。现在...

2017-06-21 11:12:00 85

转载 Applied Nonparametric Statistics-lec8

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/11additive modelvalue = typical value + row effect + column effect + residualpredicate value =typical value + row...

2017-06-19 20:16:00 91

转载 c++IDE

暂时使用Code::Blocks 16.01。因为之前没有c++编译器,所以去官网选择安装codeblocks-16.01mingw-setup.exe然后settings>Compiler>ToolChainExecutables and click the auto-detect button转载于:https://www.cnblogs.com/pxy789...

2017-06-14 12:39:00 54

转载 Applied Nonparametric Statistics-lec7

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/9经过前面的步骤,我们已经可以判断几个样本之间是否有差异,差异有多大,现在,我们的备选假设变成有规律的了,如:在前面的方法中,我们没有限定这种有顺序的小于等于关系。contrasts:R中可以使用ANGEL包中...

2017-06-13 11:05:00 91

转载 Applied Nonparametric Statistics-lec6

Ref: https://onlinecourses.science.psu.edu/stat464/print/book/export/html/8前面都是对一两个样本的检查,现在考虑k个样本的情况,我们的假设是:Analysis of Variance (ANOVA)assumptions are:Groups are independentD...

2017-06-10 13:59:00 93

转载 Applied Nonparametric Statistics-lec5

今天继续two-sample testRef:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/6Mann-Whitney Test前面说这个和Wilcoxon是identical的,只是统计量不同。现在我们来看一下它的统计量U。注意,现在检查的仍然是两个独立样本。Tre...

2017-06-08 11:03:00 191

转载 pycharm-install scipy

懒得装双系统,所以在win7下用pycharm,python2.7虽然机子本身是64位,但是安装包的时候,我居然需要下载32位的??迷:)这次装的是scipy。在pycharm里添加不了,根据网上的解释,是windows比较神奇,嗯。解决方案如下:1. 去这个网站下载两个文件:numpy-1.11.3+mkl-cp27-cp27m-win32.whl和scipy-0.19.0...

2017-06-07 18:20:00 148

转载 python-matplotlib-lec1

接演前文。设置属性的方法:使用对象的set_*方法,单独设置每个属性;或使用plt.setp同时设置多个属性# -*- coding: utf-8 -*-import numpy as npimport matplotlib.pyplot as plt# set range 0~5, step = 0.1x = np.arange(0, 5...

2017-06-07 13:29:00 105

转载 Applied Nonparametric Statistics-lec4

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/5Two sample test直接使用R的t-testt.test(n, t, alternative="two.sided", var.equal=T)permutation test当我们判...

2017-06-07 10:43:00 82

转载 Applied Nonparametric Statistics-lec3

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/4使用非参数方法的优势:1. 对总体分布做的假设少,所以总体分布未知也可以;2. 容易做;3. 一般对离群值更具鲁棒性robust;4. 适用于数据中包含ranks, ordinal or categorica...

2017-06-06 15:03:00 104

转载 Applied Nonparametric Statistics-lec2

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/3The Binomial Distribution in R:# return PMF. prob is the probability of success . x can be a listdbinom(x, si...

2017-06-06 13:28:00 82

转载 Applied Nonparametric Statistics-lec1

参考网址:https://onlinecourses.science.psu.edu/stat464/node/2Binomial DistributionNormal Distribution将正态分布标准化。这也就是Z-scoreConfidence Interval在上面的前提下,假设σ^2已知,现在构造μ的置信区...

2017-06-06 11:19:00 84

转载 pandas-Notes2

#coding = utf-8import pandas as pdimport numpy as npimport matplotlib as pltdates = pd.date_range('20170601', periods=6)# make a random 6*4 matrixdf = pd.DataFrame(np.random.rand...

2017-06-05 18:56:00 96

转载 pandas-Notes1

#coding = utf-8import pandas as pdimport numpy as npimport matplotlib as plt# series, like vector, vertical aligned.s = pd.Series([1,2,np.nan,3])print s'''0 1.01 2.0...

2017-06-05 18:55:00 79

转载 python-matplotlib-lec0

直奔主题吧。。以下是对matplotlib画图的简单讲解,代码已测试。win7 + pycharm + python 2.7参考文档:http://old.sebug.net/paper/books/scipydoc/matplotlib_intro.html捷径:查看gallery,寻找要画的图,copy代码,修改,donehttp://matplotli...

2017-06-05 18:09:00 64

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除