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, 1224🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1006526 Names: InChIKey: LLIKCJNXFNAQAP-KEHAOADBS A-NSMILES: CCCCCC/C(C=O)...
Molecule Summary: ID: FYI-1002221 Names: InChIKey: JKEJEOJPJVRHMQ-JTQLQIEIS A-NSMILES: CCCCCCCC(=O)N...
Molecule Summary: ID: FYI-1003113 Names: InChIKey: MWAPTJDKEDUKSI-VCHYOVAHS A-NSMILES: COc3ccc(/C=N/...
Molecule Summary: ID: FYI-1004090 Names: InChIKey: HLEXJAVJCZLRTH-UHFFFAOYS A-NSMILES: C[CH:1]1[O:1]...
Molecule Summary: ID: FYI-1005773 Names: InChIKey: MRBKEAMVRSLQPH-UHFFFAOYS A-NSMILES: COc1ccc(O)c(C...