Hi, thank you for answering my problem.
My data is in format as below:
A1P
D4M
N6G
A1F
D4S
N6L
A1C
I want the output or output should be :
A1P/F/C
D4M/S
N6G/L
Is any R package code available? perl or python code will also be great. Thank you very much. Sorry for wasting your valuable time.
Please add more details to your question. What does "/F/C" and "\L" stand for?
they want the suffix after the 2 letters collected and appended. This is a basic programming question for which they should show at least some effort in some language
English Alphabet! Basically, it will be used for amino acid (single letter code) and Nucleotide data formating.
I'd look out for residue positions >9 - that will result in total length being >3, and scripts below that don't account for it will fail. JC's solution will work best in that case.
yeah, I was thinking the OP could have a position >9 in the inputs