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

1 vue (au cours des 30 derniers jours)
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?

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Large Files and Big Data dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by