Liang Xu

This is Liang's blog for life and work archive.

Resource competition seminar 2024 Jan - April

This seminar is organised by Christopher Klausmeier as the form of an online seminar on resource competition theory and related ecological theories from January 8th to April 15th 2024. The format is a mix of lectures and discussion of classic and recent papers. Some previous exposure to ecological theories and an intro grad level (e.g. population growth models & competition theory) is desired.

This blog is developed and maintained by Liang Xu, severing as an online lecture and providing an alternative to the programming illustration by Mathematica for those who cannot access Mathematica. The blog is developed using Quarto and hosted on GitHub. The interactive visulation of the model is implemented using R Shiny. If you have any questions or suggestions, or would like to help, make corrections, please feel free to contact me via Email.

The link is HERE.

Get genomes, annotate genomes and analyze genomes

A pipeline is created to estimate maximum growth rates of bacteria from a set of ASVs (fractions of genomes):

  1. Comparing ASVs with database to get the rough matches between genomes and ASVs; BLAST ASVs with database It is easy to feed ASVs fasta files to BLAST to get the matches;

  2. Fetch full genome sequences from NCBI by the genome ids;

  3. Annotate genomes using Prokka;

  4. Using the annotated genomes to estimate the maximum growth rates of bacteria by gRodon2.

The pipeline is tested on Caltech HPC.

The first week of getting into the realm of bioinformatics

The simple workflow of the empirical part of my current project is:

  1. Compare the ASVs of the sampled bacteria with data bases to match and obtian possible species identification;

  2. From the matched genome ids, fetch the full genome data from GenBank and other sources;

  3. Annotate genome using “WHATEVER” programs. Sorry Xin, this word is so impressive to me;

  4. Feed the annotated genes to gRodon to estimate the maximum growth rates of these bacteria.

Looks quite easy!

CLICK THE TITLE TO SEE MORE PAIN!

Several numerical schemes for 1 D advection

Oceanic models often comprise two components. The biological part is to describe ecological interaction in food webs locally, often within a single water pacel. The other part makes use of physical modeling of fluid dynamics, simulating how the focal biotic and abiotic organisms move with water by diffusion and sinking.

My project at Dept of Global Ecology of Carnegie Institute for Science at Stanford University is to use this type of oceanic models to look at the vertical profile of bacteria diversity formed by the ecological interaction and the vertical water transferring.

One techniqe used in this research is to simulate the water advection by numerically integrating the fluid dynamics. Thus, the accuracy of the numerical integration is important to correctly capture the patterns of the focal tracers.

Here in this post, I implemented several schemes to acheive the numerical integration. The code is adapted from the numerical methods for partial differential equations course from MIT.

The implemented code can be found here.

CLICK THE TITLE TO SEE MORE!

Back to life!

Back to life!

Tough life in the past two years!

My family – 3 humans and 1 cat – moved from the Netherlands to the UK, and from the UK to the US.

Excited about the new life and new work in the new continent.

Hope that I can update my blog regularly.

Coming soon!

Might be a good presentation for theoretical models?

Moving from the Netherlands to the UK on 11th Jan 2021, just at the right time when brexit actually starts, when COVID-19 variant virues stopped down the UK, when everything is mess. However, we suceeded. Two grown-ups, one child and one cat. Anyway, I settled down now and started work in Oxford. Today, I’d like to share building a simple scene using Blender to present theoretical models.

Goodbye Groningen! Hello Oxford!

It’s been a while that I haven’t updated my work and life. On 5th of June, I finally defended my thesis and obtained PhD degree. My thesis can be found HERE. Thank my supervisor Prof. Rampal S Etienne and co-supervisor Dr. Sander van Doorn for their guidance in the last 5 years. Thank my colleagues for their help on my work, thesis and the defense and the time we share together. Obtaining the degree was not the end of my acdemic life but a milestone and a new start for the next stage.

Since March 2020 and even earlier, I have been looking for jobs, preferably postdoc positions. However, I don’t know whether it is due to the pandemic or not, instead of offers I got many rejections. It was a tough time period for me. Without boarding on a contract, I have no income but have a family to raise. Luckly, my wife found a job, which seems to some extent to solve our finacial crisis. This allows me to focus on searching for opportunities. Eventually, I found some positions that have a good match for my background. I contacted the group leaders and job posters and tried to highlight myself to gain an interview chance. I got some nice replies but finally they rejected me. The worse part of these rejections is that I don’t even know why I got rejected and where I could improve myself. I started to have doubt on myself. Fortunately, I had one last chance in my first batch of applications.

I encountered one job poster on LinkedIn in July when I was roaming on LinkedIn. Prof. Lindsay Turnbull‘s group at University of Oxford is looking for a postdoc to do simulation modeling on community plant assembly. This is exactly compatible with what I am doing on my third project, the best fit one of all the jobs I have ever applied. So, I saw a fair chance in the research. Immediately, I made the application and sent an email to Prof. Lindsay Turnbull. Very soon, I got reply from Lindsay and we had several back and forth communications. One month later, I got an interview invitation and we had a nice chat on my work and the plan of the work of this position. After one week, a formal offer is sent to me.

Year 2020 is awful. However, we should never lose hope. By this post of an update of my recent situation and experience, I would like to encourage people who have currently been in trouble. Trace the rainbow in the rain.

Data visualization: develop a Shiny app to track COVID-19 spread.

The outbreak of the COVID-19 virus has given me a heavy punch. I have been isolated at home for almost two months with one trip to the nearest trash bin every week. What is even worse is that I cannot get any reply from job hunting. Being so stressed, I decided to develop a Shiny app to track the COVID-19 spread. Hope this may give me a sign of recovery of the world by examining daily data. More information can be found here. A differential equation model is still under construction. Coming soon. Enjoy!

The government should take a fast reaction to prevent COVID-19 development

The outbreak of the COVID-19 virus has given the world a heavy punch in 2020. The growth infection over 30 countries in the world has seen the overwhelming power of the exponential spread of COVID-19 at the early stage. The White House Office of Science and Technology Policy (OSTP) pulled together a coalition research groups and companies (including Kaggle) to prepare the COVID-19 Open Research Dataset (CORD-19) to attempt to address key open scientific questions on COVID-19. Those questions are drawn from National Academies of Sciences, Engineering, and Medicine’s (NASEM) and the World Health Organization (WHO). Flooded by the daily news of how serious the pandemic becomes, I am wondering whether and to what extent the government can stop the pandemic. Specifically, if the government takes a fast response to restrict social activities, will the pandemic be stopped at an early stage? Thus, I took part in one of the competition and built an individual-based virus spread model in which I considered how the speed of the government reaction affects pandemic development. It is an one-week competition that finished in this morning. I create this post by attaching my work here. Enjoy!