Dear All,
I have a bunch of position specific mutation file and sequences file both. I want to mutate that sequences with given position as examples
Mutation Position
G10M (at position of 10 mutated G to M) Similarly
Y70K ( at position of 70 residue mutated Y to K
>P00519
MLEICLKLVGCKSKKGLSSSSSCYLEEALQRPVASDFEPQGLSEAARWNSKENLLAGPSE
NDPNLFVALYDFVASGDNTLSITKGEKLRVLGYNHNGEWCEAQTKNGQGWVPSNYITPVN
SLEKHSWYHGPVSRNAAEYLLSSGINGSFLVRESESSPGQRSISLRYEGRVYHYRINTAS
Output
> P00519
MLEICLKLV`M`CKSKKGLSSSSSCYLEEALQRPVASDFEPQGLSEAARWNSKENLLAGPSE
NDPNLFVAL`K`DFVASGDNTLSITKGEKLRVLGYNHNGEWCEAQTKNGQGWVPSNYITPVN
SLEKHSWYHGPVSRNAAEYLLSSGINGSFLVRESESSPGQRSISLRYEGRVYHYRINTAS
if any one have such code please send me.. thanks
This post is NOT A TUTORIAL. I have changed it AGAIN to a question.
It also is not a "software error". Please use logical tags. In this case you want to mutate positions in an amino acid fasta.
Please show us what you tried to solve this and didn't work. We rather point you in the right direction if you show some effort yourself.
I added markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:
Please show us what you tried to solve this and didn't work. We rather point you in the right direction if you show some effort yourself.
In addition, you selected "tutorial", while this is clearly a question. I changed the post type.
Finally, you use the "sequence" and "software error" tag for this question, while these are not accurate. Please use appropriate tags. As such experts can easily find your question and help you.
Do you have a mutation mapfile with sequence names? I assume you want to do this with more than one sequence at a time?
Yes, I have multiple files and want to do with mutation multiple times in a single file.
Ok, to properly automate this you will really need a second input file which maps, to each sequence name (ideally), the positions and substitutions to be made.
Can you show us an example of such a file? A simple tab/comma separated file would do, something like:
Yes... Similar file I have which u written..
You really need to put more effort in your question. We cannot read what's on your screen or guess how your input files look like. We are a group of volunteers and we are helping you on free Sunday. Show some respect and don't make this too hard for us.
Thanks for sharing some details - in this case, your solution is pretty trivial. Use any programming language you're familiar with and use this pseudocode as template.
I tend to recommend Perl for these sort of string operations, but Python is widely used now, too.
So, show us it......