Questions tagged «biomart»

4
在“。”之后删除字符串的一部分
我正在使用NCBI参考序列登录号,例如variable a: a <- c("NM_020506.1","NM_020519.1","NM_001030297.2","NM_010281.2","NM_011419.3", "NM_053155.2") 要从biomart软件包中获取信息,我需要在登录号后删除.1,.2等等。我通常使用以下代码执行此操作: b <- sub("..*", "", a) # [1] "" "" "" "" "" "" 但是如您所见,这不是此变量的正确方法。谁能帮我这个?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.