how to create mutant DNA sequence
0
0
Entering edit mode
4.0 years ago
mbk0asis ▴ 700

Hi, all!

I'm trying to generate mutant sequence based on the type as shown on the far right column of example data below.

transcript  position    mutation    type    WT.seq  MUT.seq
trx1    5   A>G substitution    AAAAAA  AAAAGA
trx2    3   C>CTT   insert  CCCCCC  CCCTTCCC
trx3    7   TTTT>T  deletion    AAAAAATTTT  AAAAAAT

I managed to generate 'Substitution' mutants, but I've got no clue how to make INDEL sequences. Can someone help me solve this?

R, Python, bash, or etc. Any language would be find~

Thank you!

mutation in silico mutagenesis • 957 views
ADD COMMENT
0
Entering edit mode

can you share the code you used to get the substitution mutants? Perhaps it can be extended to also get the other types.

ADD REPLY
0
Entering edit mode

Hi! Thank you for reply!

I used substring in R to replace a string at a specific position.

substring(test$WT.seq, first=5) <- "G"

It replaces a string in the 5th position to "G".

It's not the actual code I used, but the approach is the same.

ADD REPLY
0
Entering edit mode

I'm far from an expert in R but can't you than not expand it for the other cases?

at least for the insertion it should be doable, no? (in stead of changing it to a G, change it to 'CTT' or such) For the deletions it might indeed be more tricky (unless you can specify that it should not a be single position but a sort of substring?)

ADD REPLY

Login before adding your answer.

Traffic: 1907 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6