Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
WebChemistry Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
PatternQuery:Use Cases
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
In this section you can find several biologically relevant examples of different queries. ==== Find all post-translational modified aminoacids ==== *i.e. Those incorporated in the protein backbone and not hetero atoms <syntaxhighlight lang="python"> NotAminoAcids(). Filter(lambda m: m.Count(HetResidues()) == 0) </syntaxhighlight> This query queries all the non-standard amino acids for their presence among Hetatom entries. Equivalently:<syntaxhighlight lang="python"> NotAminoAcids(). Filter(lambda m: m.Contains(HetResidues()).Not())</syntaxhighlight> ====Find all heteroatoms, which are not covalently bonded to the protein structure==== * Takes all the heteroatoms and queries them for being connected to any amino acid of a given protein <syntaxhighlight lang="python"> HetResidues(). Filter(lambda m: m.IsNotConnectedTo(AminoAcids()))</syntaxhighlight> ====Identify Zinc fingers==== *There is a variety of different zinc fingers based on the surrounding residues, in our example we will focus on those comprising two zinc and two his residues (Cys2His2). <syntaxhighlight lang="python"> Atoms("Zn"). ConnectedResidues(1). Filter(lambda m: (m.Count(Residues("His")) == 2) & (m.Count(Residues("Cys")) == 2)) </syntaxhighlight> At first the zinc atoms are selected together with their bonded residues. Additionally, these patterns are filtered according to the content of their amino acids. ====Identify all the residues, which contain a sugar ring==== * This task can be decomposed to two individual subtasks, since sugars contain either pentose or furanose ring. Pentose ring contains 4 carbon and an oxygen atom. Similarly, furanose ring is composed of 5 carbon atoms and an oxygen atom. <syntaxhighlight lang="python"> Or(Rings(4 * ["C"] + ["O"]).ConnectedResidues(0), Rings(5 * ["C"] + ["O"]).ConnectedResidues(0)) </syntaxhighlight> By specifying the <code>Ring()</code> queries, we select only the ring part of the molecule. By extending the <code>Ring()</code> query with <syntaxhighlight lang="python">ConnectedResidues(0)</syntaxhighlight> only the residue which includes this ring is selected. Last but not least we can join both queries with <syntaxhighlight lang="python">Or()</syntaxhighlight> in order to merge results. ====Identify all binding sites of PA-IIL lectin in different organisms==== *Binding sites of this type of lectin comprise of two calcium atoms close to each other and a binded sugar residue. <syntaxhighlight lang="python"> Near(4, Atoms("Ca"), Atoms("Ca")) .ConnectedResidues(1) .Filter(lambda l: l.Count(Or(Rings(5 * ["C"] + ["O"]), Rings(4 * ["C"] + ["O"]))) > 0) .Filter(lambda l: l.Count(Atoms("P")) == 0)</syntaxhighlight> At first we select all the pairs of calcium atoms, if they are in a vicinity of 4Å and less by <syntaxhighlight lang="python">Near(4, Atoms("Ca"), Atoms("Ca"))</syntaxhighlight> Subsequently all the bonded residues are checked if they contain either pyranose or furanose ring. only the patterns containing either pentose <syntaxhighlight lang="python">(Rings(5 * ["C"] + ["O"]))</syntaxhighlight> or furanose <syntaxhighlight lang="python">(Rings(4 * ["C"] + ["O"]))</syntaxhighlight> are returned. Since a sugar moiety is an integral part of nucleotides, there is a final simple check, assuring, that no patterns containing phosphorus, i.e. nucleotide are retained.
Summary:
Please note that all contributions to WebChemistry Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WebChemistry Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
PatternQuery:Use Cases
Add topic