Latest / Talk Python To Me / #154: Python in Biology and Genomics
Transcript
- 0:00Python is often used in big data situations. One of the more personal sources of large data sets
- 0:06is our very own genetic code. Of course, as Python grows stronger in data science,
- 0:10it's finding its way into biology and genetics. In this episode, you'll meet Ian Marr. He's working
- 0:15to help make cancer a thing of the past. We'll dig into how Python is part of that journey.
- 0:20This is Talk Python To Me, episode 154, recorded February 9th, 2018.
- 0:26Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem,
- 0:45and the personalities. This is your host, Michael Kennedy. Follow me on Twitter, where I'm @mkennedy.
- 0:50Keep up with the show and listen to past episodes at talkpython.fm, and follow the show on Twitter
- 0:55via at Talk Python. This episode is brought to you by Codacy. Learn how they make code reviews better
- 1:02by checking out what they're offering during their segment. Ian, welcome to Talk Python.
- 1:06Hi, Michael. Thanks for having me on.
- 1:07Yeah, I'm really glad to have you on to talk about Python and biology and genomics. These are two areas
- 1:13where I've wanted to do a show on for a long time, but just haven't managed to get the right stuff all
- 1:19lined up. So really excited to see how Python is playing a role here. And I think it's just another
- 1:26cool example of how Python is being used in all these really varied ways.
- 1:32Great. Yeah, it's really been taken off the last few years, and it's gone really well with
- 1:38what we're trying to get done at our company.
- 1:40Awesome. So let's dig into that. But first, let's hear your story. How'd you get into programming in
- 1:44Python?
- 1:44Yeah, so I started programming when I was 13. My parents got me a Commodore 64. I started learning
- 1:49basic and trying to make my own games and things like that. I went to school for programming,
- 1:55computer engineering, learned a lot of C and Pascal even at the time to date myself a little.
- 2:00And after graduating, I worked at a defense contractor in their logistics department where
- 2:09we did some SGML and XML based tools for documentation of these complex systems that they
- 2:16have. And part of that was, you know, parsing of those files. And we actually were using this library
- 2:22that was built in Python. And I kind of fell in love because of the REPL, right? So being able to kind
- 2:27of open up the REPL and explore and play with the information right there was what hooked me. And ever
- 2:33since then, I've kind of been doing it as a hobby, hoping that it would kind of take off in the web space.
- 2:37And it did with, you know, Django and following on after Rails, but it just never worked out for me. I
- 2:43was always doing Java based development for, you know, e-commerce sites and other stuff that I've done.
- 2:48Java again?
- 2:49No.
- 2:50Yeah, always Java. So I was doing Java. I still like Java, still a good, still consider myself a good
- 2:55Java developer. When I joined my current company, we did a couple of small things in Python and,
- 3:01and then those kind of hooked, took off a little bit and we were able to, you know, kind of just double
- 3:06down and, and add some more features. And, and really since that time with bioinformatics and other stuff,
- 3:12we'll talk about, you know, Python's really taken off and actually made sense to, to really use it as, as one of our
- 3:18core languages for some of our products.
- 3:19Yeah, that's cool. So it's, it's finally like grown into this place where it's not just, oh, I'd like an excuse to use it, but it
- 3:26really makes sense, right?
- 3:27Yep. Exactly right. It actually solves the niche and it's really taken over actually for Perl in a lot of ways in,
- 3:33in the bioinformatics space. And, it kind of sits along with R and has really got a lot of mind
- 3:39share in the, you know, in this bioinformatics world.
- 3:41Yeah. There's probably some cool infographic of Perl, I'm sorry, R in Python, like duking it out over,
- 3:47you know, some sort of data science crown. I don't know what we'll see where that goes, but they're both doing
- 3:52really well. And it's, it's nice to see Python growing so quickly. I really think, you know,
- 3:57you look at the growth of Python, there's like this huge jump in its popularity. Like it's always been
- 4:03growing, which is kind of amazing, but it has this sort of inflection point where it grows faster around
- 4:082012, which I feel like is where the data science stuff really started to kick in for Python.
- 4:13Yeah. NumPy and scikit-learn and Jupyter, pandas, you know, some of these core, a lot,
- 4:18all the machine learning.
- 4:19Yeah. All the machine learning stuff, all those things really have just kind of gotten some mind
- 4:23share altogether. And it's really just, we're kind of riding that wave and it's, it's really great.
- 4:27And, and I, and I think you might've said this in one of your previous podcasts, but the fact that
- 4:31people who are in data science want to learn something that is a general purpose language too,
- 4:34that they could use to make themselves a little bit more marketable is,
- 4:38I think another, another kind of feather in the cap for Python over some of the other languages.
- 4:41Yeah, it definitely is. Awesome. So this, you know, sounds like a really interesting
- 4:46way of getting into it. So you went through the computer engineering perspective. Very nice. And
- 4:52I think maybe the first place to start this discussion really is to talk about the biology
- 4:59and, you know, your company and kind of the problem space that you guys are working in. So then we talk
- 5:05about all the tools and the way Python solving the problems people know. So maybe tell us a bit about
- 5:09what you do day to day. Yep. So I lead development for a company called genome oncology out in Cleveland.
- 5:15We'll talk more about Cleveland later, but so I lead our, you know, software design development,
- 5:19testing, and deployments were founded in 2012. And really that timing is important because really
- 5:25around 2011, some of the big NGS platforms, next generation sequencing platforms were, came out around
- 5:32there. So these are, these include things like the aluminum my seek and ion torrent. And why those are
- 5:37important is because the human genome project, which you might've heard of kind of wrapped up between
- 5:412000, 2003. When did that start? Like late nineties, mid nineties, late nineties. It took, it took a few
- 5:47years for sure. And, you know, it took about $3 billion to complete it. And that was basically just
- 5:51mapping a first draft kind of, of the, of the human genome. And, you know, that's really, it basically says,
- 5:58these are all the variants that, you know, quote unquote, a typical human is made up of. And that
- 6:03took about $3 billion to do. And now we're talking about, you know, less than a thousand dollars.
- 6:07And as that, you know, as the, you know, Moore's law applies to computer chips, right? There's kind
- 6:13of a Moore's law effect, but even I've read some, some analyses where it's like, it's even greater
- 6:18exponentially than Moore's law with these costs of genomics. It really is just driving the price down,
- 6:23which makes it a lot, allows us to apply these technologies for lots of different reasons.
- 6:27And the, you know, my favorite part obviously is the work that we're doing around helping people
- 6:32with cancer and helping use genomics to help people find clinical trials, find therapies,
- 6:37and hopefully improve their, their odds at, at fighting that disease.
- 6:40It's definitely one of the great challenges of our time. You know, it's, we've sort of solved
- 6:46the problems that, that were really bad for humanity to a large degree that, and now cancer is like,
- 6:53one of the major, major things that people have to, to deal with, right? It used to be,
- 6:58you might be hungry, you might be getting eaten by a wolf. Now, you know, you live, you live a long,
- 7:03healthy life until something, you know, you get some kind of bad news, right? And so how much is cancer
- 7:08a genetic problem versus other types of problems, right? You guys are building genetic tools. How's
- 7:15this all fit together?
- 7:16Caveat this by saying, I'm not, you know, a molecular pathologist. I'm not, you know, a bioinformatics person,
- 7:21but cancer is a, is a disease of the genome, right? So you have your genome, you know, 23 chromosomes,
- 7:2723 pairs of chromosomes, you know, you're talking about, you know, chromosome one is got 2000 genes,
- 7:33you know, 250 million base pairs, right? That's the kind of the scope of the data that we have.
- 7:38And cancer is really mutations within that genome causing things to break down in a certain way,
- 7:45right? So, you know, one of the analogies, and there's a book called One Renegade Cell that we kind of make
- 7:49all of our new employees read, really walks you through, you know, the gas pedal, the sticky gas pedal and the cut
- 7:57break line. And basically what ends up happening is your cell, you know, if you were to cut, have a little cut on your
- 8:04finger, the cells around that cut would know to kind of multiply and grow and then cover over that cut.
- 8:10And then they know how to stop, which is really an amazing feat.
- 8:14It's actually unbelievable that the machine that is humans works or any form of animal, really. It's
- 8:20incredible.
- 8:20And it's all these individual cells and there's different signals throughout the cell and those
- 8:25signals are called pathways. And what ends up happening is those pathways stop working in some
- 8:30fundamental way. And the way that they're stop working is through mutations. And those mutations can
- 8:35occur due to, you know, some environmental factor like smoking or uv light or some other mechanism that
- 8:42causes that mutation to happen. And then from there, it ends up that one cell ends up growing and taking
- 8:49over the space of the other cells. So a lot of these drugs and therapies that are out there are looking,
- 8:56you know, some of these targeted personalized therapies are targeting those individual cells
- 9:02that are kind of going off, going rogue and bringing them back and, you know, getting rid of them so that
- 9:07the healthy cells can, can do their thing. And so, you know, our, our software, our company basically is in
- 9:14the business of helping people, helping oncologists, helping pathologists and other folks in the healthcare
- 9:20industry identify what these mutations are, figure out what they mean, and then help their patients get them on a
- 9:26clinical trial or prescribe them a therapy.
- 9:28Right. If you understand the actual genetics that's causing the problem, maybe there's a better,
- 9:33more focused sort of treatment, right?
- 9:36Exactly right.
- 9:37Yeah. So if you look at chromosomes, like we talk about big data all the time, right?
- 9:42But I mean, there's only 23 pairs, so that's no big deal, but they're actually made up of a lot of stuff,
- 9:48right? So maybe like take us through the sort of big data store, just sort of the scale of the data,
- 9:53I guess a better way to put it around chromosomes and genetics.
- 9:56Yep. So there's, you know, 23 pairs of chromosomes and a quote unquote normal human being, right? And
- 10:02you have about 3 billion base pairs across all those chromosomes. So they, and they get labeled one to 22
- 10:08and then X and Y for the sex chromosomes. But the 3 billion base pairs in the human genome, there's about 21,000,
- 10:1624,000 of those are what we call genes. And genes are what are the actual thing that code to proteins. And proteins are the thing that actually make the whole system work.
- 10:25So the genes, the actual DNA part of it is the base pairs. And there's three base pairs, ACs, Gs, and Ts. Those go in pairs of three, you know, sets of three.
- 10:34If you remember from biology, those build out to become amino acids. And then the average person has about 30 million or so variants, 10%. So in one of the tricks that we do, obviously, in the space is we don't actually record all three, 3 billion base pairs.
- 10:49We just record, we just record the delta, just to make it, you know, a lot less data. And then the other part of making it a lot less data is, you know, focusing on specific genes, right? In cancer, you know, there's, depending on the disease type, there only might be three or four genes that matter, or maybe there's only 50 genes that matter.
- 11:07But in this pan cancer, across all the different types of cancers, there might be about 800 or 900 genes that matter. So, you know, our types of tests and sequencing that we do really focus in on those, those smaller regions to just kind of manage the data in a faster way.
- 11:22That collection of, you know, 3 billion base pairs, ACs, Gs, and Ts, those are, those are what are called the reference genome. And the reference genome is what everybody gets compared against, right?
- 11:33So when you're, do your, when sequencing is done on a tumor or on a, you know, a normal cell, the deltas, the variants are what it's actually captured and recorded. And we're actually recording it also in the context of what genes are there. So genes actually don't make up a huge amount of the genome. It's a very small portion of the genome that actually codes the proteins.
- 11:53Interesting. So is there like a bunch of basically instructions that are just off? They just don't go, they don't do anything?
- 12:01They call it junk DNA. Now they don't necessarily, it doesn't necessarily mean it is junk. It's just not necessarily known at this time, or it doesn't, it doesn't code to protein, but maybe it does other things.
- 12:10Like there's things called methylation and these other factors that affect the coding parts of it. And there's lots of theories of, of how that happens. Some of it's through evolution and, and pieces just kind of fall out and don't actually matter anymore in the human species.
- 12:25But there's other, other theories that maybe some of it isn't junk as well. And then even within the exon, even within the genes themselves, there's exons and introns.
- 12:34So the exons are these, these strings within the gene that actually get, you know, sliced out and turned into the RNA. And then that goes and codes the protein.
- 12:44And then the other part's called introns. The introns are the parts in between each of the exons. So understanding how the whole map works, understanding how to sequence the data, get the data off the sequencer and, and then keeping track of all that data is, is interesting.
- 12:58And, and one of the things that might be interesting to your, to your listeners, just because of the whole Python two, Python three thing is these reference transcripts get released over time.
- 13:07Right. So, and the one that's currently, you know, the main one that people use in the clinical setting is called GRCH 37.
- 13:15And that was released in February of 2009 and lots of tools and things were built off of this version of the reference genome.
- 13:22Well, over time they learn new things, they apply new regions. They, you know, it's, it's a very dynamic map.
- 13:27And then in 2013, right, eight, five years ago now, almost they released GRCH 38.
- 13:33The whole industry hasn't moved over to this new, this new version of the reference genome.
- 13:37So it's just the, because you got to update all your tools, update all your databases.
- 13:41And it's a, and it's a, it's a tricky thing to do.
- 13:44This major incompatibility. How interesting.
- 13:46So you talk about this reference genome and there's about 3 billion base pairs and make up a person.
- 13:53How much of that is consistent across every single person and how much of there's difference?
- 14:00Because, you know, I feel like we look at people, we all look quite varied, but then you also hear things like, well, your DNA is 1.5% different than say a chimpanzee or something like that.
- 14:10Right. So give me a sense for, you know, when you say I'm going to save the Delta, what does that look like?
- 14:15Usually an average person has, you know, about 10% variation from the 3 billion.
- 14:20So about 30 million base pairs will be different across different, different people.
- 14:25And, you know, it's obviously the numbers go up and down and there's prevalency frequencies, right?
- 14:30So a lot of these databases that are out there and available for, for people to consume as part of their process, they actually say, you know, we sampled a thousand people.
- 14:38And, you know, 20% of folks had a G in this spot and, you know, another percent had an A in that spot.
- 14:44So that's, that's a big part of just understanding what some of these variants are.
- 14:49And one of the things we do in our tools for cancer is that we'll, doctors are interested in that, that, that prevalency, that's that allele frequency.
- 14:56Because if the frequency is 50%, well, there's no way that that's actually a cancer causing variant because people would be born with cancer.
- 15:04And that just, it just doesn't really work that way.
- 15:06It wouldn't be a viable situation.
- 15:08So one of the data points they like to look at is how often does this variant actually happen in the, in the wild and, and actually in the human population.
- 15:16So it's a very interesting stat.
- 15:18Yeah, for sure.
- 15:19Okay.
- 15:20Interesting.
- 15:20So maybe let's talk about how do you actually do the sequencing at a high level that won't get into the tools and the Python code that you actually make, how that's working in there.
- 15:31But give us the sort of overall pipe.
- 15:34Yeah.
- 15:34Give us the general pipeline.
- 15:36Like how do you go from, you know, a swab on the cheek or whatever it is to, here's your printout.
- 15:43You ACCGTAC is, is you.
- 15:46There's been older technologies that, you know, work in smaller regions and, and can do things like that.
- 15:51There's a thing called Sanger sequencing.
- 15:53But as I said earlier, one of the major changes is in 2011, they did this next generation sequencing.
- 15:59That basically takes raw data right from, from a blood sample or a tumor sample.
- 16:05They put it in this, this machine called the sequencer.
- 16:07And then through the, you know, either chemicals or, or, or lights of, of that actual machine.
- 16:12And once again, this is in my area of expertise.
- 16:15They're able to analyze it and basically do what are called reads.
- 16:18So they're doing, you know, 65 base pairs across or, or what have you and read out ACs, Gs and Ts and write that to a file.
- 16:25And that's written to a file called, you know, either a fast day file or a fast Q file, which has quality associated with it.
- 16:32So all these raw reads are happening and it's basically like little snippets of a book.
- 16:36And, but it's like a book that they, someone's cut up into little fragments and then kind of thrown it up in the air and then try to figure out how to reassemble it.
- 16:44So that process, yeah.
- 16:46So that process is not something we do at my company, but that process is what we call alignment.
- 16:52And we take that book and try to basically tape it together.
- 16:55And the way they do that is by trying to compare regions against the reference genome itself and through math and algorithms and, and some machine learning.
- 17:04Now they're able to kind of align the whole readout of the, of the reference genome.
- 17:09And those get stored into a file called a SAM file.
- 17:12And really it's just a, just a listing of all these different variants, but in a line format.
- 17:16And then those files can get compressed into what's called a BAM file.
- 17:20And then we, you know, there are tools that are open source and, and tools like ours that actually allow you to do visualization of that alignment and really get a good understanding of do the reads line up?
- 17:30Do the variants look right?
- 17:32Is the quality there?
- 17:33And do you believe the actual calls that are being done?
- 17:38And then the next step after aligning it is actually what's called variant calling.
- 17:41So the, you know, some additional software, once again, stuff we don't actually do.
- 17:46It goes through the, these alignment files and makes decision and say, yep, I've, I've read through this, this BAM file or SAM file.
- 17:53And, you know, I believe at this position on this chromosome that it's an A and not a T.
- 17:59And obviously with two pairs of chromosomes, you might have, you know, half of them being A's and half of them being T's and things like that.
- 18:06And cancer is a little bit different, right?
- 18:08Because you then have a mixture of, of tumor cells that are kind of commingled with normal cells.
- 18:14So you might actually get allele frequencies, what we call variant allele frequencies or VAPs that are not 0.5 or 1, but something in between.
- 18:22Because it could be that actual mutation that is causing the cancer.
- 18:26So like half of them have some values there, others have another, right?
- 18:30The original normal cell and then you have these clones of tumor cells that actually, the actual cancer causing cell that is now growing and spreading in that region.
- 18:39Right.
- 18:39So that gives you more or less, here's what we think the genetics is.
- 18:43And then you have to analyze it, right?
- 18:44Right.
- 18:45And this is really where we come into play, right?
- 18:46So our company started in 2012 just because of this NGS data, you know, was starting to overwhelm pathologists and physicians with lots of genomic and molecular data.
- 18:57And the belief of our company is that, you know, all medicine is going to be molecular in the future.
- 19:00And really understanding how that, those, what those variants mean in the context of cancer, especially, is where we really focus our energies.
- 19:09And that includes things like annotating the variants and trying to help people understand, you know, how often do they happen in the population?
- 19:16Has there been papers out there that said this variant's pathogenic or benign?
- 19:21There are some prediction models that people have written that say, you know, this variant will cause the protein to degrade in some known way, right?
- 19:28In the stuck gas pedal or the broken brake line analogy.
- 19:34And then from there, we're able to do decision support, right?
- 19:38So there are FDA drugs that are available.
- 19:41There are clinical trials that are available.
- 19:43These things have very complicated eligibility criteria.
- 19:45And our software helps you, helps doctors, you know, make sense of all this disparate data, bring it all together and say, oh, yeah, for this patient, given these mutations and maybe some other tests and some other data about the person themselves, we can say that, you know, this clinical trial is best for you.
- 20:02Or, you know, this therapy would work for you.
- 20:04The FDA has approved it for you.
- 20:05And one of the interesting things that's happening is to prove the whole idea of cancer is a disease of genetics and not a cancer of, you know, something else, is that these drugs that are getting approved for, you know, lung cancer with a specific variant, well, that drug might work for, you know, a melanoma patient with a specific variant or vice versa.
- 20:24I might be getting the analogy wrong, but you get the point.
- 20:27Basically, it's the specific mutation that matters.
- 20:30The fact that you have a V600E on BRAF is the most important part, not the fact that it was on your skin.
- 20:36That's pretty interesting.
- 20:37Understanding at this level is really powerful.
- 20:39So let's talk about the software stack, maybe at a high level first, then we can dig into some of the tools.
- 20:45Like, what kind of software are you guys writing to solve these problems and where's Python fit in?
- 20:50We started off with, you know, a research application that we used to, you know, get the company started.
- 20:54And then we built our first clinical app for pathologists.
- 20:57And that was all built using Java and a language and GWT.
- 21:01So Google Web Toolkit is a Java-based JavaScript tool, right?
- 21:05So we don't really have any JavaScript wizards in-house.
- 21:08And we've always been, you know, Java-based.
- 21:10And so while that was getting built, we actually partnered up with a team at Vanderbilt University called My Cancer Genome.
- 21:16And they have a website for people that are, you know, looking for information about genetics and cancer.
- 21:22While the rest of my team was kind of building this, our first couple of products, I actually built a curation tool for them.
- 21:28And I built that with the Django admin tool, right?
- 21:30So Django has this great admin tool.
- 21:32So we started, so I was able to kind of whip together a nice content management tool for them so they could get rid of their SharePoint solution that they were running at the time.
- 21:40Anything that gets rid of SharePoint, that's a good thing.
- 21:43That was the thinking there.
- 21:44You can hold your head high that day.
- 21:46We turned off SharePoint.
- 21:47Right.
- 21:48So, yeah.
- 21:48And having a, you know, quick user interface for that.
- 21:51And then we've since evolved that tool.
- 21:52And now that tool is managing not just, you know, some basic content management stuff for the My Cancer Genome site.
- 21:57But it's basically managing all of our knowledge and what we call our knowledge management system.
- 22:02And then what we did was built on top of that Django REST framework API.
- 22:07So using, you know, Tom Christie's tool to build out an API using, you know, REST.
- 22:11And now you can, you know, hit the API and get back specific information running a thing called Match in our software.
- 22:19So you can, you know, given a patient's information, their demographic and whatever biomarkers they might have, you hit our API and we'll give you back, you know, hey, this is a good clinical trial for you.
- 22:30You know, within, you know, 50 miles of the patient, here's a good trial for you to maybe put them on or here's a therapy that's approved by the FDA.
- 22:37That sounds really, really powerful.
- 22:39And some cool tools that are involved in there.
- 22:41You talked a little bit about user interfaces.
- 22:44Is that all Java or are you doing some UI in Python?
- 22:47I've heard your recent stuff about UIs.
- 22:50All our UIs are in Google Web Toolkit right now.
- 22:53We are doing the new version of the My Cancer Genome website using React.
- 22:56So that's one piece of JavaScript that we've started to use.
- 23:00But for the most part, you know, we're building out strong APIs with Python and then our UIs and things are still with Java and GWT.
- 23:09Yeah, that sounds good.
- 23:10I've heard a lot of good things about React, but I haven't done anything with React, so I can't speak too much to it.
- 23:15Yeah, cool.
- 23:16This portion of Talk Python is brought to you by Codacy.
- 23:20If you want to improve code quality, prevent bugs and security issues from making it into production, and at the same time speed up your code review process by 20%, then you need to try Codacy.
- 23:31That's C-O-D-A-C-Y.
- 23:34Codacy makes it easy to track code quality and identify and fix issues by automatically analyzing your commits and pull requests with all the most widely used static analysis tools.
- 23:44Codacy helps great teams build great software.
- 23:48Join companies like DeliverHero, PayPal, Samsung, and more.
- 23:52Try your first code review by visiting talkpython.fm/Codacy and linking your GitHub or Bitbucket account.
- 23:58You can also just click on the Codacy link in the show notes.
- 24:01All right, so let's talk about some of the tools that you're using.
- 24:04So you talked about Django REST framework.
- 24:07That's Tom Christie's tool.
- 24:08I had him on, or framework.
- 24:10I had him on the show a while ago as well.
- 24:12So it's basically layers on REST API on top of Django, right?
- 24:17So maybe tell people how you're using that, like what it's doing for you.
- 24:22One of the key things that we do is annotations.
- 24:24And one of the annotations people want to know is, okay, where is this variant?
- 24:28And where is it in the context of the whole genome?
- 24:30And that's called the G-dot.
- 24:32Or where is it in the context of the coding region of a gene?
- 24:36And that's called the C-dot.
- 24:37Or where does it end up land, you know, once it goes from a C-dot to a P-dot, which is the protein, right?
- 24:43So the actual amino acids.
- 24:44So G-dot, C-dot, P-dot.
- 24:46So that is a nomenclature called HGVS.
- 24:49There's actually a lot.
- 24:50And so our API actually houses, you know, all of our knowledge.
- 24:54But it also calculates annotations for people.
- 24:57And one of the great libraries we use is the BioCommons and HGVS.
- 25:04And those two libraries are open source, open on GitHub.
- 25:07And they do a really good job of doing those calculations.
- 25:10So if you're trying to understand, you know, how to get into genetics, I'd look at those libraries.
- 25:15There's also a library called Biopython.
- 25:17We don't use that, but it's also really good.
- 25:20And then from a bioinformatics perspective, you know, we use that full stack.
- 25:24So we have on top of our API, we've built out some user interfaces that use actually Jupyter and Bokeh and Pandas and NumPy.
- 25:32So I actually take that back.
- 25:34Our genome analytics platform, you know, the major part of it, the container part of it is written in GWT.
- 25:40But it's actually calling in and bringing in Bokeh plots as well.
- 25:44So Bokeh is being used on the back end using Pandas to calculate these great plots.
- 25:49And then we're rendering them in our front end.
- 25:51Yeah, that's really cool.
- 25:51I've never had a chance to use anything with Bokeh.
- 25:54But that's where you basically do the sciencey visualization stuff on the server in Python.
- 26:00And it just transfers over to the web front end.
- 26:03Is that right?
- 26:03Yeah.
- 26:04So it's calculating the JavaScript for you.
- 26:06Because once again, we don't have the JavaScript chops in house.
- 26:10But you're basically running pure Python using Pandas data frames.
- 26:14And then you basically configure your Bokeh plot using this Python library.
- 26:19And then it renders it.
- 26:20And then it basically streams out HTML and JavaScript.
- 26:23And you can just kind of embed it in an iframe or what have you in your UI.
- 26:27And it works great.
- 26:28And it sounds really great.
- 26:29Like you don't have to be in the charting business.
- 26:32Exactly right.
- 26:32Those are live, right?
- 26:33They're not just like PNGs or something.
- 26:35You can definitely work with them dynamically right there.
- 26:39You can use them to generate PNGs if that's what you need.
- 26:41And some of our clients do need that to include it in their research papers if that's what they're using our tools for.
- 26:48But yeah, it's got lots of different use cases.
- 26:50And Python keeps coming up with great libraries for visualizations.
- 26:55And there's lots of different options too.
- 26:57But Bokeh has worked out well for us.
- 26:59Yeah.
- 26:59It's kind of becoming a paradox of choice, right?
- 27:01Like there's a little – as soon as you learn something – yeah, as soon as you learn something, you're happy with it.
- 27:06You're like, but that looks better.
- 27:07Maybe I should do that.
- 27:08And of course, it's a constant treadmill sort of thing.
- 27:12So one of the tools that you're using that didn't surprise me but I think is interesting and I want to hear more about is spaCy.
- 27:17So I don't even think I've mentioned spaCy on the podcast before.
- 27:20Tell us about that.
- 27:21What's spaCy?
- 27:22Yeah.
- 27:22So we've done really a proof of concept at this point using natural language processing.
- 27:27So one of the major challenges in our space and IBM and a few other big companies are spending lots of money to try to tackle this problem.
- 27:35But basically the problem is a lot of these EHRs, EMRs, people are recording their notes about patients in kind of free text.
- 27:43And one of the challenges with that obviously is it's unstructured and it's hard to do anything with it.
- 27:48We're not really in the business of major machine learning.
- 27:51We're kind of in the workflow and tools business.
- 27:53We help people solve problems in kind of a more pragmatic way.
- 27:57We're a small company.
- 27:58We can't spend billions of dollars.
- 27:59But what we're doing is we're taking spaCy and using that to parse some of these free text files and basically make recommendations to people.
- 28:09So doing things like what are called entity recognition.
- 28:13So entity recognition means I'm reading this Wikipedia article and finding all the proper nouns in it.
- 28:18Barack Obama did this in Detroit, Michigan or whatever.
- 28:22Those would all be proper nouns.
- 28:23And this is a great tool for extracting out named entities like that.
- 28:27We've trained spaCy to find named entities based on our ontologies, our data within our KMS.
- 28:35Right.
- 28:35These are our important words.
- 28:37Go see if they say this.
- 28:38Something like that.
- 28:39Exactly right.
- 28:40So there's a pattern matching framework that's within spaCy that's really very easy to use.
- 28:44And then the other thing we'd use it for is for classification.
- 28:47So basically we've trained some models to say, OK, when you read this sentence and it says, you know, estrogen receptor strongly expressed.
- 28:55Well, we want that to actually mean something.
- 28:58We want that to mean ER positive in our in our use case, in our vernacular.
- 29:01And that means something to our our end customers.
- 29:04And what it really does is what we then do is present it to them and say, hey, we saw this sentence and we're you know, we think it says this.
- 29:11Do you agree?
- 29:11Yes or no.
- 29:12And if they say yes, then we kind of keep that that piece of information and use it to further train our model to make it better over time.
- 29:20We're not really trying to we don't really think we can get rid of the human in the loop at this point just because, you know, we're just just at the start of this thing and we want to make sure we get the right answer 100 percent of the time.
- 29:29But what we want to do is make it so they don't have to read, spend a half an hour reading through a document where we can just scan it for them and say, here are the interesting parts.
- 29:38Please go ahead and just confirm it.
- 29:40That's pretty wild.
- 29:41I feel like this whole machine learning AI business is deeply reaching into medicine and things like that.
- 29:49Right.
- 29:49This is just another super interesting example I hadn't even thought of.
- 29:52But, you know, in terms of oncology, like the analyzing, say, scans like pictures to see, you know, have the machine say, no, that looks like cancer to me.
- 30:02Like kind of doing what radiologists might do or something.
- 30:04Right.
- 30:04Exactly.
- 30:05Yeah.
- 30:05It's pretty amazing.
- 30:06We like spaCy a lot.
- 30:07I originally tried playing with NLTK a few years ago and actually kind of ran into some barriers.
- 30:11It's an old that's an older project.
- 30:13spaCy is really modern and that it's, you know, kind of does some of the best practices with Python.
- 30:18I highly recommend it.
- 30:19The documentation is really good.
- 30:20Performs really well out of the box.
- 30:22And I was able to pull together a really good demonstration in just a few weeks.
- 30:26So I highly recommend it.
- 30:28Looks really cool.
- 30:29It definitely, they have it lined up to, when you go to visit spaCy.io, it really looks appealing and polished.
- 30:37I was wondering why you didn't choose, what the difference or what made you choose spaCy over NLTK?
- 30:42It's actually pretty obvious straight away, isn't it?
- 30:44They're doing a really good job with, you know, as a small open source, you know, company.
- 30:48I think there's like maybe two people working there from what I can tell.
- 30:51And they've, you know, they've basically open sourced their core product and they're selling, you know, ancillary products on top of it.
- 30:58And they're consulting services too.
- 31:00And, you know, it seems like a great project.
- 31:02Yeah, that's really cool.
- 31:03And I definitely look at it more because I'm always fascinated how these people are building really interesting business models on top of some kind of successful open source thing.
- 31:13So, yeah, another cool example.
- 31:15So you're building some interesting CLI tools and you guys are using Click, which is pretty common.
- 31:23That's from Armin Roenker who made Flask.
- 31:26You're also using Pex.
- 31:27That, I think, gets less, a little bit less awareness.
- 31:30Tell us about Pex.
- 31:31It's really interesting.
- 31:32Click's great.
- 31:32There's obviously lots of great ways of building, you know, command line tools in Python.
- 31:36They've been doing that for a long time.
- 31:38But Click's really, really easy to use.
- 31:40And then what we find is, you know, how do we get this to our clients?
- 31:44We do a lot of things with Docker.
- 31:46And when we're setting up servers, using Docker to set up a server is great.
- 31:49But we actually also have now command line tools that we're trying to distribute to people.
- 31:54And, you know, pushing things up to PyPI and having them pull things down using pip and having them set up virtual environments.
- 32:00It just sometimes gets a little bit difficult for some of our end users who, you know, might not be Python, day-to-day Python developers.
- 32:08So using Pex, you're able to actually just build the whole module together with the virtual environment baked in.
- 32:15And when you deliver it to them, it just kind of, it just runs.
- 32:18And you can build it to different platforms.
- 32:20You can, you know, on my, on my, for one of my projects, we have a little docking container that actually builds it to Linux and then builds it to macOS.
- 32:28And we're able to share it out to people and, and use the tools without having to go through the whole virtual environment setup stuff.
- 32:33That's really cool.
- 32:34So I think Pex is the one that actually takes everything, zips it up, and then it turns out Python can execute zip files and run from there, right?
- 32:43Which is pretty wild.
- 32:44Do you know if that entirely eliminates the dependency on Python?
- 32:48Like if I had a blank machine or is it just sort of the packaging, but they got to have the base Python there?
- 32:54Someone asked me that just the other day.
- 32:56I don't think, I actually, this thing, it's just the libraries because it doesn't seem that big of a file.
- 33:00It's not like, it's not like when you download a clips and you get the whole jar with it.
- 33:03Yeah, yeah, yeah.
- 33:04I get the whole Java JDK with it.
- 33:06I, you know, I actually don't think, I don't think so.
- 33:08It's pretty cool.
- 33:09Yeah, I've been playing with Pi Installer and it's pretty nice as well.
- 33:13And it kind of, it'll do it so there's no dependency.
- 33:15It's also more problematic because it's trying to solve the problem bigger, I think.
- 33:20So I was just thinking, oh, maybe Pex is going to be nice.
- 33:23Another thing that I think is really cool around this stuff, just as a shout out, is that I've been playing with a lot lately is this thing called GUI.
- 33:30G-O-O-E-Y.
- 33:31Have you heard of this?
- 33:32I did see your little prototype up on GitHub, I think.
- 33:34Yeah, so you can take something like this and then just throw like a little UI with dropdowns instead of command line arguments on top of it.
- 33:41It's pretty cool.
- 33:41Right.
- 33:42So another thing that you are doing is AIoHCP.
- 33:45Tell us, are you using the server or the client component of that?
- 33:49All client.
- 33:50So for us, it's high throughput annotations, right?
- 33:52So one of our clients, you know, basically paid millions of dollars for this high throughput system to generate, to go through the whole alignment and variant calling situation, right?
- 34:01So they're trying to do high throughput, you know, lots of thousands of cases per week or whatever they're doing.
- 34:07And they're trying to keep up with that.
- 34:09But they need annotations from our KMS, our knowledge management system.
- 34:13And so the challenge was, okay, how do I keep up with them?
- 34:16And the first version of my software had trouble, right?
- 34:20So we were, you know, trying to parallelize things with multiprocessors and it worked.
- 34:25But, you know, once I've actually played with AIoHTP and AsyncIO and really understanding how to program in that paradigm and really look for the IO bottlenecks and work around them, it made my redesign of that tool we called our annotator that actually does that annotation much easier.
- 34:44Right. So now, you know, I have basically have these five stages in my little program with queues in between them, you know, where basically what an annotator does is really just reading a file, making a call to an API.
- 34:55A remote API of our service, right?
- 34:57Exactly right. And then injecting that data into the stream and then writing it out to disk, right?
- 35:02So you got basically, let's just say, three spots where you can leverage the AsyncIO.
- 35:06So reading from the original file, making the call to the HTTP server, and then writing out to disk.
- 35:11And, you know, this whole framework allows me to do all three of those things.
- 35:16It kind of just magically balances itself with regards to how much it's reading from the disk, how much it's writing to the disk, and how much it's calling the API.
- 35:24The only thing you have to do is make sure you don't call your API too much unless you want to take down your server.
- 35:28And then our server on the other end is, you know, highly parallelized through using Celery and Redis and handling.
- 35:35It can scale up because we've thrown lots of hardware at that.
- 35:39And so what we're able to do is we're able to keep up with that, you know, multi-million dollar hardware solution with Python 3 and AsyncIO.
- 35:47And it's been great.
- 35:48And probably like, what, one thread?
- 35:49So basically, yeah, one process running and it's doing the job.
- 35:53So we do process, we can then, we can then scale out that one program across multiple processes if we want.
- 35:58But it's, it's really pretty high performance and, and our client's pretty happy with it.
- 36:02That's really awesome.
- 36:02Yeah, because so much of the time, programs that are slow, they're actually just waiting on some other part of the system.
- 36:08They're waiting on the web service.
- 36:09They're waiting on disk.
- 36:10They're waiting on, you know, whatever, right?
- 36:12And so this lets them be productively waiting, basically.
- 36:15It's definitely a paradigm shift.
- 36:17And you have to, you have to think through the whole, this Async method is calling this other Async method and, and really understanding how that all fits together.
- 36:25And it can definitely bend your brain a little bit if you're not used to it.
- 36:28But once you actually do figure it out, it's kind of a superpower and it's really great.
- 36:31Yeah.
- 36:31And as far as superpowers go, like the actual change in the programming model is pretty mellow, right?
- 36:37There's like not, it's not that different from serial requests.
- 36:41Yeah.
- 36:41You just got those couple of keywords with Async and await.
- 36:44And once you figure that out, then it's kind of easy from there.
- 36:47And then it's just really about using cues.
- 36:49And then you get into the whole queuing theory and, you know, lean manufacturing and that kind of stuff and try to understand, like, how do you, how do you remove the bottlenecks from your system so that, so that things go as fast as they possibly can go.
- 37:00And if you, if you kind of have that background and mentality with it, it's, it's really cool.
- 37:04Yeah, that's cool.
- 37:04But of course, anytime you're thinking about concurrency, it can definitely sort of bend your mind, like you said.
- 37:09Yeah, exactly.
- 37:10So speaking about concurrency, another thing that you guys are using that's really cool is channels and celery and Redis.
- 37:16Channels, is that like Django channels?
- 37:18Yeah, Django channels.
- 37:19So one of our tools, there's actually async mode to it.
- 37:21So in the oncology space, one of the big things that happens is for challenging cases, they go to what's called a tumor board.
- 37:29So some of your bigger hospitals will have a tumor board where basically all of the experts at that hospital, or even they could even, you know, WebEx other people in from other hospitals to get to the experts to help people with, you know, rare cases, right?
- 37:42There's a case, there's a variant, they don't know what it means.
- 37:45What do they do about it?
- 37:47And that's what they call a tumor board.
- 37:48And we build software for that.
- 37:50And one of our modes is actually async mode where people can kind of, so they don't actually have to have a WebEx, they can just kind of go to our app.
- 37:56And everybody's in the app at the same time.
- 37:59And if there's a leader, the person's moving around from one page of the app to the other, that's sync mode.
- 38:05And that's actually done using WebSockets.
- 38:06And so if you know anything about Django and, you know, its history, so Django started off, it was built on WSGI, and that's a synchronous protocol.
- 38:15Yeah, all the popular ones are.
- 38:17They still haven't found a way really around it.
- 38:19Godwin, Andrew Godwin?
- 38:21Yeah, Andrew Godwin, yeah.
- 38:22He added this capability to Django, which is basically kind of like this little side thing to Django called Channels.
- 38:28He invented another framework for interfacing in with Django from your web server, right, from Apache or Nginx, and using ASGI, I think is what he called it.
- 38:39And it's an asynchronous platform.
- 38:40And so that enables us to do WebSockets.
- 38:43And the WebSockets is the thing that allows us to do this synchronous movement between different people on our application.
- 38:48So if, you know, one person clicks a link and jumps to another page, all the other people that are on the app jump along with them.
- 38:54And really, the main goal of this is to allow people to kind of dynamically work with the genomic information at their fingertips rather than having, you know, a bunch of people on their phones Googling.
- 39:05What do these variants mean, right?
- 39:07So they're all kind of working together on a single call.
- 39:10So you guys sort of built, like, the Google Docs.
- 39:14You kind of added a Google Docs equivalent type of experience to your app, right?
- 39:19So everybody fires up your app and they have this local sort of guided experience.
- 39:23Yeah, that's a really good analogy.
- 39:25Yeah.
- 39:25Yeah, I think more apps need that.
- 39:26I think that's really awesome.
- 39:27How hard was it to add this channels, to do the channels code and to add this stuff together?
- 39:32Well, the channels part was easy.
- 39:34I mean, it basically just kind of worked out of the box where, you know, we're able to send messages from one thing to the other.
- 39:39But once again, you know, getting the actual communication going from one instance to the other is tricky and it's managing state.
- 39:46And how do you change, you know, from one user to another and make sure that the experience is smooth?
- 39:51That's always tough.
- 39:52And then as you add new features, you need to make sure that the sync thing works across those new features, right?
- 39:57That's right.
- 39:57We've got this new visualization, but it only shows up for the leader, not for you.
- 40:00Those are always fun.
- 40:01But the actual channels plumbing and things like that, even though it's kind of cutting edge code for, you know, in beta or what have you, works really well.
- 40:09And adding the Redis channel in between is what ends up happening when you actually set this up.
- 40:15You end up having, you know, your web server, Nginx.
- 40:18You have what's called an interface server, which is basically an instance of your Django app.
- 40:22You have the Redis channel and then you have workers.
- 40:25So the workers are basically other instances of your Django app, but they're actually doing the actual work of responding to either a plain old HTTP request or to one of these WebSocket requests.
- 40:36And, you know, all that plumbing just worked great.
- 40:38How cool.
- 40:39Yeah, it sounds really fun.
- 40:40I had no chance to use it, but it definitely looks really cool.
- 40:44Yeah.
- 40:44All right.
- 40:45Well, that sounds like quite the list of cool projects and technologies you're getting to put together there.
- 40:50It must be fun to work on.
- 40:51It's great.
- 40:52And, you know, having a purpose and, you know, working for something that's not online marketing or e-commerce or whatever I was doing in my past life is great.
- 41:00So it's great, you know, working on something that I think is going to make a difference.
- 41:03Yeah, definitely trying to make people healthier and live more full lives is way better than trying to optimize that click rate or, you know, convert one more piece of data to try to piece together.
- 41:14No, this person is actually that other person and they're in this demographic, right?
- 41:18Right.
- 41:19Yeah, exactly.
- 41:19So, you know, some other thing that nobody needs.
- 41:22Online stocking is not something I'm interested in now.
- 41:24No, for sure.
- 41:25Cool.
- 41:26So you actually have a couple of somewhat related open source libraries.
- 41:30You want to talk about those a bit?
- 41:31One of the libraries that's out there is called Adders.
- 41:33And it's actually, I think, the basis of the new data classes that's in Python 3.7, right?
- 41:38So the new PEP that does data classes.
- 41:41So there was actually an original project called Adders, which is a really great project.
- 41:45And it lets you define your classes and you get a bunch of, you know, kind of boilerplate Python stuff for free for comparisons and, you know, string representations and things like that.
- 41:55Right.
- 41:55It implements like, say, hashing correctly and all that kind of weirdness that you can overlook.
- 42:00Yeah.
- 42:00The problem I was trying to solve at the time was I wanted an immutable way of reading a YAML file, getting a nested Python object, and not having to, like, munch dictionaries, right?
- 42:12Because you start writing code to dictionaries and quickly things get kind of nasty with some nested dictionary references and things like that.
- 42:20So that's what I was looking for was a way to round trip to YAML, kind of like in Java, there's a library called Jackson that'll do that.
- 42:27It'll round trip to JSON or to what have you.
- 42:29And Python does a good job of, obviously, round tripping from dictionaries to YAML.
- 42:33So what I wanted was an actual object model and patterns, which is really good.
- 42:37But I kind of had just a different mental model, and I wanted something more like the Django ORM.
- 42:42And I had a lot of use cases where I wanted to basically say, yeah, I want to call this a string field, and I want it to always have this validator and this converter.
- 42:50So what attrs will let you do is when you define your fields, you can say it's got this converter and this validator.
- 42:55And I kind of just wanted some templatized versions so I didn't have to keep saying the same thing over and over again.
- 43:01And I also wanted this, you know, this magical transformation.
- 43:03And that's what the related project does.
- 43:06Related.
- 43:06It looks really cool.
- 43:07And it does look like you're working either in the Django ORM or MongoEngine or, you know, one of these types of things where you define what the object actually is.
- 43:19Can you have, like, nested objects?
- 43:22You basically can have, if you declared a class A, it can then relate to class B either as a, have a child object B,
- 43:29or it can have a list of Bs or it could have a map of Bs, right?
- 43:33So those, that object model, and it fully knows how to kind of render it to and from a dictionary.
- 43:40And it does the whole serialization and deserialization for you.
- 43:43That's sweet.
- 43:44So, yeah, definitely people should check this out if they're working on Python and YAML.
- 43:49It definitely looks like a cool project.
- 43:50So the other one's called Rigger.
- 43:53You know, obviously we're in a very, very, it's very important to us to have the right answers for people.
- 43:58Yeah, the answers have consequences.
- 43:59The most important thing about my job, I want to make sure we give people the best data, the most relevant data, the most up-to-date data.
- 44:06And one of the key things we got to do is testing.
- 44:08And we spend a lot of time testing, you know, by hand.
- 44:11We do a lot of unit testing.
- 44:13You know, we believe in the testing pyramid at my company.
- 44:16But one of the things I like to make sure we have is kind of an end-to-end test or an integration test or a functional test, however you want to describe it.
- 44:23And we, in our Java space, we actually use the tool called Cucumber.
- 44:27And what Cucumber lets you do is basically, you know, declare your tests in a given-when-then kind of English-style DSL.
- 44:35And that allowed our product team, you know, our product specialist team, which are basically non-developers, but they understand the science and they understand how to use the software and test the software, to describe how a function should work, right?
- 44:47And given some state, when I do some function, then I should get some result.
- 44:51But what I wanted was something like that on our API side.
- 44:55You know, I didn't want to go through the whole pain of having glue, where people actually had the right code that runs behind this DSL.
- 45:02And since HTTP is kind of its own language in itself, I decided to kind of shortcut it and just basically build out a simple YAML-based approach.
- 45:11And that's kind of where this related project came from.
- 45:14So you write out a YAML file that actually describes your steps.
- 45:16And the steps describe what you make requests to and then get the response back.
- 45:21And, you know, basically it allows us to build out a suite of hundreds and thousands of tests, testing out the software to make sure it gives the same answer every time so that people know when they make changes, they're not breaking anything.
- 45:32And it does it using AsyncIO because I wanted it to run fast.
- 45:36And then we use a thing called JamesPath to actually transform the response that comes back.
- 45:40So the transformation, that allows for the test to not be fragile, right?
- 45:45So one of our rules for APIs is we don't let you change a field or remove a field without, you know, some major consequences.
- 45:53But if you add a field, if you add a field, it's usually not a problem.
- 45:57But it can break your tests if you have very, very specific tests that have all the fields listed.
- 46:03If it doesn't match exactly like a string test, then it's going to break.
- 46:06I'm just expecting this string back or this JSON document back.
- 46:09Are they the same?
- 46:09No, crash, right?
- 46:10Like that's right.
- 46:11Yeah, that's too much.
- 46:12Yeah.
- 46:12So with JamesPath, we're able to kind of filter it down and say, yep, I only care about these three fields.
- 46:17These three fields match exactly as I expect.
- 46:19And if so, it's correct.
- 46:20And so I was going to open source this thing a few months ago.
- 46:23And then I heard on one of your other programs, I think the Tavern CI project was released.
- 46:28And it's very similar.
- 46:28So people should definitely check that one out.
- 46:30And both our project and that project were built kind of based off the idea of PyRest test, which seems to have been abandoned, which was a nice project.
- 46:38It just had a few things that we needed that it didn't have.
- 46:42And, you know, I would say that the reason to choose our project over maybe Tavern CI would be this JamesPath thing.
- 46:48We also have API coverage for Swagger.
- 46:52So we define all of our APIs with the open specification, otherwise known as Swagger, which we still call it Swagger.
- 46:59And so we can tell you, oh, you've got 100% coverage of all your API endpoints and their variables.
- 47:04And then we also actually included the Cucumber reporting HTML reporting tool called Cucumber Sandwich, which brings up a nice pretty, you know, HTML view of your test and shows you how all your steps ran and things like that.
- 47:17Yeah, the graphical output really is nice and colorful.
- 47:19It's you could tell you can get info out of it right away.
- 47:22Yep, it's great.
- 47:22Very cool.
- 47:23And you can see how related fits in there perfectly.
- 47:25Yes, exactly right.
- 47:26Also saw you using AIoHTP.
- 47:28So it's all like async nice and quick.
- 47:30Yeah, so I wrote AIoHTP to do this little rigor testing so I could do parallel testing to kind of speed up our test suite because I didn't want them to, you know, if you have to run them sequentially, it's going to take a lot longer than if I run them all in parallel.
- 47:43So it takes three to five times less time when you turn the concurrency on with our test suite for all of our API endpoints.
- 47:50Very, very nice.
- 47:51All right, so I think that's maybe we'll leave it there for the genomics stuff, but that was a really interesting look at how you're using Python to address these major problems.
- 48:01And I got to commend you.
- 48:03You've got a bunch of really cool tools and systems put together, it sounds like.
- 48:07So nice work.
- 48:07Thank you.
- 48:08I mean, Python's got a great ecosystem, great community, so many great tools.
- 48:12So it makes getting stuff done really fast easy.
- 48:16The paradox of choice is a real thing that continues to vex people building stuff like this, right?
- 48:22Because you build it all out and you're like, oh, but there's some other REST calling API thing.
- 48:27You know, there's maybe I should use API star instead of Django REST framework because Tom Christie's not working on that, right?
- 48:32But you've got to just put a stake in the ground and say we're building something productive here.
- 48:36Always lots of new toys to play with and it can get distracting.
- 48:39Another thing that we want to touch on is there's some kind of event going on in your city.
- 48:44Is that right?
- 48:44Yeah, PyCon is coming here.
- 48:46Yeah, in May.
- 48:47Is that May 7th, I think?
- 48:49Yeah, so beginning of May.
- 48:51Yeah, it'll be here and be right down downtown Cleveland, which is a great city.
- 48:55Been here 18 years.
- 48:56It's about two blocks away from my office, so I'm just going to be able to stroll right over there at the end of the day.
- 49:01And it's great.
- 49:02Cleveland's awesome, so people should definitely take advantage of some of the sites when they're here.
- 49:06I absolutely think so as well.
- 49:08A quick correction, it's May 9th, not May 7th, but basically the same, more or less that time frame, right?
- 49:15And I'm looking.
- 49:15Can I still register?
- 49:17I think I can.
- 49:18I don't think it's sold out yet.
- 49:20It's not sold out yet.
- 49:21So maybe it will be by the time people hear this.
- 49:25So one of the things I wanted to touch on with you, maybe two parts.
- 49:30One is, what advice do you have for getting the most out of the conference itself by, like, I'm within the walls of the convention center, you know?
- 49:38And then people are going to be in your town, a bunch of folks together traveling here for the conference.
- 49:45Like, what would you recommend they do to get the most out of Cleveland?
- 49:48I haven't been to a PyCon since 2005, I think, was when I figured it out.
- 49:53So I think maybe Dallas or something like that.
- 49:55I bet it's a really big difference of an experience.
- 49:58I'm excited to check it out.
- 50:00So it's going to be great to go.
- 50:01You know, obviously, everything's online.
- 50:03So if you've never been and you never noticed the PyCon on YouTube, definitely check that out.
- 50:08So what that should do is give you confidence that you can miss, you know, some of the speaker, some of the talks that maybe you're not super interested in and spend more time in the hallway track and talk and meet some folks in the community.
- 50:19Because the PyCon group does a great job of getting all those videos online.
- 50:23Within like a day.
- 50:24So you almost could watch it while you're at the conference if you really felt like, oh, geez, I wish I saw that.
- 50:28That's my recommendation there.
- 50:30And as far as if you're downtown and you're staying downtown, you know, there's some great restaurants over on East 4th Street.
- 50:35There's, you know, Lola by Michael Simon, the Iron Chef.
- 50:38There's another one called Greenhouse Tavern.
- 50:39There's the House of Blues, which might have a concert that night.
- 50:42There's the Rock Hall, which has some special events sometimes.
- 50:45And if you're, you know, a rock and roll fan, that's definitely a place to check out.
- 50:49The Indians are in town.
- 50:50I checked.
- 50:51The Indians are in town that weekend.
- 50:52They're playing the Royals.
- 50:53So if you're a baseball fan, that's a few blocks away.
- 50:56Yeah, that's really cool.
- 50:57So if people are in town, they could obviously drop in and see that.
- 51:00But if they're traveling from, say, outside the country, right?
- 51:03I know tons of people come from all over the world.
- 51:05Like, when do you get to see a professional baseball game?
- 51:08Right?
- 51:08Like, this might be a chance.
- 51:10Take a couple hours, skip the conference, and go watch it, right?
- 51:12Yeah, the Indians have been good the last few years.
- 51:14So it should be a good team.
- 51:15And then, you know, there's some other areas, too, to check out, right?
- 51:19So there's, on the west side, there are Ohio City, the west side market.
- 51:24You know, lots of breweries.
- 51:25You know, micro pub type of things.
- 51:27Definitely check those out.
- 51:29Playhouse Square, which is, you know, maybe another six or seven blocks away.
- 51:33That's actually the largest performing arts center in the United States, other than New
- 51:38York City.
- 51:38And then University Circle, which is a few miles away.
- 51:41That's not as easy to get to.
- 51:43There's Lyft or Uber.
- 51:44Like, you could get there.
- 51:45Yeah, you could get there pretty easy, right?
- 51:47Exactly right.
- 51:48So, yeah, Cleveland's a pretty easy town to get in and out of, and lots of great restaurants
- 51:51and lots of great things to do.
- 51:52Oh, that sounds really fun.
- 51:53I definitely want to second, first of all, what you said about the hallway track.
- 51:58I may take that track too much when I go to conferences, but I find I skip a lot of the
- 52:03talks and actually just really try to experience being with people.
- 52:07Because when you go to the talk, it's great, but it's really, you sit quietly and you watch
- 52:11a great presentation and you experience it there, right?
- 52:14But you don't interact really with anyone near you or anyone presenting so much at all.
- 52:20And so there's the hallway track, which is just hanging out, talking to people.
- 52:23And if you find yourself in an interesting situation, just take advantage of that because
- 52:28you can always, like you said, go watch on YouTube the thing that you would have gone
- 52:32to see.
- 52:32The other thing that they're doing really well there are open spaces.
- 52:37So I find that open spaces are more participation and engagement than the main talks, and they're
- 52:44not recorded.
- 52:44So there'll be a board.
- 52:46If it's like the last two years, there'll be a big board where people put up index cards
- 52:49saying, in this room at this time, we're going to just meet and it's kind of undirected group
- 52:53conversation about something amazing, right?
- 52:55And so definitely take advantage of those as well.
- 52:58That's great.
- 52:59Yeah.
- 52:59And if you want to connect at PyCon, just send me an email and I'll look for you there.
- 53:03Yeah.
- 53:04Very cool.
- 53:05And do take advantage of some of these fun things that Ian pointed out.
- 53:09Like the worst thing about traveling is if you just get on a taxi to a plane to another
- 53:16taxi to a hotel to a conference center, and then you pop those off the stack again and you
- 53:23do them in reverse, right?
- 53:24Like you want to go like, I was in Cleveland and I saw this amazing thing, right?
- 53:28You know, like same thing, like wherever you go, try to take advantage of that.
- 53:32So that's great.
- 53:32That's great.
- 53:33Yep.
- 53:33Yeah.
- 53:34Awesome.
- 53:34All right.
- 53:35Well, it's down to the two questions.
- 53:37So let me hit you with those.
- 53:38First of all, if you're going to write some Python code, what editor do you run?
- 53:42Converted to PyCharm.
- 53:43It's great.
- 53:44I use the Vim editor mode and it's a great environment and love using it every day.
- 53:50Yeah.
- 53:50Awesome.
- 53:50It's definitely kind of overwhelming when you get started, right?
- 53:53Yep.
- 53:53A lot of great tools and the integration with pytest and the integration with the Vim and Markdown
- 53:58editors.
- 53:58It's a really good tool though.
- 54:00Yeah, it is.
- 54:00Once you get used to using the feature, it's hard to not, it's hard to imagine not using
- 54:04it.
- 54:05Awesome.
- 54:05Okay.
- 54:06And then a notable PyPI package.
- 54:07All right.
- 54:08I'm going to go with deep variant by Google.
- 54:09So I haven't used this.
- 54:11I probably won't ever use this, but it's just such an interesting use of AI.
- 54:15They are actually, you know, taking those BAM pileups that I described and basically using
- 54:21image recognition type AI to actually determine and make variant calls.
- 54:25So what used to be, you know, somebody with a way bigger brain than me doing these calculations
- 54:31with math and trying to figure out the right determination of what a variant is, is kind
- 54:37of being superseded now by this really interesting Google project.
- 54:40So deep variant is the name of it.
- 54:41Okay.
- 54:42That sounds really cool.
- 54:43And just another one of those AIs creeping in to solve these tricky problems.
- 54:47Exactly right.
- 54:48Yeah.
- 54:48Very cool.
- 54:49All right.
- 54:50Well, definitely interesting choices.
- 54:52And thanks for sharing everything.
- 54:54Any final call to action?
- 54:55People want to get involved in biology, genomics, Python?
- 54:59Like, how do they get started?
- 55:00There's a website called BioStars.
- 55:02There's lots of interesting topics up there.
- 55:05It's a stack overflow type clone, I would say.
- 55:08And then there's stack overflow itself.
- 55:10There's, you know, lots of conversation there.
- 55:11Feel free to reach out to me if you're interested in learning more.
- 55:14And, you know, Python is just a great, great ecosystem.
- 55:19And there's so many cool tools to play with.
- 55:21Yeah, I totally agree.
- 55:22So one of the challenges I see for people getting started in this space is they're not researchers
- 55:27or doctors.
- 55:28Like, where do they get the data?
- 55:29Do you know of any, like, good open places to get some data to work with?
- 55:33Lots of the research that's out there is funded by the U.S. government or European governments.
- 55:37You know, NCBI is a website.
- 55:39I can't tell you what the acronym stands for right now.
- 55:41They've got tools.
- 55:43There's data sets out there such as TCGA, which is called, which is the cancer genome
- 55:48atlas.
- 55:49There's a project called Genie, which we were involved with helping them analyze their data.
- 55:55And they've got lots of cancer data that's out there.
- 55:57But lots of tools.
- 55:59So search for keywords like VCF and BAM and SAM tools.
- 56:04And there's lots of different keywords to search for.
- 56:07And, you know, you'll find lots of different data sets.
- 56:09It really just kind of depends on, you know, what kind of analysis are you looking to do?
- 56:12And you also find a bunch of Jupyter notebooks out there, right?
- 56:15People are people doing their analyses in Jupyter notebooks and then posting them to the web
- 56:19for people to follow along with.
- 56:20And really, it's I've learned all this stuff in the last five years.
- 56:23It's not insurmountable.
- 56:25It's just a matter of, you know, having a goal and trying to reach that goal and solve a problem.
- 56:31That's cool.
- 56:31And it's great.
- 56:32Yeah.
- 56:32Solve problems one at a time and eventually have this big tool chest, right?
- 56:36Exactly right.
- 56:37All right.
- 56:38Well, Ian, thanks for being on the show.
- 56:39It was great to talk with you and learn all about this stuff.
- 56:41That's great.
- 56:42Thanks, Michael.
- 56:42Really glad to be here.
- 56:44This has been another episode of Talk Python To Me.
- 56:47Today's guest was Ian Marr, and this episode has been brought to you by Codacy.
- 56:51Review less, merge faster with Codacy.
- 56:56Check code style, security, duplication, complexity, and coverage on every change while tracking code
- 57:02quality throughout your sprints.
- 57:04Try them at talkpython.fm/codacy, C-O-D-A-C-Y.
- 57:09Are you or a colleague trying to learn Python?
- 57:12Have you tried books and videos that just left you bored by covering topics point by point?
- 57:17Well, check out my online course, Python Jumpstart by Building 10 Apps at talkpython.fm/course
- 57:23to experience a more engaging way to learn Python.
- 57:25And if you're looking for something a little more advanced, try my Write Pythonic Code course
- 57:30at talkpython.fm/pythonic.
- 57:34Be sure to subscribe to the show.
- 57:35Open your favorite podcatcher and search for Python.
- 57:37We should be right at the top.
- 57:39You can also find the iTunes feed at /itunes, Google Play feed at /play, and
- 57:44direct RSS feed at /rss on talkpython.fm.
- 57:48This is your host, Michael Kennedy.
- 57:50Thanks so much for listening.
- 57:51I really appreciate it.
- 57:52Now get out there and write some Python code.
- 58:03I really appreciate it.