<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by YaLinChen (Amber) on Medium]]></title>
        <description><![CDATA[Stories by YaLinChen (Amber) on Medium]]></description>
        <link>https://medium.com/@bionewsdigest?source=rss-7ac58130c285------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DLyTGrVfRPkvx3Yhrs5Qyg.png</url>
            <title>Stories by YaLinChen (Amber) on Medium</title>
            <link>https://medium.com/@bionewsdigest?source=rss-7ac58130c285------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:34:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bionewsdigest/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[iPSC cells and biology in space]]></title>
            <link>https://bionewsdigest.medium.com/ipsc-cells-and-biology-in-space-3888876041f5?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/3888876041f5</guid>
            <category><![CDATA[bionewsdigest]]></category>
            <category><![CDATA[space]]></category>
            <category><![CDATA[biotechnology]]></category>
            <category><![CDATA[phd]]></category>
            <category><![CDATA[pharmaceutical]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 18:47:32 GMT</pubDate>
            <atom:updated>2026-09-25T04:13:09.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>iPSC cells and and biology in space</h3><p>Do you know we grow organs from cells in space? What are iPSC cells and why they have the capability to grow into different organs? Why are we making 3D organoid models in space?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*p2U66HMqf8Xxcb2Cb-sDig.png" /><figcaption>Photo by <a href="https://unsplash.com/@nasa?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">NASA</a> on <a href="https://unsplash.com/photos/international-space-station-orbits-earth-wAkLQnT2TC0?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I attended a <a href="https://www.fujifilmcdi.com/scalable-3d-biology-workshop-seattle-2026/">3D biology workshop</a> at UW on September 23rd. I was there mostly out of research interest and also wonder how my computational skills would fit in different fields in biotech.</p><h3>What are iPSC cells?</h3><p>iPSC cells (Induced pluripotent stem cell) are cells that are reprogrammed (as “<em>induced</em>” suggests in the name) from mature cells to behave like stem cells, which are the cells in embryo (the earliest version of you in the uterus) that can grow into multiple organs (<em>pluripotent</em>) and hence a life (e.g., a human baby). It was first <a href="https://www.cell.com/cell-stem-cell/fulltext/S1934-5909(26)00073-1">discovered in 2005 in Japan</a> [1] in the lab of Shinya Yamanaka, when they input stem cell genes to a mature mouse skin cells and observed the cells transformed to stem cell-like forms. Shinya Yamanaka later received Nobel Prize in 2012 in Physiology or Medicine for his achievement in iPSC cells.</p><h3>Cardiomyocytes (heart muscle cells)</h3><p>iPSC cells triggered by different stimuli can grow into different organoids, such as eyes, brain, kidney, heart, etc. (you name it…) From the literature review, cardiomyocyte seems to be the most studied cell type derived from iPSC, and also the first cell type Fujifilm made into production. Naturally, studying cardiomyocytes aims to solve various heart problems, such as heart failure. Dr. Kristi Kooiker from UW shared her research on using iPSC cells to study the <strong>myosin-targeted small molecule therapeutics</strong> for cardiomyopathy (thickening of heart muscle that is eventually too stiff to flexibly pump the blood to the body, and hence heart failure), Conventionally, we study cells in a 2D manner, meaning on a plate, not considering how cells come together as an organ. The research of culturing iPSC cells into 3D organoids is another methods to study cell behaviors. Indeed, during the workshop, they showed 3D liver cells demonstrated higher liver enzyme (CYP3A4) activity than 2D liver cells.</p><h3>Developing models with than more one cell types</h3><p>In the lab, we can also get creative with iPSC cells, for example, <strong>co-culture</strong>, mixing more than one cell types. For example, gather cardiomyocytes, fibroblasts, and endothelial cells to produce a beating cardiosphere (like a miniheart); this has multiple applications, e.g., checking ion channels of heart muscles to observe muscle strength under various perturbation. Similarly, you culture a 3D liversphere by mising hepatocytes with Stella cells, or even mimicing blood-brain barrier, which I believe would be tremendously helpful to study drug delivery to the brain. In addition, developing a 3D blood vessel is a potential solution for implants. Advanced Solutions Life Sciences are developing a lot of solutions in microvasculature. As for the informatics side, their machine has BioApps, where you can upload a protocol, and the workflow is automatically created, including a digital twin.</p><p>In addition, you can also <strong>combine cell types from different organ systems</strong> to study physiologic pathways, such as liver+kidney for hepatorenal syndromes, brain+gut from gut-brain axis. But one interesting question raised from the audience is about which media to culture the cells. Since different cells thrive in different environments, there is not yet a clear protocol on how to choose the medium when simultaneously culture different cells.</p><h3>FDA New Approach Methodology (NAM), encouraging iPSC cells in drug discovery and development</h3><p>In short, iPSC has become an important platform for testing drug efficacy. And indeed, one of the core message from the workshop is the recent <a href="https://www.fda.gov/science-research/science-and-research-special-topics/new-approach-methodologies-nams">FDA endeavor on transforming drug safety evaluation by introducing New Approach Methodology (NAM)</a> [2]. We can break down NAM to 3 categories: (1) 2D &amp; 3D iPSC, (2) microphysiology, and (3) in silico &amp; AI modeling. To develop these different strategies of NAM as drug evaluation, there are four qualities to meet:<br>1. reliable and consistent: getting consistent results from each experiment of iPSC-grown organoids is important for replicability and result reliability<br>2. scalable: encouraging inter-lab collaboration. <br>3. transparent: traceability of experiment protocol and samples<br>4. human-relevant: solving human-relevant problems</p><h3>Precision medicine</h3><p>Now, you may wonder, yes, iPSC cells are reprogrammed from mature cells. But where are these mature cells from? In biological experiments, there are biobanks that store samples from donors (with consent). From a drug development pipeline, we take cells (e.g., fibroblasts [3]) from patients and develop their individualized models to test drug efficacy, basically achieving precision medicine. Dr. David Hsieh from Cellentia introduced patient-derived models by using circulating tumor cells [Note 1] to recreate tumors in the lab, and test the efficacy of drugs or combinations of drugs for this specific patients. However, patient-derived models have some challenges needed to be solved. First and foremost, obtaining samples from patients is not easy. Second, among the cells sampled from patients, if we reprogram two cells to be iPSC cells, their developed organoids (e.g., two tumors from two cells) may behave differently, presenting different biology.</p><h3>Biology in space</h3><p>There are so many applications with iPSC cells with 2D and 3D platforms. We can not only understand disease modeling better but also develop personalized treatments by generating individualized disease models for you! Another really cool area is biology in space [4]. In theory and evidence shows, biology progresses faster in space (physiology ages faster in space) due to low gravity that presents as stress signals to our body (abnormal as outer space is different from 1G environment on Earth) and hence triggers pathways that accelerate aging. There are now experiments of growing organoids in space to understand the full disease trajectory in a much shorter timeframe [5] (e.g., culturing a kidney in space to understand chronic kidney disease)</p><p>This is a really cool and mind-blowing area that I need to write about!</p><p>[Note 1]: Cellsearch is so far the only FDA-cleared methods for capturing and counting circulating tumor cells.</p><p>[1] Yamanaka S. Two decades of induced pluripotent stem cell research: From discovery to diverse applications. Cell Stem Cell, 33, 372–381</p><p>[2] <a href="https://www.fda.gov/science-research/science-and-research-special-topics/new-approach-methodologies-nams">https://www.fda.gov/science-research/science-and-research-special-topics/new-approach-methodologies-nams</a></p><p>[3] Raab, S., Klingenstein, M., Liebau, S., &amp; Linta, L. (2014). A Comparative View on Human Somatic Cell Sources for iPSC Generation. <em>Stem cells international</em>, <em>2014</em>, 768391. <a href="https://doi.org/10.1155/2014/768391">https://doi.org/10.1155/2014/768391</a></p><p>[4] <a href="https://www.nasa.gov/missions/station/applications-within-reach/?utm_source=gemini#:~:text=Tissue%20Engineering%20and%20Biomanufacturing.%20In%20microgravity%2C%20tissues,be%20constructed%20and%20used%20to%20inform%20medicine">https://www.nasa.gov/missions/station/applications-within-reach/?utm_source=gemini#:~:text=Tissue%20Engineering%20and%20Biomanufacturing.%20In%20microgravity%2C%20tissues,be%20constructed%20and%20used%20to%20inform%20medicine</a>.</p><p>[5] Marotta, D., Ijaz, L., Barbar, L., Nijsure, M., Stein, J., Pirjanian, N., Kruglikov, I., Clements, T., Stoudemire, J., Grisanti, P., Noggle, S. A., Loring, J. F., &amp; Fossati, V. (2024). Effects of microgravity on human iPSC-derived neural organoids on the International Space Station. <em>Stem cells translational medicine</em>, <em>13</em>(12), 1186–1197. <a href="https://doi.org/10.1093/stcltm/szae070">https://doi.org/10.1093/stcltm/szae070</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3888876041f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What does it mean when the model loss goes down?]]></title>
            <link>https://bionewsdigest.medium.com/what-does-it-mean-when-the-model-loss-goes-down-fe4e35c3d860?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe4e35c3d860</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 04:18:42 GMT</pubDate>
            <atom:updated>2026-09-18T15:49:14.898Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*hJoclSJgHKHh_as12M2-aQ.png" /><figcaption><a href="https://unsplash.com/illustrations/a-cartoon-triangle-character-using-a-laptop-NolacJp8Xqg">Unsplash</a></figcaption></figure><p>If you are training machine learning models, a <strong>loss curve</strong> is something you always track. The curve plots the model loss as a function of time/epochs; aka how model loss changes as training continues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*lz_OMFqMKz5tyVWAKmT41A.png" /></figure><p>Depending on your prediction outcome, you may use <strong>mean squared error (MSE)</strong> as the loss that your model optimizes for. But <strong>what does it mean when you get the final MSE as 0.1 vs 0.3? How do we know if the model is better than a random guess?</strong></p><p>I had this question when doing research, interpreting MSE. And so I want to put down some important strategies when using continuous outcomes.</p><h4><strong>Preprocessing of continuous outcome</strong></h4><p><strong>Step 1. Plot the distribution of the continuous outcome. </strong><br>Check if the data follows roughly a Guassian distribution. For example, if the data is right-skewed, log-transform (natural log) the data, and check if the post distribution more resembles a Guassian curve distribution.</p><p><strong>Step 2. Normalize the outputs<br></strong>Just like continuous features, we also normalize [1] the continuous labels, using the mean and standard deviation from train labels to standardize them as well as the validation and test dataset. [2]</p><h4><strong>Interpreting MSE</strong></h4><p>Now let’s interpret MSE. And more importantly, how a baseline model MSE looks like.</p><p><strong>MSE formula</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*2y_yU8rFsF12g3BInRk8uA.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Mean_squared_error">https://en.wikipedia.org/wiki/Mean_squared_error</a></figcaption></figure><p>MSE, mean squared error, has two parts. First look at latter part, <strong><em>squared error</em></strong>, means the difference between prediction and label, and taking a square. This avoids directionality where predictions that are too high and too low will cancel each other out with out taking the square. Note that every y_prediction has a corresponding y_label</p><p>The first part of the term is <strong><em>mean</em></strong>. This simply summing up the squared error from all pairs of y_label and y_prediction, and taking the mean (divided by nas in the formula) of this sum so different results can be comparable.</p><p>Now, <strong>with a z-score normalized label, the resulting label distribution should have a center close to 0 and std close to 1</strong> (due to how z-score transformtion is done; see ref [1] for more details). Therefore, <strong>as a random model always predict mean</strong>, in this case, it means the model always predicts 0.</p><p>Suppose y_label and y_pred are already standardized, and mean of y_label is mean ~0, standard devision is std ~ 1.</p><p>The MSE formula <strong>reduces to MSE = (y_true — mean)² / (N*std²).</strong> MSE * std² = (y_true — mean)²/N, which is the averaged squared error. Since we normalize y label, std ~ 1. Therefore the averaged squared error from the model is MSE *unit squared of std.</p><p>This is why when we interpret MSE of 0.1 using standardized labels, it means the model on average predicts off by 0.1.</p><p><strong>MAE loss</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*wO5daiG6ew1okfapOpmCdA.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Mean_absolute_error">https://en.wikipedia.org/wiki/Mean_absolute_error</a></figcaption></figure><p>Another actually more interpretable loss is mean absolute error (MAE). With a standardized label distribution, the formula reduces to |<strong>y_true — mean| / (N*std). </strong>Therefore, the interpretation of an MAE is even more straightforward: on average the model predicts off by MAE unit of std.</p><p>A little tool to help you learn the math interactively:<br><a href="https://ambercheny.github.io/MSE-loss/">https://ambercheny.github.io/MSE-loss/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKGf-tNaWZZ0GHrcSPWm1A.png" /></figure><p>[1] <a href="https://en.wikipedia.org/wiki/Normalization_(statistics)">https://en.wikipedia.org/wiki/Normalization_(statistics)</a><br>A list of normalization method. In this article, we refer to Z-score method.</p><p>[2] <a href="https://arxiv.org/abs/2512.23787">https://arxiv.org/abs/2512.23787</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe4e35c3d860" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reviewing P-value]]></title>
            <link>https://bionewsdigest.medium.com/reviewing-p-value-8ea882ba2181?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ea882ba2181</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 01:42:15 GMT</pubDate>
            <atom:updated>2026-06-20T01:42:15.235Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, I am going back to the basics, reviewing the concept of P-value, after soullessly reading and accepting that “P-value &lt; 0.05 as statistical significance” for a thousand times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*Icxha-9wrTCAzeMagnAyqg.png" /><figcaption>Photo by <a href="https://unsplash.com/@kierinsightarchives?utm_source=medium&amp;utm_medium=referral">Kier in Sight Archives</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Code to reproduce the figures: <a href="https://github.com/ambercheny/hypothesis-testing">https://github.com/ambercheny/hypothesis-testing</a></blockquote><p>To understand P-value, we need to first stop thinking about the term P-value (stop the echo in your brain). Let’s zoom out and look at the first important concept, hypothesis testing.</p><h4><strong>Hypothesis testing</strong></h4><p>Every day we look at hundreds or thousands of different numbers, and each interpretation has a hidden agenda, is this value higher/lower than I would expect?</p><p>Hypothesis testing is a statistical framework that aims to compare two values and the null hypothesis is that two values are no different whereas the alternative hypothesis is that they are different (or one is higher than another; this is two-tailed/one-tailed problem given what you want to know). Essentially, we want to know how far away the two distributions are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*WLegKoXQUqqF8AQ74TiJJg.png" /><figcaption>Comparing two distributions</figcaption></figure><p>However, we need to have criteria to establish how much different the two values have to be for them to be truly different, in which case we can “reject” the null hypothesis.</p><p>So we need to introduce another concept, significance level.</p><h4>Significance level</h4><p>The significance level ($\alpha$) is actually the probability of falsely rejecting the null hypothesis when it is actually true. The commonly set threshold is 0.05, which is why we read a lot in scientific papers that “P-value &lt; 0.05 as statistical significance.” For example, if we want to know if a group of students are taller than the average height of their age, then if their height mean falls into the shaded area (covering 5% of the sampling height curve, then it means that it is true that these students on average are taller than average. This method that checks whether a value falls in the shaded area (<em>critical area</em> as most statistical textbooks refer to) is the <strong>critical value method</strong>.</p><blockquote><strong>Critical value method</strong> checks whether the observation falls into the shaded area (critical area) defined by the significance level. Falling into the critical area means the observed value is so different from the null and that there is a less probability than our significance level to falsely reject the null hypothesis, giving us the justification to reject the null.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*3nh6KSRabvhEQLcWXJkndA.png" /><figcaption>Is the observed value significantly different from null hypothesis?</figcaption></figure><h4>Z-test</h4><p>Notice that we have converted the null hypothesis curve as a standard normal distribution, with mean = 0 and standard deviation (std)= 1. So when we compare the group mean to the null hypothesis, we need to compare on the same scale. This conversion is called <strong>Z-test</strong>. Nowadays statistical software like Python, R, etc. handle this automatically for you when you run hypothesis testing such as t-test. But conceptually this is important to understand how the comparison works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*8_CGbzT3kLFkeG2LbuDuQA.png" /><figcaption>Source: <a href="https://en.wikipedia.org/wiki/Z-test">https://en.wikipedia.org/wiki/Z-test</a></figcaption></figure><p>By converting our data to a standard normal distribution, we can use universal reference tools — like a Z-table or t-table — to instantly find the exact mathematical boundaries for our test. For example, a significance level of 0.05 corresponds to 1.64 std with a one-sided comparison (e.g., is students’ average height <strong>taller</strong> than average) and 1.96 std for a two-sided comparison (e.g., is students’ average height <strong>different from</strong> the average).</p><h4>The P-value approach</h4><p>The p-value is then the tail area of the observed value Z-score, meaning the probability of seeing the observed result on the null hypothesis distribution. When the P-value is lower than significance level, meaning the observed value is more unlikely than what expect, we “reject” the null hypothesis and conclude that there is statistical difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*0LlM7Ey0necxPaG033uxug.png" /><figcaption>P-value at significance level = 0.05</figcaption></figure><h4>If you still cannot fully understand, what you should take away</h4><p>Next time, when you read a p-value, convert the p-value to z-score (see a quick <a href="https://github.com/ambercheny/hypothesis-testing/blob/main/p_to_z.py">script</a> for conversion), draw a bell curve, and put the z score on the curve. Then draw the significance level on the curve. If the p-value falls OUTSIDE of the critical area, then we reject null hypothesis and conclude that there is statistical significance. Otherwise, the comparison is not satistically different.</p><h4>If you notice something…</h4><p>All the math above uses/assumes that the null hypothesis comes from a normal distribution. This needs to be true for Z-test to be valid and such assumption is usually met when you are testing with large samples. For questions such as when the group of students is less than 30 people, we use <strong><em>non-parametric tests</em></strong> like Mann-Whitney U test to accommodate for non-normal distribution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ea882ba2181" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A note on distance metrics in machine learning]]></title>
            <link>https://bionewsdigest.medium.com/a-note-on-distance-metric-in-machine-learning-379f57ac2915?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/379f57ac2915</guid>
            <category><![CDATA[bionewsdigest]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Sat, 02 May 2026 20:19:44 GMT</pubDate>
            <atom:updated>2026-05-02T20:24:45.356Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwDcPhdTcDO2E8iOylQLbA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@karepesinde?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Cht Gsml</a> on <a href="https://unsplash.com/photos/desk-with-calculator-glasses-and-drawing-tools-pqMG4axFz_o?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I have found that to quickly understand a machine learning model is to first look at the <strong>objective / loss function</strong>. It directly tells you what a model is optimized for. For example, if you know first that the model has a mean-squared error function, you would have an instinct that it is a continuous output, most likely a regression problem rather than a classification problem (this is a simplified example). On a high-level, all models want to know how “close” the predictions are to the ground truth. But it varies as how models measure this “closeness”.</p><h4>The concept of loss function in supervised, unsupervised, and self-supervised settings</h4><p>To more systematically look at this topic, we can think about what distance/loss means in different types of learning (Table 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*y1TZfgu7jyP5Bvt9HB4mUA.png" /><figcaption>Table 1. Distance measures in different types of learning</figcaption></figure><p>For a <strong>supervised learning task</strong>, you have ground truth labels to compare against. Depending on the label distribution, which is conditioned on the prediction task (continuous vs discrete, assumption of the distribution types), we choose different loss functions. For <strong>a binary outcome</strong>, we compare the predicted distribution with the ground truth distribution through methods like Kullback Leibler (KL) divergence that gives the foundation of cross-entropy loss. For <strong>a continuous outcome</strong>, we directly compute how close the preditced values are to the ground truth values via mean-squared error (MSE), which is the squared distance between two datapoints.</p><p>For an <strong>unsupervised learning task</strong>, such as clustering, the goal is to form groups such that the distance among the datapoints in a group is minimum and the distance between groups is maximum, producing the most separate and distinct clusters [1]. For <strong>self-supervised learning</strong> models such as autoencoders, the models are trained to reconstruct a part of or the entire original inputs, encouraging it to learn the underlying structure of the data. In this case, the objective is to make the reconstructed output match the original input as closely as possible</p><h4>Types of distance metrics</h4><p>The most common type of distance is <strong>Euclidean distance</strong>, it is simply the shortest distance between two points (Figure 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*KvSL72XOU9B7SELNe4gHpQ.png" /><figcaption>Figure 1. Euclidean distance</figcaption></figure><p>But depending on the objective you want to optimize, you might want different kind of distance metrics (Figure 2). <strong>Manhattan distance</strong> is useful when you are only allowed to move north/south/east/west, not diagonally. Another metric is <strong>Chebyshev distance</strong>, which is the maximum absolute difference across coordinates between two points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*9QopBWCm91PX-5dahxlfXQ.png" /><figcaption>Figure 2. Various types of distance metrics</figcaption></figure><h4><strong>Application 1: Self-organizing map clustering method</strong></h4><p>We do not always use Euclidean distance because we may have different goals. One of the most commonly used clustering packages in bioinformatics is <em>FlowSOM</em> [2], which is to initialize an NxM grid with random weights and fit datapoints to the nodes on the grid to form clusters.</p><p>There are two steps where distance metrics should considered (Figure 3). First, the distance between a new datapoint (<em>blue point</em>) and weights on the grid. In the original paper, the matched node to a given datapoint is by the minimum <strong>Euclidean distance</strong> to determine the similarity between the datapoints and model weights. Then, the weights on the grid would get updated given the new datapoint. But instead of updating the whole grid, we determine <em>a neighborhood function</em> that we only update the neighbors. <strong>Chebyshev distance</strong> is chosen here determine <em>a square neighbor</em>; for example, any node with a distance of 1 (<em>orange nodes</em>). Note that if we use Euclidean distance to determine the neighborhood (<em>dark blue circle</em>), then the nodes at the four corners will be discarded since their distance to the center node is √2 instead of 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*9iOy5Qr2YS-y6ESXB1fzKQ.png" /><figcaption>Figure 3. Illustration of self-organizing map</figcaption></figure><h4>Application 2: Point cloud autoencoders</h4><p>Another big project that makes me to think about distance metrics is point cloud autoencoders. Point cloud is a data representation method to represent 3D objects (Figure 4). As autoencoders reproduced the entire point cloud sample, the loss is to compare the similarity of input and the prediction. One popular metric to use is <strong>Chamfer distance</strong>, which computes the sum of squared distances from each input datapoint to its nearest neighbor in the predicted set, and from each predicted datapoint to its nearest neighbor in the input set [3]. The bidirectional formulation accounts for cases where a predicted point does not correspond to any point in the input. In such situations, the nearest input points are still far from the predicted point, causing the prediction-to-input term to become large and penalizing points that do not belong to the original distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*sCADJydr0XCKwLEJnQH7ig.png" /><figcaption>Figure 4. Point cloud</figcaption></figure><h4>Conclusion: Read the loss/objective function first, using the top-down learning method</h4><p>To conclude, I’ve found that understanding what a model is optimized for quickly reveals the overall objective of the work and the type of problem it is designed to solve. This makes it more efficient to grasp the big picture of the topic, rather than diving straight into the often complex model architecture.</p><h3>References</h3><ol><li>Hassan, B. A., Tayfor, N. B., Hassan, A. A., Ahmed, A. M., Rashid, T. A., &amp; Abdalla, N. N. (2024). From A-to-Z review of clustering validation indices. <em>Neurocomputing</em>, <em>601</em>, 128198.</li><li>Van Gassen, S., Callebaut, B., Van Helden, M. J., Lambrecht, B. N., Demeester, P., Dhaene, T., &amp; Saeys, Y. (2015). FlowSOM: Using self-organizing maps for visualization and interpretation of cytometry data. <em>Cytometry. Part A : the journal of the International Society for Analytical Cytology</em>, <em>87</em>(7), 636–645. <a href="https://doi.org/10.1002/cyto.a.22625">https://doi.org/10.1002/cyto.a.22625</a></li><li>Fan, H., Su, H., &amp; Guibas, L. J. (2017). A point set generation network for 3d object reconstruction from a single image. In <em>Proceedings of the IEEE conference on computer vision and pattern recognition</em> (pp. 605–613).</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=379f57ac2915" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 reasons why your machine learning models fail]]></title>
            <link>https://bionewsdigest.medium.com/5-reasons-why-your-machine-learning-models-fail-f92ea5b3d3eb?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/f92ea5b3d3eb</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 23:11:59 GMT</pubDate>
            <atom:updated>2026-03-01T23:12:51.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*25LRFOo9y0qo5vuJ" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We’ve all been there… trying different hyperparameter search space and search algorithm, be it grid search, random search, or Bayesian algorithm, just to squeeze out the most we can from the machine learning (ML) models. While hyperparameter optimization is a critical step — and arguably the easiest to automate thanks to tons of specialized packages — it represents only a fraction of the ML lifecycle. Below is my takeaway after reading <a href="https://www.amazon.com/Designing-Machine-Learning-Systems-Production-Ready/dp/1098107969">Designing Machine Learning System</a> (DMLS; Chapter 6) and a blog post from Andrej Karpathy (<a href="https://karpathy.github.io/2019/04/25/recipe/">A Recipe for Training Neural Networks</a>).</p><h3>5 reasons why your ML models may fail</h3><h4>1. Data problems</h4><p>Any kind of data analysis, be it ML or not, data is still the king. Without good data, “garbage in, garbage out”. There are multiple ways the final datasets can contain compromised data, during <strong>data collection, labeling, preprocessing</strong>, etc. Make sure you understand how the data is collected so the methods of preprocessing handles the potential biases in collection. For example, when you deal with missingness, do you remove a feature of high missingness or the observations which lack values for this feature? The right choice depends on how well you understand the data.</p><h4>2. Theoretical constraints</h4><p>Every model comes with its own assumptions. If you use a linear model to learn a non-linear problem (e.g., the decision boundary is non-linear), then no matter how you tune the model, you will not get a good prediction.</p><p>Start with <strong>data exploratory analysis</strong> first, including checking feature distribution, label distribution, and missingness patterns. Then, <strong>manually classify a few samples</strong> yourself. Look at the spreadsheet and make your prediction. This gives yourself a better idea of what model architectures to use. For example, if you consider a lot of feature interactions when making a prediction, then you may consider random forest over logistic regression.</p><h4>3. Poor choice of features</h4><p>There might be infinite combinations to include all the features you have. Too many features may lead to overfit or even worse, data leakage. Take data leakage as an example consequence, “[when] predict[ing] how long an employee will stay at a company, the starting date and the end date separately doesn’t tell us much about their tenure, but both together can give us that information.” (from DMLS) When this model is deployed, the performance can be really bad because the model actually just learns to subtract the end date and the start date without learning any other features. If you are not giving the model the right kind of information for the problem to solve, it will never learn to solve the problem.</p><h4>4. Poor implementation of model</h4><p>I feel this is more case by case as each model has different aspects. My general take is to think about two aspects.<br>1. <strong>What affects model convergence</strong>: gradient update, learning rate (decay)<br>2. <strong>Reproducibility</strong>: random seeds of models and dataloaders</p><p>For example, you forgot to turn gradient update off during validation since validation happens between training epochs. The list goes on. Create your own checklist.</p><h4>5. Poor choice of hyperparameters</h4><p>“… one set of hyperparameters might cause the model to never converge but another set is a great fit for your data.” (from DMLS) Again, we have all been spending days to find the best search space. This is one asepct of tuning the ML models, but I’d argue that this is probably the last place you should look into.</p><h3>4 strategies to start building ML models</h3><p>“Debugging should be both preventive and curative”. What can we do to mitigate the risk of model failure at the first place?</p><h4>1. Start with a simple model</h4><p>No matter what architecture you plan to use, start with the simplest version of it. Even if you’re planning a deep transformer, start with a single layer. Make sure the data flow through the model is correct, such as the dimension of input and output.</p><h4>2. Overfitting a few samples</h4><p>I did not know this trick before I read these articles. The idea is to train the model on a small fraction of samples (e.g., 10 samples) and use the same samples as test. If a model architecture does fit the data distribution or labeling is correct, the loss should be minimal or a 100% of accuracy. If not, then something is wrong with the implementation. (see below <strong><em>Reasons ML model may fail</em></strong>)</p><h4>3. Set a random seed.</h4><p>If your model has a stochastic nature — which almost all do, from random forests to deep learning — setting a seed is the only way to save your sanity. This ensures reproducibility so you do not have to scratch your head tomorrow when you run the model again and everything is different.</p><h4>4. A BIG run: have a big model that overfits, then regularize</h4><p>If the previous “overfit on tiny sample size” works, it confirms that your model is actually capable of learning and that a ‘solution space’ exists with at least one local minimum. Now, we can start the “big” run, essentially use the official training set to train a model. You can have however complex models you want. Then we can add regularization terms to balance the training loss and validation loss to mitigate “overfit”. Essentially, overfit is a problem of poor generalizability, when the model performs exceptionally good on the training set but less so on the validation set. According to Andrej’s post, the first step, is to <strong>get more data</strong>. Not including fancy terms like L1 or L2, just get more data. I used to immediately add regularization terms or dropouts before, but actually, training the model on more data is a better and easiest way for models to be more generalizable by seeing more datapoints. For example, you can get more data from the latest time period (since building model pipelines takes weeks, you may have new datapoints by the time you optimize the model), or from different locations, etc. It is the best way to generalize your model.</p><p>Machine learning models training is a complex problems that involve multiple latitudes, data, model architecture, loss calculation, etc. It is easy to get lost when you have a model that seems like working but something is off. Checking these few aspects of the ML experiments: 1) <strong>Data problems</strong> as in how data are collected and preprocessed, 2) <strong>Model theoretical constraints</strong> as how data distribution fits the statistical assumptions, 3) <strong>Choices of features</strong> for if you choose the right features for the prediction problem at hand, 4) <strong>Implementation of models</strong> such as reproducibility and model convergence, and finally 5) <strong>Hyperparameter search</strong>. Follow a few simple strategies so you don’t get lost: <strong>start small, overfit on small sample, set random seeds, start big and regularize</strong>.</p><p>What is your go-to move when your model fails? I’d love to hear your strategies for keeping experiments sane :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f92ea5b3d3eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Research hacks I discover during my PhD journey]]></title>
            <link>https://bionewsdigest.medium.com/research-hacks-i-discover-during-my-phd-journey-ca1a67568330?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca1a67568330</guid>
            <category><![CDATA[graduate-school]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[life-hacking]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 01:02:35 GMT</pubDate>
            <atom:updated>2026-01-12T01:21:20.420Z</atom:updated>
            <content:encoded><![CDATA[<h4>AI tools and strategy to learn better and faster</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxOdparV19pkHLkCAkdr0g.jpeg" /><figcaption>Source: <a href="https://unsplash.com/photos/laptop-screen-showing-a-search-bar-bUUrG6CMHiA">Unsplash</a></figcaption></figure><p>Since the first release of ChatGPT in 2022, more and more AI companies claim their models can do PhD-level research. I was having a bit of identity crisis as a PhD student in biomedical informatics. While I push through my own research, I have been reflecting on how to effectively integrate a variety of models and agentic services to elevate my performance. I want to share some of my findings here.</p><p>For a graduate research, such as one in doctoral training, it can be broadly broken into a few phases: <strong>1) literature search, 2) Reading literatures, 3) data analysis, and 4) documenting and communicating results</strong>.</p><h3>Literature search</h3><p>I tremendously benefit from LLM when I do not have enough background knowledge of a subject. I would tell LLM to provide an overview and suggest a few latest and highly-cited articles. Then I will read these references, find their keywords, and dig deeper from there. I use ChatGPT and Gemini a lot for this task, and less so in Perplexity and Claude PubMed connector. For me, the effectiveness of the models is less of a concern in this step, as it serves as a gateway or a preliminary stage before I delve into my own article search.</p><p>I believe as a researcher, literature search is the number one basic skill to have. Maybe in the future I will change my view but for now I use LLM as a newsfeed rather than as scientific databases.</p><h4># Hack 1: Check the key words of the articles you read every time.</h4><p>Sometimes you will find the keywords in the papers include a different domain that can broaden your search, and sometimes you will find the convergence of these keywords and become better at finding relevant topics. It also gives you a better skill at deciding keywords when you publish your own work.</p><h3>Reading literatures</h3><p>I have found reading with AI so powerful to help me understand the complex material. For me, this is the fun part to work with AI, and I basically use two approaches: direct use of LLM and NotebookLM.</p><h4>Directly read with LLM</h4><p>I still read the articles first myself, at least a quick scan, so later I can understand whether the LLM response is relevant. Next, I would throw in the pdfs of the article to LLM (I use ChatGPT a lot for this task), and screenshot the parts that I do not understand, and ask them to explain it for me. I found it incredibly helpful in explaining math, as it breaks down every variable and notation in the formula. After I think I understand the concept, I will type out my understanding and ask the model to verify it. Now, LLM tends to agree with the user inputs, and I found some personalization techniques in reducing some degree of this behavior.</p><h4># Hack 2: Personalize your bot.</h4><p>Go to “Settings &gt; Personalization/Personal context”, and customize your chatbot behavior. For example, I use the following prompt (Part of the prompt is inspired by Hard Fork podcast):</p><blockquote>Please do not praise me. Give me the facts or rationale of my question.</blockquote><blockquote>I am not always right and you aren’t either. Make sure the content to be correct as much as possible and give the references if there is any.</blockquote><h4>Use NotebookLM to read journal articles</h4><p>Sometimes I also use NotebookLM. The typical workflow is to create one notebook for one article. The advantage is that it does give more precise answers according to the article you are referring to, while chat-based LLM can deviate from your paper and answer something else. In addition, once you create the notebook, you can always go back to it and ask any questions, whereas you need to always give the background context when using chat-based LLM. (I know one can compartmentalize the chats but how many of us really maintain a good chat history? At least mine is very messy…) On top of this, there are many other nice features about NotebookLM. <em>Mind Map</em> is really helpful to understand the paper in a more structured way. I also find <em>Infographic</em> a useful tool, almost to an extent to be an inspiration of conference poster design.</p><p>Reading with AI is like you always have a teacher by your side whom you can ask any dumb questions tirelessly. It is absolutely fun. But the ultimate hack I found is to internalize the articles, by summarizing <em>yourself</em>.</p><h4># Hack 3: Do a three-sentence summary for EVERY article you read. DO IT YOURSELF</h4><p>This is a very critical step when doing literature review. While typing out the summary, you check your understanding, structure the content in your world view, and make sense of it with your own research. You can use more than three sentences and you can start with some of these questions: <br>1) what is the result (e.g., a finding, a method, a software, etc.) — putting this first makes it easy when you come back in the future and try to understand the paper quickly.<br>2) what is the method<br>3) how this paper is relevant for your research</p><h3>Then… data analysis</h3><p>This is another phase of research where you get to work closely with AI. Depending on the type of research you do, the types of services you can use differ. In my case, the whole research is to analyze sensitive data (patient data), so I do not use a lot of coding agents. If you are also doing this kind of research, often times there are some department chatbots like OpenAI Enterprise model that allows you to use it with sensitive data.</p><p>Alternatively, you can download local off-line LLMs. I followed this <a href="https://www.youtube.com/watch?v=km5-0jhv0JI">tutorial</a> to download local models and actually used it to edit this blog post :p</p><h4># Hack 4: Download your own local LLMs.</h4><p>With this setup, you gain the flexibility to use LLM models with your personal and sensitive data. Not only do you gain the freedom to deploy these models yourself, but this also becomes a valuable skill to have, regardless of whether you’re a computer scientist or not.</p><h3>Documenting and communicating results</h3><p>I believe everyone is familiar with how useful LLM is to assist writing and communication in general. In my personal experience, putting the words on the paper is still the critical first step. Just as summarizing the journal articles, putting down words first trains you to organize the information, and more importantly, how you want to tell your story. If the dissemination is intended to publish in academic journals, one should always check with journal guidelines regarding the rules of using LLM and the necessity of disclosure.</p><p>While AI can certainly help us learn faster, it’s still crucial to develop research skills and critical thinking to determine the optimal checkpoints in the research workflow where AI tools can be most effectively utilized. In fact, critical thinking has become even more vital. A good strategy amplified by AI can provide huge positive results, while conversely, relying solely on AI without a solid strategy might not be as effective.</p><p>What are your tips on making the process of research more effective and streamlined? What are the AI tools that change how you work?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca1a67568330" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How transformers can transform your blood test results]]></title>
            <link>https://bionewsdigest.medium.com/how-transformers-can-transform-your-blood-test-results-1831d9b37d94?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/1831d9b37d94</guid>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 01:08:21 GMT</pubDate>
            <atom:updated>2025-12-15T01:08:21.180Z</atom:updated>
            <content:encoded><![CDATA[<h4>Transformer applications in single-cell analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYZgzSeqg_O_yaxFlqlHoQ.jpeg" /><figcaption>Source: <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Have you ever wondered what happens to your blood when you have a blood draw? Since we’ve already endured that slight unpleasantness, the mission is to extract every possible piece of information from that small sample.</p><h3>What happens when you have a blood draw</h3><p>When you get a draw of blood in a hospital, maybe because of an infection or a general checkup, what you typically get as your test result is a bunch of numbers telling you how many cells there are in a unit of blood. A higher number of white blood cells may suggest active infection and a lower number of red blood cells may imply anemia.</p><p>What actually happened to give you this summary result is a machine, typically a flow cytometry machine (bear with me, I won’t go into details), that emits a laser beam to every cell in your blood sample and bends depending on cell size and internal complexity (Figure 1). As a result, every cell is now described by several characteristics that the machine later use to differentiate if this cell is a white cell or a red cell, which in turn gives you the summary report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*uz-qjBWu9_HYONKqDRabEA.gif" /><figcaption>FIgure 1. Flow cytometry measures single-cell characteristics. Coherent, “Lasers and Flow Cytometry: Shedding Light on Cells,” <em>Coherent Blog</em>, accessed April 24, 2025, <a href="https://www.coherent.com/news/blog/lasers-flow-cytometry">https://www.coherent.com/news/blog/lasers-flow-cytometry</a></figcaption></figure><h4>The rich data with your blood test result</h4><p>So with that single-cell measurements with the laser beam, we are left with not just the summary report your doctor tells you, but a huge spreadsheet (or matrix, if you will), where each row is one cell in your sample and each column is a cell-level feature (Figure 2). We can actually know a lot more beyond just a high/low level of cell types; we can now analyze the distribution of the cell size as a whole, and also specifically for your white blood cell population. This field of biological research is typically called single-cell analysis, but it really entails any measurement methods that give you characteristics at the cell level, including, genomics, where each cell is described by its DNA or RNA coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*9UB_TSTt3mHfwC3QrO3pCQ.png" /><figcaption>Figure 2. Single-cell spreadsheet/matrix and the two interaction mechanism</figcaption></figure><h3>Transformers can tell you cell-cell interaction</h3><p>This is where transformers come in. Transformers, which is the backbone of nearly all chatbots under the sun these days, including Google Gemini and OpenAI ChatGPT models, are a kind of deep learning algorithms that enable the computation of relationship between the entities in a sample.</p><h4>An analogy in language models</h4><p>For example, a language generation task can be to find the next word and then to generate the sentence. In these language models, each word is first converted to a vector; for example, “dog” can be [3, 7.5, 44, 8]. A transformer then learns to understand the relationship between all the words (tokens) vectors in a given sentence, where words more relevant to each other will have a higher association/attention (dot product) and vice versa. The model then predicts the next word by creating a probability distribution across all possible words, and the word with the highest probability is selected as the prediction.</p><h4>Relationships between cells</h4><p>In a single-cell analysis, one can see each cell as a word, where each cell is described by features such as from flow cytometry and genomic analysis. Transformers using these data can then find attention/association between cells and are able to tell you which cells are more relevant with other cells and also identify rare cell populations (Figure 2). One interesting method for cell-cell interaction is set models [1]. Unlike language models that the order of the words have semantic meaning, in single-cell measurements, the order of the cells (e.g., their row order in the single-cell spreadsheet in Figure 1) does not have any meaning; for example, whether the first cell being measured is white cell or red cell does not tell you anything about the sample, but the collective distribution of the cell populations in the sample. These set models enable “permutation-invariant” of the entities in a sample while learning the relationship between the entities (cells).</p><h4>Relationships between cell features</h4><p>It gets even more interesting when the transformers learn the relationship between cell features, such as genes (Figure 2). For example, the model may find that gene A and gene B have a very high relationship, which may suggest co-expression of the two genes [2].</p><h3>Potential applications</h3><p>The power of knowing cell-cell interaction in your blood test is tremendous. For one, blood count test is the most commonly ordered test in the world with fairly low cost. Second, blood is like the central transportation system in our body [3], it goes through all the organs in our body, picking up trash as well as to distributing nutrients. A deeper understanding of the blood can tell us more than the potential infectious status but maybe also about the overall health of our blood cells.</p><h3>More science</h3><p>Transformer application in hematology is an area of rapidly growing interest. One of my current research questions is how models can simultaneously understand both cell-cell interation and feature interaction together [4]. In addition, I also wonder how we can leverage the estimated association/attention from transformer models to reveal the underlying biology [5].</p><p>1. Probst M. The Set Autoencoder: Unsupervised Representation Learning for Sets. Published<br>online February 15, 2018. Accessed March 8, 2025.<br><a href="https://openreview.net/forum?id=r1tJKuyRZ">https://openreview.net/forum?id=r1tJKuyRZ</a><br>2. Ding S, Bhattacharya S, Butte AJ. ImmuneFM: Pre-training Foundation Model from Cytometry Data for Immunology Research. bioRxiv. Preprint posted online July 11, 2025:2025.07.09.664020. doi:10.1101/2025.07.09.664020<br>3. <a href="https://www.blood.co.uk/news-and-campaigns/the-donor/latest-stories/functions-of-blood-transport-around-the-body/">https://www.blood.co.uk/news-and-campaigns/the-donor/latest-stories/functions-of-blood-transport-around-the-body/</a><br>4. Kowarsch F, Weijler L, Kleber Fl, et al. Explainable Techniques for Analyzing Flow Cytometry Cell Transformers. arXiv. Preprint posted online July 27, 2023. doi:10.48550/arXiv.2307.14581<br>5. Szałata A, Hrovatin K, Becker S, et al. Transformers in single-cell omics: a review and new perspectives. Nat Methods. 2024;21(8):1430–1443. doi:10.1038/s41592–024–02353-z</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1831d9b37d94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[讀書筆記：《Anything you want: 40 lessons for a new kind of entrepreneur》]]></title>
            <link>https://bionewsdigest.medium.com/%E8%AE%80%E6%9B%B8%E7%AD%86%E8%A8%98-anything-you-want-40-lessons-for-a-new-kind-of-entrepreneur-1bc4f2726493?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bc4f2726493</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 16:02:34 GMT</pubDate>
            <atom:updated>2025-01-08T16:02:34.110Z</atom:updated>
            <content:encoded><![CDATA[<p>作者：Derek Sivers<br>出版日期：2022, 4月4日</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMRN-0YweaRWrMClsXO6pg.jpeg" /><figcaption>Source: Pexels</figcaption></figure><p><a href="https://www.amazon.com/Anything-You-Want-lessons-entrepreneur-ebook/dp/B0B3JM67VW/ref=sr_1_1?crid=2P51JWHE8MFVP&amp;dib=eyJ2IjoiMSJ9.4eS7cBwZrzJdqgrDgmI4SvWBTV_I5yolYMeBGX97940JPkl0eYdoQkAygZAGw9pKK5UCRb2p7Jxey2SAVD8U5Q0hsmikIh-Oaww-S47BkfLSjlq8S-fFxuhJc7Q4xd6-MT9hx1tHhIY_fEDDgBmfgq0nH-Ri2tmuMiwov8jUaAuJt9cBym_O7JT2x95zxt7Pl4v2EGbZA8C0UQX13-gV3xc_gwRfKoIVKY2TwuEI89E.4iHHUe45hC9wwq6tTTE5kBN5JczmRGM9H4ciUpu3exM&amp;dib_tag=se&amp;keywords=anything+you+want&amp;qid=1735943685&amp;sprefix=anything+you+wan%2Caps%2C203&amp;sr=8-1">Anything you want: 40 lessons for a new kind of entrepreneur</a> 是 Derek Sivers，一位音樂家及<a href="https://cdbaby.com/">CD Baby</a> 創辦人，將創辦 CD Baby 十多年來的心路歷程寫成的書。這本書不到100頁，卻讓我做了很多筆記，讓我發覺用字精簡原來是這種感覺！</p><h3>了解自己</h3><p>最一開始講到理解你自己是誰，specifically, “You need to know your personal philosophy and what’s worth doing”. 在後面的章節，也提到，“It’s important to know in advance, to make sure you’re staying focused on what’s honestly important to you, instead of doing what others think you should.”。</p><p>從書本一開始，感覺到作者是對自己非常誠實的一個人。 “I didn’t want to start a business! I was already living my dream life as full-time musician.” 以前我總會隔一段時間後，問自己，上次覺得活著的感覺是什麼時候？那種感覺就是，活著很爽，的快感。</p><h3>關於”幹大事”</h3><p>關於”幹大事”, “If you think your life’s purpose need to hit you like a lightning bolt, you’ll overlook the little day-to-day things that fascinate you.” 我的解讀有兩個層面，第一，像有些人說的，與其等到自己100%準備好，60, 70%就可以開始了。第二，或許我們沒有一直以來都知道自己想做什麼，但 embracing moments in life 真的是生活中很重要的能力；這不僅會讓自己感到更幸福，也才會讓自己不那麼laser focus，而忽略身旁其他的事物。</p><p>“When you’re on to something great, it won’t feel like revolution. It’ll feel like uncommon sense.” 這點我覺得很呼應 “When you present one (ideas, creations, and objects) to the world, if it’s not a hit, don’t keep pushing it as-is. Instead, get back to improving and inventing.” 我一直以為要有很好的說故事能力，總能讓別人為我的想法感動。而一路上一定有很多人會支持或反對你，不斷打磨想法或產品，其實才是對自己及產品的成長最有幫助的事。</p><p>不過，後面幾章提到一個我覺得更重要的觀點 — Care about your customers more than about yourself. “Honestly, I don’t care about CD Baby. I only care about the musicians.” 作者清楚明白創立CD Baby的初衷是為了幫助獨立音樂人讓音樂被更多人接收到，音樂家因為CD Baby能更盡情的創作及讓更多聽眾接收到更好的音樂，是最重要也應該是唯一的目標。“A business is started to solve a problem. But if the problem was truly solved, that business would no longer be needed!” “Anyone who’s in business to sell you a cure is not motivated to focus on prevention.” 因此，我的觀點是，focus on the problem/customers. When things go great, move on to solve other problems。真正解決問題而不是販售焦慮。</p><h3>如何“幹大事”</h3><p>“Watch out when anyone (including you) says they want to do something big, but can’t until they raise money.” 當有人總說等我有了多少經費，我就開始進行什麼計畫。作者說，當你發現你 (或任何人) 有這種想法，要釐清自己真正想要的是名堂還是解決問題。其實“開始”是不需要或只需要最少條件的。換句話說，如果你的“開始”有太多前提，那你的解決方案是不是可以再更簡單些？</p><p>“Ideas are worth nothing unless executed. They are just a multiplier. Execution is worth millions.” 有點呼應自己對醫學資訊領域的觀察，點子(i.e., AI模型)已經太多了，如何用，如何真正解決問題且符合使用場景，是另一個待解決的課題。作者說，一個值再多錢的點子，沒有執行，兩個factor相乘起來中就是0。關於執行，我覺得他提出一個很有趣的想法，This is just one of many solutions。作者提出一個商業討論的例子，當你有一個題目，通常就會開始想出一個“最完美”的商業方案，但也請試著想在不同條件下，你會如何調整商業模式。例如 “Make a plan that only requires $1000. Go! Now make a plan for ten times as many customers. Go! Now do it without a website. Go! Now make all your initial assumptions wrong, and have it work anyway. Go!” 重要的是，“You can’t pretend there’s only one way to do it. Your first idea is just one of many options. No business goes as planned.”</p><p>最後，關於大家經常討論的“商業模式”或“行銷方法”，如何拓展版圖之類的討論，作者也以簡單明瞭的方式說明，“If you find even the smallest way to make people smile, they’ll remember you more for that smile than for all your other fancy business-model stuff.”</p><h3>關於客服 (Customer service)</h3><p>Customer service is everything. 前面提到，你應該在乎客戶多過於公司，而這自然成立，因為多數人都是懷著滿腔熱情想解決問題的。但在熱情與持續堅持的路上，有很多阻礙和誘惑。 其一，可能會碰到的是，希望自己被大公司看到。“by trying so hard to please the big client, you lose touch with what the rest of the world wants.”。關於“擴展顧客群”，“It’s conterintuitive, but the way to grow your business is to focus entirely on your existing customers. Just thrill them, and they’ll tell everyone.” 事實是，“It’s much harder to get a new customer than it is to get more business from an existing customer.” 和既有客戶建立良好關係，是對雙方都最好的做法。甚至，作者提到，每一次與顧客互動，都是讓公司增進與消費者關係的寶貴機會。“Three minutes spent talking with them (customers) is going to shape their impression of your company more than your name, price, design, or features all combined.”</p><p>更重要的是，lose every fight。“Loud people are loud people, whether complaining or praising. So when you get some loud complaint, use that opportunity to make them so happy that they become a loud evangelist.” 這段話非常打動我，意思大概是，喜歡發表意見的人，不論好的壞的都會大聲旗鼓，那就讓他們為你的好大聲旗鼓！</p><h3>Your utopia</h3><p>“Those of us with business ideas? We need a company. Not for the money, but because it’s our place to experiment, create and turn thoughts into reality.” 骨子裡想創業的人，其實需要的是一個可以進行發揮及玩樂的地方，實驗想法和付諸想法，然後觀察解決方法和世界的互動。“It’s you playground, your instrument, your laboratory. It’s your place to play!”</p><p>“When you make a company, you make a utopia. It’ where you design your perfect world.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bc4f2726493" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[讀書筆記：《如何避免氣候災難》]]></title>
            <link>https://bionewsdigest.medium.com/%E8%AE%80%E6%9B%B8%E7%AD%86%E8%A8%98-%E5%A6%82%E4%BD%95%E9%81%BF%E5%85%8D%E6%B0%A3%E5%80%99%E7%81%BD%E9%9B%A3-307437214bba?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/307437214bba</guid>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 20:27:57 GMT</pubDate>
            <atom:updated>2025-01-02T17:03:09.793Z</atom:updated>
            <content:encoded><![CDATA[<p>作者：比爾蓋茲<br>出版日期：2023, 3月1日</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oaOiUTjgdNluepJElGfnBQ.jpeg" /><figcaption>Source: Pexels</figcaption></figure><p>心得：氣候災難及能源問題，是我一直以來會偶爾看一下的主題。這次選這本是因為想理解不同領域解決問題的視角及方法。閱讀後也發現，書中很多對解決問題提出的方法，及構成創新期望有的條件（如技術及市場環境），都可以和各種領域觸類旁通。無論你是否對能源問題有興趣，我認為這本書都可以訓練讀者於科學及商業層面的邏輯思考。</p><p>以下為章節重點摘要。</p><h3>前言</h3><ol><li>能源貧窮：”據英國定義，能源開支超出收入10%便屬能源貧窮”</li></ol><h3>第一章 為什麼要歸零？</h3><ol><li>“二氧化碳是最常見的溫室氣體，但還有其他好幾種溫室氣體，例如一氧化二氮和甲烷”</li><li>“我們在意的不是排放了多少溫室氣體，而是地球溫度升高，以及帶給人類的影響”</li><li>氣候變遷會有想糧食產量，”本來就已經把一半以上收入花在食物上的貧窮地區人口，得面對食物價格再上漲20%“</li></ol><h3>第二章 零排放真的很難</h3><ol><li>“一直要到1890年代後期，化石燃料才開始佔全球能源消耗量的一半”</li><li>“美國現在比較常以天然氣發電，取代燃煤，為什麼？因為新的鑽探技術使天然氣便宜許多。誘因是經濟，從來不是環境”</li><li>“我們應該做的是改變誘因”</li><li>“2015年的巴黎協定是很了不起的成就，有超過190個國家遷樹協議逐步減少排放量“</li></ol><h3>第三章 氣候對話中一定要問的5個問題</h3><ol><li>“如果有人告訴你某種電力來源（風電，太陽能，核能，不管什麼都好）可以滿足全球的能源需求，算算看需要多少空間才能達到那樣的發電量”</li><li>“大部分零碳方案都比採用化石燃料的成本高，部分原因是化石燃料的價格沒有反映出他所造成的環境破壞，才會看起來比替代能源便宜”</li><li>(零碳方案) “這些多出來的成本，我稱之為’綠色溢價’ (Green Premium)”</li><li>“一旦弄清楚有主要零碳替代方案的綠色溢價之後，你就可以開始認真討論取捨的問題了。我們願意為環保花多少錢？”</li><li>“綠色溢價還有個好處：可以作為一種衡量標準，從中看出我們對抗氣候變遷的進展。” … “溢價提供了和原始排放數據不同的視角，排放數據讓我們看到離零排放還有多遠，卻沒辦法呈現達到零排放有多困難</li><li>5大問題<br>1) 記得把排放量換算成全球總排放量520億噸的百分比<br>2) 排放溫室氣體的人類活動有5大類：製造產品，用電，耕種養殖，交通運輸，和調節溫度，每一類都必須找到解決方案<br>3) 瓦=家庭，吉瓦=中型城市，數百吉瓦=富裕大國<br>4) 想想看你的零碳方案需要佔用多少空間<br>5) 記住綠色溢價的概念，並且問溢價夠不夠低，中等收入國家是否負擔得起</li></ol><h3>第四章 我們如何用電 — 占年排放量26%</h3><ol><li>“要避免氣候災難，必須做的最重要的一件事，就是要想辦法再不排放溫室氣體的情況下，獲得便宜，穩定電力的所有好處” → 強調獲得好處，方法卻可以多元有創意</li><li>“化石燃料太便宜和書店成本太高，都不是造成零碳電力有綠色溢價的最主要原因。我們對電力穩定度的需求，以及間歇性電力造成的問題，才是真正的罪魁禍首” … “太陽能和風力是間歇性能源，沒辦法一年365天，每天24小時發電” →夜間用電，夏天和冬天的季節性變化, etc.</li><li>“隨著我們把煉鋼，驅動汽車等高碳排放的過程電氣化，到2050年，全球供電量勢必要達到目前的兩到三倍才行”</li><li>零碳發電：核分裂，核融合，地熱</li><li>“所有低成本的(零排放)途徑都需要有某種能不間歇供應的清潔電力，也就是向核電這樣的電力。如果沒有這樣的能源，實現零碳電力的成本將會變得很高。</li></ol><h3>第五章 我們如何製造 — 占年排放量29%</h3><ol><li>“我們將討論三種最重要的材料：剛才，混凝土(水泥)，塑膠。”</li><li>“除了尋找製造零排放材料的技術，我們也可以單純減少使用量。 … 我們可以回收更多材料，但同時也要研發技術已減少回收所需能源。相較於回收，再利用幾乎不大需要能源，因此我們也應該設法開發能重複利用的才料，來至造產品”</li></ol><h3>第六章 我們如何耕種 — 占年排放量22%</h3><ol><li>“飼養食用動物是溫室氣體排放增加的主因”</li><li>“以農業來說，罪魁禍首不是二氧化碳，而是甲烷”</li><li>“要是我們不敢擅每英畝牧草或耕地的糧食產量，相關碳排就會上升三分之二”</li><li>其他做法：減少浪費，改良肥料，減少毀林</li><li>“白雪覆蓋地區的數目導致的升溫大於降溫，因為樹木的顏色比冰雪來得深，而深色比淺色容易吸熱。相繼之下，熱帶雨林中的樹木造成的降溫大於升溫，因為他們釋出大量水氣” → 即使都是樹，在植樹地點不同對氣候的影響也不同</li></ol><h3>第七章 我們如何運輸 — 占年排放量16%</h3><ol><li>“其他國家的綠色議價會有所不同 … 歐洲部分地區的油價非常高，電動車的綠色議價甚至歸零”</li><li>生質燃料/替代燃料：用玉米，甘蔗或甜菜製成的乙醇</li><li>不同車輛適用的方案不同：“移動的車輛越大，再不充電的情況下要行使得越遠，就越南光靠電力來發動引擎”; “電池一旦增加，重量也會增加”</li><li>減少碳排的四個方法<br>1) 減少交通量<br>2) 減少汽車製程中使用碳密集材料 (i.e., 塑膠，鋼材; 塑膠很輕卻可以減少油耗)<br>3) 提升燃料使用效能<br>4) 改用電動車與替代燃料</li></ol><h3>第八章 我們如何調節溫度 — 占年排放量7%</h3><ol><li>“1902年，一位名叫Willis Carrier的工程師引領了空調系統的重大進展。當時，他的老闆派他到一家印刷廠，要他設法房鋼印好的雜誌頁面起皺。開立發覺皺褶是濕度太高引起的，變設計了一台，降低溼度的同時也降低室內溫度。“</li><li>“第一台空調設備安裝於民宅距今才一百多年，現在90％的美國家庭都有空調了”</li><li>“我們討論供暖時，不僅僅是在說把空氣變得暖和，還包括了把水加熱，用來淋浴，洗碗或進行工業製程等等”</li></ol><h3>第九章 適應暖化的世界</h3><ol><li>“氣候調適可以分為三個階段。第一個階段是減少氣候變遷帶來的風險 … 氣候災難防護，保護濕地以作為抵禦洪澇的屏障”</li><li>“第二階段是針對緊急情況加以準備與因應 … 改進天氣預報與風暴預警系統”</li><li>“第三階段辨識災害過後的復原期“</li></ol><h3>第十章 為什麼政策很重要</h3><ol><li>“沒有法規創造市場，幫助發明普及開來，創新甚至不會問世”</li><li>“凡是推動巨型計畫，我都需要正負發揮重要功用“</li><li>政府應鎖定的7個目標<br>1) 當心投資落差：“每當一個想法剛起步時，我們不確定他是否會成功，然而所需時間可能超過銀行或處投人士的耐性，這時適當的政策與融資可以確保想法獲得充分的探索”<br>2) 營造公平的競爭環境<br>3) 克服非市場障礙<br>4) 政策與時俱進<br>5) 轉型符合公益：創造新的工作機會<br>6) 不畏艱巨任務<br>7) 技術，政策與市場三管齊下</li></ol><h3>第十一章 減到零排放的總體計畫</h3><ol><li>“創新不僅僅是發明一台新機器或新製程，還包括對商業模式，供應鏈，市場和政策提出新穎觀點，以協助發明順，達到全球規模。“</li><li>“創新既代表全新的工具，也代表全新的工作方式“</li><li>“我把(總體)計畫中的不同內容分為兩大類。 … 其中一類是擴大創新的供給，實驗大量的新穎想法；另一類是加速對創新的需求。… 平價到中等收入國家買得起“</li><li>擴大創新的供給<br>1) 研發投入增加<br>2) 加大對高風險，高回報的研發計劃<br>3) 研發呼應最大需求：“那些優異的發明之問世，是因為科學家在研究之初就考慮到最終用途”</li><li>加快創新需求<br>1) “涉及了兩個步驟：驗證階段與規模化階段”<br>2) 政府善用採購權<br>3) 降低成本：i.e., 降低綠色溢價<br>4) 建立能把新技術推說場的基礎設施<br>改變市場規則，提升新技術的競爭力：“（現階段)迎合20世紀技術而射衣的電力市場，往往讓21世紀的技術處於劣勢。”</li></ol><h3>第十二章 人人都可以做的事</h3><ol><li>不同角色：消費者，員工/雇主</li><li>員工/雇主: 設立內部碳稅，優先考量低碳解決方案的創新，當早期採用者，參與政策制定過程（與政府合作），結合政府補助研究</li><li>“至於那些你無法支持的理念，你可能會覺得應該發聲反對， … 但我希望，你可以花更多時間和心力去支持自己贊同的理念，而不是批評你不贊同的。“</li><li>Hans Rosling在Factfulness寫到，”具備基於事實的世界觀後，便可以理解世界並沒有看起來那麼糟，我們就能明白自己必須採取的行動，努力讓世界越來越好“</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=307437214bba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial on connecting R projects to Github]]></title>
            <link>https://bionewsdigest.medium.com/tutorial-of-connecting-r-projects-to-github-4ab9818c536d?source=rss-7ac58130c285------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ab9818c536d</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[bionewsdigest]]></category>
            <dc:creator><![CDATA[YaLinChen (Amber)]]></dc:creator>
            <pubDate>Thu, 02 May 2024 05:59:54 GMT</pubDate>
            <atom:updated>2024-05-02T06:08:15.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*sGKNWmVdlYWmHI_JWBV_2A.jpeg" /><figcaption>Source: Unsplash</figcaption></figure><p>It is valuable to use <a href="https://github.com/">Github</a> for better version controls and share the codes with people. Here, we will walk through the steps from creating a new R project to connecting it to Github.</p><h3>Creating an R project</h3><p>Go RStudio &gt; File &gt;New Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*K0mCNTJBJqrEEACV5naT6g.png" /></figure><p>Select “New Directory”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*k636KfoU0eTzw5bbbjAD9g.png" /></figure><p>Select “New Project”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*a3XYc7zCVNo4gpwB0PCANw.png" /></figure><p>I choose to create a project in the folder “R projects” and name it as MediumDemo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*NAndD-hPSN--AXLXeIyS-g.png" /></figure><p>After the creation, you should see .Rpoj in the MediumDemo directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*konSMu-F10kKfzNH-ktjJA.png" /></figure><h3>Creating files in R Project</h3><p>Go to RStudio &gt; File &gt; R Script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*gUJGb76DkiVrYaRdSplNQA.png" /></figure><p>Save an example R script in the directory. I name the file demo.R</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*taImnIPr6D8BCt9Y83tLbA.png" /></figure><h3>Using Git Version Control</h3><p>First, we go to RStudio &gt; Tools &gt; Project Options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*2q_-oJNrtcrnmLygwDk8jQ.png" /></figure><p>Click “Git/SVN” from the left panel and select “Git” from the dropdown menu. Click Yes and Yes and restart RStudio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*BhJRleidPuZ21Zmcn0PLgw.png" /></figure><p>Now you should see the Git tab on the upper right panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*9UaRTcgbiuuIqeqL8mVH5A.png" /></figure><p>Click the tab and it should show the demo.R file. (You can ignore the two .xxx files)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*jZLb9vdH-MYbdAH62kM5XA.png" /></figure><p>Now, we want to commit the demo.R to upload it to Github. Select the file &gt; Commit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*0wKM3ia_D5gRs6Tk7yOu3g.png" /></figure><p>Type in Commit message and click “Commit”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*ON00qpwjh2P8ehO80Vr3fQ.png" /></figure><p>You should see similar message and you can Close this window and the Review Changes window now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*-CeKSxLFIdHcIpTqf_OjcQ.png" /></figure><p>Now, we should not see demo.R in the panel since all new changes have been committed to Github.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*0WKBpAWEC7cwr82W52P7kQ.png" /></figure><h3>Connecting to Github</h3><p>Nest, we go to Github (<a href="https://github.com/">https://github.com/</a>). You will need to create an account if you do not have one yet. It is recommended to register with school accounts if possible.</p><p>After logging in/registration, we go to “Repositories” and click the “New” green button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qKf9lbB6vaAaDjBVuAuVA.png" /></figure><p>Type in “Repository name”. Add some description if you may. I want to keep this repository “Public” and you can also choose it to be “Private”. For now, let’s not Add README. Click “Create repository” green button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*BquItheL68kyWgpqfaO0YQ.png" /></figure><p>You will see the following information. Copy the three git commands in the red bracket and paste them to Terminal in RStudio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*PFyMdGPha1czU13CTylGiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*BESaIGP05vmP3PDNOnPahw.png" /></figure><p>You may see some message like this if you are a Mac user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*32lUmqEVPws7anqyBSU2fA.png" /></figure><p>When you encounter this, press the keys <em>Option</em> and <em>Space</em> and type keychain. Click “Passwords” panel and click on the github.com you are logged in. Double click on the item.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*vZmqpy93pOqCs2EZjZzRMw.png" /></figure><p>Click “Show password” and copy the shown password to the message above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*WbSrZHOPsrxhV0VZFzbl1w.png" /></figure><p>After it is allowed, you should see similar messages in Terminal in RStudio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*3hHTBBErruaSPJhCsh5wnA.png" /></figure><p>Now, you can refresh the Github page of the repository and you will see the below page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMlGrXSEEx3MKY7BfRSSBA.png" /></figure><h3>Adding README and license</h3><p>Now, we will learn to add README.md.</p><p>Go to RStudio &gt; File &gt; New File &gt; Markdown File.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*RfcSvtNfkJUtEh-60-dzbg.png" /></figure><p>Type in information such as</p><blockquote>## README</blockquote><blockquote>&lt;CC BY license. See below&gt;</blockquote><blockquote>This is the start of README.</blockquote><p>&lt;CC BY license. See below&gt;: <a href="https://chooser-beta.creativecommons.org/">CC BY license</a> is commonly used. “This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.”</p><p>To get the license, go to <a href="https://chooser-beta.creativecommons.org/">https://chooser-beta.creativecommons.org/</a>.</p><p>&gt; select “Yes, I know the license I need”, “Next”<br>&gt; select “CC BY 4.0”, “Next”<br>&gt; at the right, click HTML tab, copy the code and paste to the position &lt;CC BY license. See below&gt;<br>&gt; save the file as README.md</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*ssC1GJP73Pt01u4KG8e-FA.png" /></figure><p>Now, you should have README.md in the project folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*GVB6z31Jmn_9HgMspaqH8Q.png" /></figure><p>We will now commit the change and push to Github.</p><p>On the Git panel, select README.md &gt; Commit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*OXvXH4P8yOwA9u9a4M4_zg.png" /></figure><p>Type Commit message and click “Commit”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*An98Up6poEkeUOtbccucfw.png" /></figure><p>Close the pop-up window and click on “Push” at the upper right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*KZ0c1rq3z637-TF71WOxNw.png" /></figure><p>Now, we go to Github browser and refresh. And there! You will see the README.md with CC BY license.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*U5hevxebewxoqiuL6UD2tw.png" /></figure><p>I hope this helps you get your GitHub projects off the ground 🏋️‍♀️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ab9818c536d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>