Many biologists seem to not know how to write dilution notation properly. The colon ":" and the slash "/", both have distinct and well defined meanings. People (biologists, at least) usually use the slash properly, but in many situations use the colon as if it were a slash. Please, if you mean slash, write slash. If you mean colon, write colon. Do not write colon when you actually mean slash.
Let me explain the difference:
Showing posts with label chemistry. Show all posts
Showing posts with label chemistry. Show all posts
Sunday, March 6, 2016
Monday, February 16, 2015
Comparing data from open natural products chemical spectral databases
I recently wrote a review article called "Open-access metabolomics databases for natural product research: present capabilities and future potential", for the journal Frontiers in Bioengineering and Biotechnology, section Bioinformatics and Computational Biology (link).
Part of the review involved evaluating the contents of In this post, this post consists of the notes I took when generating those comparisons. The code I used is available from my Bitbucket account (I apologize for the poor organization and near-lack of documentation), some of the scripts depend on srj_chembiolib, and/or Pandas. InChI normalization relies on ChemAxon molconvert.
Factors to compare: how many unique compounds are present in the database, how many structures have the various kinds of associated analytical spectra, what compound classes are represented.
Part of the review involved evaluating the contents of In this post, this post consists of the notes I took when generating those comparisons. The code I used is available from my Bitbucket account (I apologize for the poor organization and near-lack of documentation), some of the scripts depend on srj_chembiolib, and/or Pandas. InChI normalization relies on ChemAxon molconvert.
Factors to compare: how many unique compounds are present in the database, how many structures have the various kinds of associated analytical spectra, what compound classes are represented.
Labels:
biology,
chemistry,
lab notebook,
programming,
python
Thursday, January 15, 2015
On the pronunciation of "dehydrogenase", "hydrogenated", and "hydrogenation"
The words "dehydrogenase", "hydrogenated", and "hydrogenation" are typically (as far as I've noticed) pronounced with "drog" as the most emphasized syllable. That's how I used to pronounce it too. However, when TAing a biochemistry class taught by a rather ancient professor (Ron Brosemer, who has been teaching at WSU since 1963) I noticed that he pronounces these words with the emphasis the syllable "hy". So the "hydrogen" part of the word sounds exactly like it would if it were pronounced on its own.
At first that sounded weird to me, but now I think it actually makes a lot more sense than the typical pronunciation. It may be that Dr. Brosemer pronounces the words that way intentionally for pedagogical purposes. But I suspect that when he learned these words (presumably in the 1950's), his pronunciation was actually the typical way to pronounce them. There is no element pronounced "hydROGen", so it seems unlikely that the chemists who coined these derivative terms would have said it that way in their new terms. I think it is more likely that the modern common pronunciation arose in people (like me) who learned the terms before understanding their chemical significance.
Using Dr. Brosemer's pronunciation with these words, brings to mind their actual chemical meaning, a dehyrogenase is an enzyme that removes hydrogens from one of its substrates, and hydrogenated oils are oils which have had hydrogens added.
I've adopted Dr. Brosemer's pronunciation, and I think you should too.
At first that sounded weird to me, but now I think it actually makes a lot more sense than the typical pronunciation. It may be that Dr. Brosemer pronounces the words that way intentionally for pedagogical purposes. But I suspect that when he learned these words (presumably in the 1950's), his pronunciation was actually the typical way to pronounce them. There is no element pronounced "hydROGen", so it seems unlikely that the chemists who coined these derivative terms would have said it that way in their new terms. I think it is more likely that the modern common pronunciation arose in people (like me) who learned the terms before understanding their chemical significance.
Using Dr. Brosemer's pronunciation with these words, brings to mind their actual chemical meaning, a dehyrogenase is an enzyme that removes hydrogens from one of its substrates, and hydrogenated oils are oils which have had hydrogens added.
I've adopted Dr. Brosemer's pronunciation, and I think you should too.
Tuesday, October 28, 2014
International Chemical Identifers (InChIs): You should use them!
One easy and increasingly common way to increase the make metabolite data more useful is to associate compounds with their corresponding InChI International Chemical Identifier (InChI) (Heller et al., 2013). An InChI is a unique, standardized text representation of the structure of an organic molecule. Inclusion of InChIs in database records facilitates cross-referencing among databases. The InChI system has a number of advantages over other kinds of identifiers. Some chemical identifiers, such as PubChem IDs, Chemical Abstracts Service (CAS) numbers, and ChemSpider IDs, are database-specific accession numbers with no direct relation to the structure of the molecule they describe, this means that a molecule must have been indexed by one of these services to have an identifier. An InChI, by contrast, is a database-independent structure description, so it can be generated for a molecule regardless of whether the molecule has been indexed by a major database. An InChI can be generated for a novel natural product structure, whereas the other IDs cannot. InChI also has advantages over other linear text representations of molecule structure, such as SMILES. Unlike for SMILES, there is a single open source implementation of the InChI generation algorithm, so while a single structure may have multiple valid SMILES representations, it will only have one Standard InChI representation (Heller et al., 2013). A fixed length compressed version of an InChI, an InChIKey, can be generated from any InChI. InChIKeys are more compatible than InChIs with web search engines such as Google (google.com) (Southan, 2013), however, multiple distinct structure may have, and have been observed to have, the same InChIKey (http://www.chemconnector.com/2011/09/01/an-inchikey-collision-is-discovered-and-not-based-on-stereochemistry/), so InChIKeys should not be used as a basis for cross-referencing. When unambiguous identification of a molecule is the priority, InChI should be preferred. When ease of indexing and searchability is the priority, InChIKey should be preferred. When possible, both identifiers should be listed. By listing InChIs and InChIKeys in websites, databases, and publications (Coles et al., 2005), chemists can enhance the ability of their data to be indexed, searched, and cross-referenced. Free and easy to use software for generating InChIs and InChIKeys are the InChI software available from the InChI Trust (http://www.inchi-trust.org), and MolConverter available from ChemAxon (http://www.chemaxon.com).
Of course, even with the use of InChIs, inconsistencies can still arise in cross referencing. Galgonek and Vondrášek provide an excellent (and Open Access) analysis of the kinds of inconsistencies that can arise, and their sources.
I originally wrote this as part of a draft of the manuscript that eventually became this review article. It's a bit out of the scope of that article, so we dropped it. But I posted it here because I still think it's a good analysis.
References:
Heller et al. 2013 http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3599061/
Coles et al. 2005 http://www.ncbi.nlm.nih.gov/pubmed/15889163
Southan 2013 http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3598674/
Of course, even with the use of InChIs, inconsistencies can still arise in cross referencing. Galgonek and Vondrášek provide an excellent (and Open Access) analysis of the kinds of inconsistencies that can arise, and their sources.
I originally wrote this as part of a draft of the manuscript that eventually became this review article. It's a bit out of the scope of that article, so we dropped it. But I posted it here because I still think it's a good analysis.
References:
Heller et al. 2013 http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3599061/
Coles et al. 2005 http://www.ncbi.nlm.nih.gov/pubmed/15889163
Southan 2013 http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3598674/
Wednesday, August 13, 2014
Chemspider python scripting
In the past, I've shown how to script Chemdraw and ChemAxon for the purposes of converting chemical information among different file formats. In this post I'll show how to achieve (vaguely) similar results using the ChemSpider web API. ChemSpider is nice because (unlike SciFinder) it is free, they don't mind if you reuse their data, and they don't mind if you access their website with scripts. Using ChemSpider has the advantage that it is a huge database and provides cross-references to other databases, it has images, mol files, and lots of other data about each compound.
Sunday, July 27, 2014
srj_chembiolib a set of scripts for doing Bioinformaticky type stuff
This post is to announce srj_chembiolib which in an uncreatively named set of scripts I've written to perform various bioinformatics (and hopefully eventually some cheminformatic) tasks that would otherwise be a pain in the rear to accomplish. Most of the scripts work both as libraries that can be imported into other scripts, and as stand alone command line scripts. Some depend on external libraries such as BioPython. Documentation is mostly found in block comments at the top of the script files. Where possible, for example with the scripts that manipulate fasta files, I've tried to make it so that multiple programs can be chained together with pipes on the command line to accomplish more complex tasks. I hope they're useful for someone.
Here's an overview of some (but not all!) of the scripts in the package:
blast_xml_to_outfmt6.py: Converts Blast+ xml output to '-outfmt 6' style output (a tab separated form). Allows for some additional features not available in the standard outfmt 6, such as printing a line for query sequences that had no hits.
subset_fasta.py: Give it a fasta file and a list of strings, and it will give you a fasta file containing only those sequences whose names contain something from the list of strings as a substring.
extract_massbank.py: A class to read and store data from MassBank format text files, such as those used by MassBank, ReSpect, and Spektraris (my favorite database...).
extract_top_blast_hits.py: Reads a blast xml file and outputs the names of the top hits for each query sequence. There's an option for making a file listing the sequences the queries where the top hit matched in the reverse direction, which is useful, for example with Blastx, to determine whether a nucleotide sequence represents the coding strand, or the non-coding strand.
Here's an overview of some (but not all!) of the scripts in the package:
blast_xml_to_outfmt6.py: Converts Blast+ xml output to '-outfmt 6' style output (a tab separated form). Allows for some additional features not available in the standard outfmt 6, such as printing a line for query sequences that had no hits.
subset_fasta.py: Give it a fasta file and a list of strings, and it will give you a fasta file containing only those sequences whose names contain something from the list of strings as a substring.
extract_massbank.py: A class to read and store data from MassBank format text files, such as those used by MassBank, ReSpect, and Spektraris (my favorite database...).
extract_top_blast_hits.py: Reads a blast xml file and outputs the names of the top hits for each query sequence. There's an option for making a file listing the sequences the queries where the top hit matched in the reverse direction, which is useful, for example with Blastx, to determine whether a nucleotide sequence represents the coding strand, or the non-coding strand.
Tuesday, March 18, 2014
ChemDraw ChemAxon synergy
In my previous post, I was complaining that there wasn't any free software with a nice command line interface to reliably convert molfiles to InChI strings, and back again. I also mentioned that there was an issue with the way ChemDraw converts structures to InChI strings that made it unacceptable for my purposes. The technical issue with ChemDraw is that it doesn't preserve the isoform of tautomers. Some of the molecules I'm interested in contain amides that are typically found in the amide form, rather than the imidic acid form. When I copy these molecules as InChI from ChemDraw, and then paste them back in, the amide is changed to the imidic acid form, which I don't want. It turns out that this is due to a feature of the InChI format (a format that is still mostly opaque to me) called "Mobile H Perception", where it simplifies a molecule encoding by not specifying the which tautomer it is (thereby saving 1 bit of information I guess). Many programs have the option to export InChI with Mobile H perception off, which is what I want, but I can't find that option in Chemdraw.
Automating Chemdraw: win32 com scripting with python pywin32
Once again I find myself adventuring in the land of Windows COM scripts. Last time I tried, with mixed success. This time, I'm using it to control ChemDraw to help me convert molecule formats. Anytime I use COM scripts, it feels pretty clumsy, like it would be a lot slicker just to have a command line utility, but in this case I couldn't find anything that seemed like it would work well enough (update: I later found out about ChemAxon Molconverter which is quite nice), so COM scripts it is. Python is currently the language I do general purpose programming in, and pywin32 works quite well for COM scripting.
The problem: I want to take molfiles from multiple sources and normalize them so that they can be rendered with the same style settings by chemdoodle web components. While I'm at it, I'd like to generate SMILES strings, InChI strings, and InChI key strings (I'd also like to generate IUPAC names, but I gave up on that part) for the molecules in these molfiles.
The problem: I want to take molfiles from multiple sources and normalize them so that they can be rendered with the same style settings by chemdoodle web components. While I'm at it, I'd like to generate SMILES strings, InChI strings, and InChI key strings (I'd also like to generate IUPAC names, but I gave up on that part) for the molecules in these molfiles.
Subscribe to:
Posts (Atom)
