text: user4962: I am confused with Sequence alignment, which is
  
  a way of arranging the sequences of DNA, RNA, or protein to
    identify regions of similarity that may be a consequence of
    functional, structural, or evolutionary relationships between the
    sequences.
  
  to understand this easily, I would like to use this image (image_1)
  
  the image above (image_1) is the primary part of nucleic acid structure (primary, secondary, tertiary, and quaternary), shown below (image_2)
  
  is the sequence gcgc... an aligned sequence? if yes, what does the sequence look like before alignment?
  
  user96: Sequence alignment typically refers to the primary sequence. That is, we ignore the complex 3D structure of the molecule and its spatial arrangement in the cell. Instead, we use a symbolic representation composed of symbols like A, C, G, T, and U. Alignment is a conceptual tool that, as you pointed out, is used to find regions of similarity between sequences. Therefore, it only makes sense in the context of two or more similar sequences.
  By way of example, consider a simple case of two sequences X and Y. This is what they would look like before alignment. The similarities between the two sequences are unclear.
  X: ATTGACATAGGCACTTCGACTA
  Y: GACATCTTCGGCTAA
  
  This is what they would look like after alignment. The similarities (and differences) are now much easier to see.
  X: ATTGACATAGGCACTTCCACTA-
        |||||     ||||  |||
  Y: ---GACAT-----CTTCGGCTAA
  
  This arrangement identifies regions of similarity that may be related through evolution. This doesn't always mean perfect agreement though. As this example shows, sometimes mismatches or gaps are allowed so that long stretches of identical matches are lined up correctly. Sometimes, for very closely related sequences, the optimal alignment doesn't require any gaps at all. This seems to be the case with some of your recent questions about sequence logos.
  Note: Sequence alignment is a fundamental concept in bioinformatics, and there is a tremendous amount of research and development on the topic. It's hard to imagine doing any amount of serious DNA sequence analysis responsibly without a basic understanding of sequence alignment. I would recommend searching Google and/or Google Scholar for intro-level reviews of the topic.
  
original_text: 4962: <p>I am confused with <a href="https://en.wikipedia.org/wiki/Sequence_alignment" rel="nofollow noreferrer">Sequence alignment</a>, which is</p>
  
  <blockquote>
    <p>a way of arranging the sequences of DNA, RNA, or protein to
    identify regions of similarity that may be a consequence of
    functional, structural, or evolutionary relationships between the
    sequences.</p>
  </blockquote>
  
  <p>to understand this easily, I would like to use this <a href="https://en.wikipedia.org/wiki/Nucleic_acid_sequence" rel="nofollow noreferrer">image</a> (image_1)</p>
  
  <p><a href="https://i.stack.imgur.com/f1Q8C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f1Q8C.png" alt="enter image description here"></a></p>
  
  <p>the <a href="https://en.wikipedia.org/wiki/Nucleic_acid_sequence" rel="nofollow noreferrer">image</a> above (image_1) is the primary part of nucleic acid structure (primary, secondary, tertiary, and quaternary), shown below (image_2)</p>
  
  <p><a href="https://i.stack.imgur.com/w3oiI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w3oiI.png" alt="enter image description here"></a></p>
  
  <p>is the sequence gcgc... an aligned sequence? if yes, what does the sequence look like before alignment?</p>
   96: <p>Sequence alignment typically refers to the primary sequence. That is, we ignore the complex 3D structure of the molecule and its spatial arrangement in the cell. Instead, we use a symbolic representation composed of symbols like A, C, G, T, and U. Alignment is a conceptual tool that, as you pointed out, is used to find regions of similarity between sequences. Therefore, it only makes sense in the context of two or more similar sequences.</p>
  
  <p>By way of example, consider a simple case of two sequences X and Y. This is what they would look like before alignment. The similarities between the two sequences are unclear.</p>
  
  <pre><code>X: ATTGACATAGGCACTTCGACTA
  Y: GACATCTTCGGCTAA
  </code></pre>
  
  <p>This is what they would look like after alignment. The similarities (and differences) are now much easier to see.</p>
  
  <pre><code>X: ATTGACATAGGCACTTCCACTA-
        |||||     ||||  |||
  Y: ---GACAT-----CTTCGGCTAA
  </code></pre>
  
  <p>This arrangement identifies regions of similarity that <em>may</em> be related through evolution. This doesn't always mean perfect agreement though. As this example shows, sometimes mismatches or gaps are allowed so that long stretches of identical matches are lined up correctly. Sometimes, for very closely related sequences, the optimal alignment doesn't require any gaps at all. This seems to be the case with some of your recent questions about sequence logos.</p>
  
  <p><strong>Note</strong>: Sequence alignment is a fundamental concept in bioinformatics, and there is a tremendous amount of research and development on the topic. It's hard to imagine doing any amount of serious DNA sequence analysis responsibly without a basic understanding of sequence alignment. I would recommend searching Google and/or Google Scholar for intro-level reviews of the topic.</p>
  