Protein sequence manipulation for adding elements before or after the sequence.

1 visualización (últimos 30 días)
how do i add zeros to both ends or one end (before or after) of a protein sequence?
Example:
a protein sequence is given as 'ITYTDCTESGQDLCLCEGSDVCGKGNKCILGSNGEENQCVTGEGTPKPQSHNDGDFEEIPEEYLQ'
how do i add zeros at the beginning before the first element of the sequence?

Respuesta aceptada

Peng Li
Peng Li el 31 de Mzo. de 2020
The easiest way to add N zeros before it can be done by:
[repmat('0', 1, N) yourProSeq];
  5 comentarios
Nedz
Nedz el 9 de Abr. de 2020
Editada: Nedz el 9 de Abr. de 2020
What if i want to add zeroes after the squence (on the right end)?
Peng Li
Peng Li el 9 de Abr. de 2020
You flip the repmat() stuff and mm in above example.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Genomics and Next Generation Sequencing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by