<?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 Shaotingting on Medium]]></title>
        <description><![CDATA[Stories by Shaotingting on Medium]]></description>
        <link>https://medium.com/@shaotingting05?source=rss-dac4d23b377b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UZJ8ey3yikEul9ET.jpg</url>
            <title>Stories by Shaotingting on Medium</title>
            <link>https://medium.com/@shaotingting05?source=rss-dac4d23b377b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:27:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaotingting05/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[Apply ethical approval for retrospective study]]></title>
            <link>https://medium.com/@shaotingting05/apply-ethical-approval-for-retrospective-study-54bbe2bd5480?source=rss-dac4d23b377b------2</link>
            <guid isPermaLink="false">https://medium.com/p/54bbe2bd5480</guid>
            <dc:creator><![CDATA[Shaotingting]]></dc:creator>
            <pubDate>Fri, 06 Sep 2024 20:31:02 GMT</pubDate>
            <atom:updated>2024-09-06T20:32:14.298Z</atom:updated>
            <content:encoded><![CDATA[<p>CTC clinical trail, ethical approval, retrospective study, KU Leuven</p><ol><li>Confirm your study type</li><li>Useful links</li></ol><p>Application steps for different study types: <a href="https://www.uzleuven.be/en/ethics-committee-research">https://www.uzleuven.be/en/ethics-committee-research</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BAnMGbI_Jy7ez2OQY-QnQ.png" /><figcaption>Retrospective study steps: two mandatory documents: cover letter ad protocol</figcaption></figure><p>A very useful document can be found from here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ggZaZTC_EcYnyfND63wMYg.png" /><figcaption><a href="https://gbiomed.kuleuven.be/english/ctc">https://gbiomed.kuleuven.be/english/ctc</a></figcaption></figure><p>Step 3: Documents</p><p>Protocol acceptance requires a protocol template, which can be downloaded. Download requires log in with your staff account in KU Leuven, log in page is here <a href="https://gbiomed.kuleuven.be/english/ctc">https://gbiomed.kuleuven.be/english/ctc</a>. If it doesn’t work, you can email CTC@uzleuven.be to ask for protocol template, remeber to specify study type. The protocol template has detailed instructions on what to write.</p><p>Cover letter, for retrospective study, there is no template available, but you can find guideline from here: <a href="https://www.uzleuven.be/en/ethics-committee-research/explanatory-notes/cover-letter-investigator-ec-research">https://www.uzleuven.be/en/ethics-committee-research/explanatory-notes/cover-letter-investigator-ec-research</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54bbe2bd5480" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WSL installation Ku Leuven work laptop]]></title>
            <link>https://medium.com/@shaotingting05/wsl-installation-ku-leuven-work-laptop-b7cd8f817ca5?source=rss-dac4d23b377b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7cd8f817ca5</guid>
            <dc:creator><![CDATA[Shaotingting]]></dc:creator>
            <pubDate>Thu, 29 Aug 2024 09:30:32 GMT</pubDate>
            <atom:updated>2024-08-29T09:30:32.083Z</atom:updated>
            <content:encoded><![CDATA[<p>This post is adapted from the post “How to Setup a Windows Laptop for Data Science” and tailored to the work laptop from Ku Leuven.</p><p>Step 1: Install PowerShell 7 using Winget</p><pre>winget install --id Microsoft.Powershell --source winget<br>winget install --id Microsoft.Powershell.Preview --source winget</pre><p>Step 2: Install <a href="https://learn.microsoft.com/en-us/windows/wsl/install#install-wsl-command">Windows Subsystem for Linux </a>(WSL)</p><p>1. Enable the “Virtual Machine Platform” and “Windows PowerShell 2.0” feature on Windows:</p><ul><li>Go to “Turn Windows features on or off”.</li><li>Check the checkbox near “Virtual Machine Platform” and “Windows PowerShell 2.0”.</li></ul><p>2. Install WSL:</p><pre>wsl --install</pre><p>3. Download the linux kernel update package</p><pre>wsl.exe --update<br>wsl --set-default-version 2</pre><p>4. Check WSL version</p><pre>wsl -l -v</pre><p>Step 3: Install Ubuntu</p><ol><li>Installation</li></ol><pre>wsl --install -d Ubuntu<br>wsl --set-default Ubuntu</pre><p>2. Run Ubuntu:</p><pre>wsl --distribution Ubuntu</pre><p>3. Terminate Ubuntu</p><pre>wsl --terminate Ubuntu</pre><p>4. Exit wsl</p><pre>wsl --shutdown</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7cd8f817ca5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons learned when dealing with big data]]></title>
            <link>https://medium.com/@shaotingting05/lessons-learned-when-dealing-with-big-data-8958841a5378?source=rss-dac4d23b377b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8958841a5378</guid>
            <category><![CDATA[snatac-seq]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Shaotingting]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 18:43:11 GMT</pubDate>
            <atom:updated>2024-06-14T18:43:11.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>Large number of snATAC-seq data need to be analyzed, and it was sourced from other lab.</p><h3>Let your data earn your trust</h3><p>The data I used is 294 snATAC-seq data. The basic checklist for me next time when handling the data that is not generated by myself:</p><ol><li>The number of the files: in my case, the number of the files uploaded were not the same as they claimed in the paper, and the final data was sent by the author.</li><li>Metadata: the number of the individuals, regions. Metadata exploration is important when it comes to the batch correction.</li><li>Missingness: in my case, there were three subject IDs missed.</li><li>Data specific characteristics. In my case, carefully check if the file is truncated (for example the file only contained part of the chromosome), the number of the nuclei for each sample before filtering, the minimum number of the fragments for each sample.</li></ol><p>In conclusion, check everything you can and let your data earn your trust.</p><h3>Isolate environment with Conda</h3><p>I employed different packages when analyzing the snATAC-seq data. The best idea is to isolate different environments.</p><p>In my case, I have one common package for basic or statistical stuff, and each special package is isolated in one environment such as snapATAC2 and pycisTopic (lesson learned after reinstalling so many times, you never know what small changes are capable of).</p><p>Basic command to create an environment (take scenicplus as an example)</p><pre>conda create --name scenic2 python=3.11 -y<br>conda activate  scenic2<br>git clone https://github.com/aertslab/scenicplus.git<br>cd scenicplus<br>pip install .<br>python -m ipykernel install --prefix=${VSC_HOME}/.local/ --name scenic2</pre><h3>Manage workflow</h3><p>I used snakemake workflow.</p><ol><li>Try to modularize the snakemake workflow.</li></ol><p>One snakefile to generate one final file, and the intermediate files can be safely deleted once the final file is generated and checked.</p><p>2. Config file</p><p>This lesson was learned in a hard way. After the job is submitted and running, if you want to use the workflow to run another job with different configurations, the configuration will be changed with the previous, not finished job, too.</p><p>The temporary solution for me is to create a configure file for each data folder, and it can also serve as a README file. But I heard there is a better way to implement this, haven’t tried.</p><p>3. Memory issues</p><p>When the data is too big and reach the memory limit, the error that shows the memory issue can be very vague. Keep this in mind when you don’t see any issues in the code, and it runs well with small samples.</p><p>Better to run a small sample first and get a hang of how much memory it would consume with all the data (To be honest, I am not very good at this).</p><h3>Analysis</h3><p>I am used to using jupyter-notebook to explore the analysis, after the logic is sorted out and the better understanding is achieved, I will move on to create a python script to automate and annotate the workflow.</p><h3>Tips when working with High Performance Computer (HPC)</h3><ol><li>When working with ondemand (vsc <a href="https://docs.vscentrum.be/index.html">https://docs.vscentrum.be/index.html</a> online server), the biggest number of cores you can claim is 8. If one session takes up to 8 cores, you can not initiate another session.</li><li>For batch job, the biggest memory you can claim is 239G. If you need more use <em>bigmem</em> partition</li></ol><pre>#SBATCH - mem=239G</pre><p>3. The most useful one is to have the email notification about the job status (saved me a lot of unsettling nights! I can just take out my phone to check if the job is completed or failed).</p><pre>#SBATCH --mail-type=ALL<br>#SBATCH --mail-user=**@**</pre><p>4. If you have developed a solid workflow, then you can submit jobs with dependency at once.</p><pre>sbatch --dependency=afterok:61330320 run.slrm <br># 61330320 is the previous job id<br># run.slrm is next job</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8958841a5378" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>