mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-18 09:14:44 -07:00
fix column name
This commit is contained in:
parent
9984c87c8b
commit
d66be42688
1 changed files with 1 additions and 1 deletions
|
|
@ -33,6 +33,6 @@ parse_IUPAC_AAchange <- function(MutationColumn){
|
||||||
AAPos <- stringi::stri_extract_first_regex(str = MutationColumn,pattern = "[0-9]+")
|
AAPos <- stringi::stri_extract_first_regex(str = MutationColumn,pattern = "[0-9]+")
|
||||||
REF_AA <- stringi::stri_extract_first_regex(str = MutationColumn,pattern = "[ACDEFGHIKLMNPQRSTVWYX]+")
|
REF_AA <- stringi::stri_extract_first_regex(str = MutationColumn,pattern = "[ACDEFGHIKLMNPQRSTVWYX]+")
|
||||||
ALT_AA <- stringi::stri_extract_last_regex(str = MutationColumn,pattern = "[ACDEFGHIKLMNPQRSTVWYX]+")
|
ALT_AA <- stringi::stri_extract_last_regex(str = MutationColumn,pattern = "[ACDEFGHIKLMNPQRSTVWYX]+")
|
||||||
return(data.frame(REF_AA,as.numeric(AAPos),ALT_AA))
|
return(data.frame(REF_AA,AAPos=as.numeric(AAPos),ALT_AA))
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue