当前位置: 首页 > news >正文

生产企业做网站有用吗关于港口码头发展建设的网站

生产企业做网站有用吗,关于港口码头发展建设的网站,手机社区网站模板,建站之星快速建站价格建议在Jupyter实践。 1. 使用正则表达式匹配指定的氨基酸序列 import re# 氨基酸序列 seq VSVLTMFRYAGWLDRLYMLVGTQLAAIIHGVALPLMMLI# 正则表达式匹配 match re.search(r[A|G]W, seq)# 打印match及匹配到开始位置和结束位置 print(match) # re.Match object; span(10, …建议在Jupyter实践。 1. 使用正则表达式匹配指定的氨基酸序列 import re# 氨基酸序列 seq VSVLTMFRYAGWLDRLYMLVGTQLAAIIHGVALPLMMLI# 正则表达式匹配 match re.search(r[A|G]W, seq)# 打印match及匹配到开始位置和结束位置 print(match) # re.Match object; span(10, 12), matchGW print(match.start()) print(match.end())if match:# 打印匹配到氨基酸print(match.group())# GW else:print(no match!)2. 使用正则表达式查找全部的氨基酸序列 import reseq RQSAMGSNKSKPKDASQRRRSLEPAENVHGAGGGAFPASQRPSKP# 匹配R开头、第二个氨基酸为任意、第三个氨基酸为S或T、第四个氨基酸不为P的连续4个氨基酸徐磊 matches re.findall(rR.[ST][^P], seq) print(matches) # [RQSA, RRSL, RPSK]# finditer 匹配对象迭代器 match_iter re.finditer(rR.[ST][^P], seq)# 遍历 for match in match_iter:# 打印group和spanprint(match.group(), match.span())print(match.start(), match.end())# RQSA (0, 4)# 0 4# RRSL (18, 22)# 18 22# RPSK (40, 44)# 40 44 3. 使用正则表达式匹配多个特殊字符分割字符串 import re# 匹配特殊字符|和;并分割字符串 annotation ATOM:CA|RES:ALA|CHAIN:B;NUMRES:166 split_string re.split(r[|;], annotation)print(split_string) # [ATOM:CA, RES:ALA, CHAIN:B, NUMRES:166] 4. 正则表达式获取核型染色体数量区带和CNV大小 karyotype1 46,XY; -11{p11.2-p13, 48.32Mb} karyotype2 47,XXX; X{3};-11{p11.2-p13.2, 48.32Mb}#### 匹配染色体数量 #### match re.search(r(\d,\w);, karyotype1) print(match) # re.Match object; span(0, 6), match46,XY;chr match.group(1) print(chr) # 46,XY#### 匹配染色体开始和结束区带和CNV大小 #### match2 re.search(r([p|q|pter]\d.?\d)-([p|q|qter]\d.?\d), (\d.?\d)Mb, karyotype2) print(match2)cyto_start match2.group(1) cyto_end match2.group(2) size match2.group(3)print(cyto_start) # p11.2 print(cyto_end) # p13.2 print(size) # 48.325. 正则表达式获取指定格式的字符串内容 # 结果变异VCF文件描述信息 string ##ALTIDDEL,DescriptionDeletion##ALTIDDUP,DescriptionDuplication##ALTIDINV,DescriptionInversion##ALTIDINVDUP,DescriptionInvertedDUP with unknown boundaries##ALTIDTRA,DescriptionTranslocation##ALTIDINS,DescriptionInsertion##FILTERIDUNRESOLVED,DescriptionAn insertion that is longer than the read and thus we cannot predict the full size.##INFOIDCHR2,Number1,TypeString,DescriptionChromosome for END coordinate in case of a translocation##INFOIDEND,Number1,TypeInteger,DescriptionEnd position of the structural variant##INFOIDMAPQ,Number1,TypeInteger,DescriptionMedian mapping quality of paired-ends##INFOIDRE,Number1,TypeInteger,Descriptionread support##INFOIDIMPRECISE,Number0,TypeFlag,DescriptionImprecise structural variation##INFOIDPRECISE,Number0,TypeFlag,DescriptionPrecise structural variation##INFOIDSVLEN,Number1,TypeInteger,DescriptionLength of the SV##INFOIDSVMETHOD,Number1,TypeString,DescriptionType of approach used to detect SV##INFOIDSVTYPE,Number1,TypeString,DescriptionType of structural variant##INFOIDSEQ,Number1,TypeString,DescriptionExtracted sequence from the best representative read.##INFOIDSTRANDS2,Number4,TypeInteger,Descriptionalt reads first ,alt reads first -,alt reads second ,alt reads second -.##INFOIDREF_strand,Number.,TypeInteger,Descriptionplus strand ref, minus strand ref.##INFOIDStrandbias_pval,NumberA,TypeFloat,DescriptionP-value for fisher exact test for strand bias.##INFOIDSTD_quant_start,NumberA,TypeFloat,DescriptionSTD of the start breakpoints across the reads.##INFOIDSTD_quant_stop,NumberA,TypeFloat,DescriptionSTD of the stop breakpoints across the reads.##INFOIDKurtosis_quant_start,NumberA,TypeFloat,DescriptionKurtosis value of the start breakpoints across the reads.##INFOIDKurtosis_quant_stop,NumberA,TypeFloat,DescriptionKurtosis value of the stop breakpoints across the reads.##INFOIDSUPTYPE,Number.,TypeString,DescriptionType by which the variant is supported.(SR,AL,NR)##INFOIDSTRANDS,NumberA,TypeString,DescriptionStrand orientation of the adjacency in BEDPE format (DEL:-, DUP:-, INV:/--)##INFOIDAF,NumberA,TypeFloat,DescriptionAllele Frequency.##INFOIDZMW,NumberA,TypeInteger,DescriptionNumber of ZMWs (Pacbio) supporting SV.##FORMATIDGT,Number1,TypeString,DescriptionGenotype##FORMATIDDR,Number1,TypeInteger,Description# high-quality reference reads##FORMATIDDV,Number1,TypeInteger,Description# high-quality variant readsimport re# 创建空dataframe df_output pd.DataFrame()list_type [] list_id [] list_description []# 遍历字符串内容内容拷贝至结构变异VCF文件 for str in string.split(\n):# 去除末尾\n和字符串内空格str str.strip().replace( , )# 内容为空或字符串为空则跳过if not str or str :continue# 正则表达式匹配##后的英文字符match re.search(r##(\w), str)type match.group(1) if match else ERORR# 匹配ID内容match re.search(rID(\w), str)id match.group(1) if match else ERORR# 匹配Description内容match re.search(rDescription\(.*?)\, str)description match.group(1) if match else ERORR# 加入列表list_type.append(type)list_id.append(id)list_description.append(description)print(list_description) # 加入dataframe df_output[Type] list_type df_output[ID] list_id df_output[Description] list_description# 保存至excel df_output.to_excel(结构变异描述信息说明.xlsx, indexFalse)生信算法文章推荐 生信算法1 - DNA测序算法实践之序列操作 生信算法2 - DNA测序算法实践之序列统计 生信算法3 - 基于k-mer算法获取序列比对索引 生信算法4 - 获取overlap序列索引和序列的算法 生信算法5 - 序列比对之全局比对算法 生信算法6 - 比对reads碱基数量统计及百分比统计 生信算法7 - 核酸序列Fasta和蛋白PDB文件读写与检索 生信算法8 - HGVS转换与氨基酸字母表
http://www.dnsts.com.cn/news/14834.html

相关文章:

  • dw建设的网站上传网络运维与安全
  • 物业公司网站建设有了域名如何建设网站
  • 网站表现形式信息化建设 公司网站
  • 设计网站页面好处优质专业建设申报网站
  • 包头教育云平台网站建设在线制作电子简历
  • 网站充值如何做post的成全视频免费观看在线看第6季高清
  • 南通市做网站wordpress更改主机名
  • 北京个人网站建设南昌网上服务
  • 企业网站买卖建设流程企业天眼查
  • 自己网站做虚拟币违法吗互联网保险的发展现状
  • 给银行做网站wordpress ajax插件
  • 郑州网站建设郑州网络推广忘记wordpress的账号和密码忘记
  • 丹东企业网站建设平台厦门做企业网站比较好的公司
  • 网站seo方案设计阿里云wordpress升级
  • 免费做一建或二建题目的网站wordpress 所有页面空白页
  • 网站建设开发费用怎样入账成都业之峰装饰公司怎么样
  • 怎么做科技小制作视频网站ui网站建设
  • wordpress怎么解密密码网站优化工作怎么样
  • 网站如何进行建设常州网油卷介绍
  • 长沙网站制作好公司网络公司业务范围
  • 网站建设与维护要用到代码吗网站未备案做经营被罚款
  • 网站制作怎么做框架网站安全监测预警平台建设成效
  • 投资网站网站源码西安的电子商城网站建设
  • 企业产品推广网站广告公司图片
  • 有站点地图的网站wordpress快速赚钱
  • 网站建设 讲话wordpress 更新过慢
  • 深圳网站设计灵点网络公司不错怎么优化网站排名具体怎么做
  • 珠海电子商务网站建设淘宝上开网店的流程
  • php网站开发薪资 深圳北京营销型网站建站公司
  • 手机网站开发服务商静态网页设计制作心得