IDEA lombok @Data 找不到符号 使用lombok @Data注解后,调用set get方法运行显示找不到符号错误,已安装lombok插件。解决:pom.xml引入依赖换版本后运行正常<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>RELEASE</ver
.jar.LASTUPDATED问题解决 从仓库里拉代码下来,有两个依赖一直导入不成功,去localRepository找到这两个依赖文件下,发现生成了.jar.LASTUPDATED文件,说明依赖远程下载失败。出现这个问题可能有其下几个原因:1、网络原因2、setting.xml镜像原因3、jar包本身有问题或不存在后经检查,是项目新版本setting.xml里添加了一些新的pluginRepository,原本的版本没有,更新后,问题解决。...
Java Unsafe解析 https://www.jianshu.com/p/db8dce09232dhttps://tech.meituan.com/2019/02/14/talk-about-java-magic-class-unsafe.html
Integer[] cannot be converted to int[] List<Integer> list = new ArrayList<Integer>(); int[] array = list.stream().mapToInt(i->i).toArray();
Java String.compareTo() Java compareTo() 方法Java String类compareTo() 方法用于两种方式的比较:字符串与对象进行比较。按字典顺序比较两个字符串。语法int compareTo(Object o) 或 int compareTo(String anotherString)参数o -- 要比较的对象。anotherString -- 要比较的字符串。返回值是整型,它是先比较对应字符的大小(ASCII码顺序),如果第一个字符和参数的第一个字符不等,结束比较,返回他
Java:HashMap getOrDefault() Java HashMap getOrDefault() 方法getOrDefault() 方法获取指定 key 对应对 value,如果找不到 key ,则返回设置的默认值。getOrDefault() 方法的语法为:hashmap.getOrDefault(Object key, V defaultValue)for(int i=0;i<len;i++){ map.put(nums[i],map.getOrDefault(nums[i],0)+1);
mysql外部访问 use mysqlupdate user set host='%' where user = 'root'flush privilages;参考:https://www.cnblogs.com/ningy1009/p/12806748.html
mysql修改排序规则 alter table chrdbsnpnonegt convert to character set utf8mb4 collate utf8mb4_general_ci;参考:https://www.iludou.com/it/54512
SnpSift对vcf文件变异位点dbsnp注释 人类变异参考基因组:https://www.ncbi.nlm.nih.gov/variation/docs/human_variation_vcf/#file-updatehttps://ftp.ncbi.nih.gov/snp/organisms/human_9606/VCF/SnpSift文档:https://pcingola.github.io/SnpEff/ss_annotate/进行rsId Annotate脚本:for chr in {1..22}; do java -ja
mysql主键有Duplicate entry mysql设置主键要求字段值唯一,但如果字段值不唯一,且要求检索速度快,建议设置indexmysql index:https://dev.mysql.com/doc/refman/8.0/en/create-index.htmlCREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name [index_type] ON tbl_name (key_part,...) [index_option] [algorithm_opti
pysam 仅在Linux上工作安装:pip install pysam对于pysam,我是利用fetch方法来查询VCF文件,调用fetch方法需要先对vcf文件建立索引:/home/user/htslib/htslib-1.14/bgzip -c chr22.dbsnp.noGT.recode.vcf > chr22.dbsnp.noGT.recode.vcf.gzbcftools index -c chr22.dbsnp.noGT.recode.vcf.gz然后生成一个csi文件。pytho
mysql 根据相同字段将A表多条数据=修改到B表 ped表:umap表:问题:根据两表相同字段Individual ID,将ped表的Population字段对应到UMAP表的Population字段。解决:update umap,ped set umap.Population = ped.Population where umap.`Individual ID` = ped.`Individual ID`;参考:https://blog.csdn.net/qq_39313596/article/details/107107724..