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, 826🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1003941 Names: InChIKey: XAVMZYKSKCKTOL-UHFFFAOYS A-NSMILES: CCOc3cccc(c2c...
Molecule Summary: ID: FYI-1004039 Names: InChIKey: XOMRENNWBCTKNI-UHFFFAOYS A-NSMILES: c3cc(c2nnc(SC...
How to save molecules created in JSME editor to the Web server? If you want to save the molecule str...
Molecule Summary: ID: FYI-1001437 SMILES: CN(C)C(=O)C1=NC=C(N=C1)N 2C(=NC(C)=N2)[C@H](C)NC( =O)C3C=C(C...
Molecule Summary: ID: FYI-1004545 Names: InChIKey: JLFLQVAEWUBGOB-UHFFFAOYS A-OSMILES: NS(=O)(=O)Nc2...