Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 12 submissions in the queue.
posted by jelizondo on Monday October 05, @04:38AM   Printer-friendly
from the How-is-dihydrogen-monoxide-still-legal? dept.

I suspect most of us are software engineers with our own stories of tracking down gnarly bugs. Have you ever thought of debugging other processes like, say, drug discovery? Here is the story of tracking down an impurity in a new drug

Here's a recent paper illustrating an impurity problem that I'll bet none of us out there have experienced! It describes process work on an antifungal molecule, efinaconazole, which is now available as a generic drug. The authors were checking the purity of various batches of the final product and kept noticing a small peak shouldering the desired one under LC conditions. They estimated it at about 0.06% of the samples (it showed up every time!) and eluted just a bit faster than the real drug.

This of course needed to be tracked down. The standard is generally 0.15% for a known impurity (one whose structure and properties have previously been worked out) and 0.10% for unknown ones. And this peak was getting too close to that cutoff - there were no guarantees that whatever-it-was might not come in across the threshold at some point, for some reason, and cause some real problems. Plus, just what was it anyway? Making sure of the structure could allow a switch to the 0.15% standard eventually.


Original Submission

This discussion was created by jelizondo (653) for logged-in users only, but now has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 3, Funny) by coolgopher on Monday October 05, @07:49AM

    by coolgopher (1157) on Monday October 05, @07:49AM (#1455694)

    Though it could've gone into more detail about the things they tried, and spun more of a story around it for extra entertainment value. Personal preference, of course.

  • (Score: 4, Interesting) by Anonymous Coward on Monday October 05, @08:41AM

    by Anonymous Coward on Monday October 05, @08:41AM (#1455696)

    https://www.youtube.com/watch?v=ksn5yrsC3Wg [youtube.com]
    https://en.wikipedia.org/wiki/Disappearing_polymorph [wikipedia.org]

    In materials science, a disappearing polymorph is a form of a crystal structure (a morph) that is suddenly unable to be produced, instead transforming into a different crystal structure with the same chemical composition (a polymorph) during nucleation.[2][3] Sometimes the resulting transformation is extremely hard or impractical to reverse, because the new polymorph may be more stable. That is, they are metastable forms that have been replaced by more stable forms.[3][4]

    It is hypothesized that contact with a single microscopic seed crystal of the new polymorph can be enough to start a chain reaction causing the transformation of a much larger mass of material.[5] Widespread contamination with such microscopic seed crystals may lead to the impression that the original polymorph has "disappeared". In a few cases, such as progesterone and paroxetine hydrochloride, the disappearance gradually spread across the world, and it is suspected that it is because Earth's atmosphere has over time become permeated with tiny seed crystals. It is believed that seeds as small as a few million molecules (about 10−15 grams) are sufficient for converting one morph to another, making unwanted disappearance of morphs particularly difficult to prevent.[3] It is hypothesized that "unintentional seeding" may also be responsible for a related phenomenon, where a previously difficult-to-crystallize compound becomes easier to crystallize over time.[5]

    Ritonavir
    Released to the public in 1996, ritonavir is an antiretroviral medication used to help treat HIV/AIDS. It has been listed on the World Health Organization's List of Essential Medicines.[18] The original medication was manufactured in the form of semisolid gel capsules, based on the only known crystal form of the drug ("Form I"). In 1998, however, a second crystal form ("Form II") was unexpectedly discovered. It had significantly lower solubility and was not medically effective.[19] Subsequent research showed that the two forms are conformational polymorphs, with Form II more thermodynamically stable since "all of the strong hydrogen bond donors and acceptors have been satisfied".[3]

    Form II was of sufficiently lower energy that it became impossible to produce Form I in any laboratory where Form II was introduced, even indirectly. Scientists who had been exposed to Form II in the past seemingly contaminated entire manufacturing plants by their presence, probably because they carried over microscopic seed crystals of the new polymorph.[3]

  • (Score: 1, Funny) by Anonymous Coward on Monday October 05, @09:56AM

    by Anonymous Coward on Monday October 05, @09:56AM (#1455702)

    They could have followed a 101 class software engineering and they would have learned about the off by 1 problem by lesson three the latest.

  • (Score: 4, Interesting) by Snotnose on Monday October 05, @01:21PM (2 children)

    by Snotnose (1623) on Monday October 05, @01:21PM (#1455720)

    Years ago I worked on a telecom system consisting of a rack of boards, each board took a T1 line and did the analog to digital conversion. A phone call would get a DSP, when the call ended the DSP went back into a pool. The DSPs would randomly go away, the only way to get it back was to reboot the entire board. Not good for a long running cell phone system.

    After about a year my boss asked me to look at the DSP code, which came from another department in a different building and worked just fine for them. I don't know anything about DSP so I'm sitting in my office reading the source and thinking my boss set me up for failure. About the third day I see a function getting called, the manual said "don't call this during an interrupt", the code was an interrupt service handler. I contacted my contact on the DSP side, asked "can you get rid of this?", he did, dropped me a blob, I installed it, and problem solved.

    --
    Being the dumbest idiot in the land and president of the US should be 2 different people.
    • (Score: 3, Insightful) by Freeman on Monday October 05, @01:40PM (1 child)

      by Freeman (732) on Monday October 05, @01:40PM (#1455722) Journal

      Just because you don't know the code. Doesn't mean you can't find someone else's bug. Sometimes it can be hard to see the forest through all the trees.

      --
      Joshua 1:9 "Be strong and of a good courage; be not afraid, neither be thou dismayed: for the Lord thy God is with thee"
      • (Score: 1, Interesting) by Anonymous Coward on Tuesday October 06, @03:03AM

        by Anonymous Coward on Tuesday October 06, @03:03AM (#1455812)
        Yeah. I once hotfixed a bug in the Scopus CRM by hex editing the database file to change the Tcl code (the Scopus CRM was very customizable and used Tcl heavily, and a lot of the Tcl was stored in the db).

        I didn't really know Tcl nor Scopus CRM. It was actually another team which was doing Scopus for customers, but they wanted a fix while waiting for Scopus to fix it officially.
  • (Score: 4, Informative) by VLM on Monday October 05, @02:13PM

    by VLM (445) on Monday October 05, @02:13PM (#1455727)

    The linked author has been publishing cool chemistry stories for decades. He's the "list of things I will not work with guy" who used to describe smelly thiols and worse and fluorine fires or similar. The linked author is pretty much the "Martin Gardner" but of the chemistry world, very entertaining dude.

    This was the understatement of the entire article:

    Analytically, it appeared that the impurity was one Dalton heavier (one atomic mass unit) than the parent, which is a real puzzler.

    Why the story is cool:

    1) See the quote above, its a natural tendency in every STEM field including computer programming to overcomplicate problems. "Hmm so some double bond is now a single bond making space for an extra hydrogen to attach but that should totally mess up the molecule how does it work at all?" how could the compound remain stable and even somewhat functional this is just mysterious so lets add more complication on top of complication to make it work. Ironically the true cause is really, really simple, although this is a pretty rare situation.

    2) You can read it multiple times and enjoy it. The guy's practically trolling us calling it "one Dalton heavier" because a dalton is technically 1/12th the mass of a C-12 atom, not "the mass of a proton or... neutron" although thats close enough most times. Its funny re-reading it.

    3) There's an enjoyable interplay of big themes. In theory a large sample, if F'd with enough, can have almost any rational number as its total average atomic weight. But there's an interplay with statistics where each individual atom has exactly the same mass for that isotope (mostly) and its the ratio of isotopes in the sample thats nearly any possible rational number. The denominator of the rational number atomic mass can't be larger than the number of nuclei in the sample, of course. You can have any average atomic weight of a big ole rock but you can only have certain distinct mass values (aka isotopes) for individual atoms, which gets important later in the story.

    4) Some of its just plain old funny. OK fine I'll ruin the story of anyone who hasn't read it or doesn't care. If that makes you mad you better stop reading right here -> (here) So the funny part of the story is its usually very difficult to intentionally refine deuterium, but these guys found a ridiculous big-pharma way to refine deuterium LOL. Its really kinda funny they're just trying to sit around and invent they next Feynt or delta-8 or something but nah LOL they invented a ridiculously overcomplicated and inefficient chemical process to concentrate and refine deuterium, more or less. I don't think deuterium retails for enough $$ (and no its not cheap...) to make HPLC as a production technique economically viable. I wonder what their price per gram would be of refined pure deuterium, probably several million dollars at lab scale.

    5) Also there are deuterated drugs and medical thingies but usually thats very intentional, not unintentional like this time.

    6) I think the analogy to the problem in computer science would be you got a firmware you don't have access to the innards and this flips one bit and somehow the CRC remains constant and it "works" mostly but how did they figure which bit to flip in theory this should be impossible with a well designed hash function or encryption function LOL. Its a relatable story.

    Its just a plain old cool story.

(1)