Collections:
Play with the Bio.Seq Module
How to import the Bio.Seq module and use its functions?
✍: FYIcenter.com
Here are some examples on how to import the Bio.Seq module and use its functions.
1. Import the Bio.Seq module and create a Bio.Seq object.
fyicenter$ python
>>> from Bio.Seq import Seq
>>> my_seq = Seq("AGTACACTGGT")
>>> my_seq
Seq('AGTACACTGGT')
>>> print(my_seq)
AGTACACTGGT
2. Try complement() and reverse_complement() functions on the Bio.Seq object.
>>> my_seq.complement()
Seq('TCATGTGACCA')
>>> my_seq.reverse_complement()
Seq('ACCAGTGTACT')
⇒ Double Stranded DNA, mRNA and Transcription
2023-02-04, 1171🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1004681 Names: InChIKey: HHLFWLYXYJOTON-UHFFFAOYS A-NSMILES: O=CC(=O)O Rec...
Molecule Summary: ID: FYI-1003803 Names: InChIKey: ZDTVTUVLWXXTJO-UHFFFAOYS A-NSMILES: C1OCOCOCOCOCO...
Molecule Summary: ID: FYI-1000284 SMILES: NC(CCCCC(=O)c1ccc(Cl)cc1 (c2ccccc2)Received at FYIcenter.c...
Molecule Summary: ID: FYI-1001986 SMILES: NC(C1=C[N+]([C@@H]2O[C@@ H]([C@H]([C@H]2O)O)COP([ O-])(OP(O)...
Molecule Summary: ID: FYI-1000378 SMILES: [H] Received at FYIcenter.com on: 2021-04-19