<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Internship in Codon Genomic by thonzenn</title>
      <link>https://padlet.com/thonzenn/internship_codongenomics</link>
      <description>E-Portfolio</description>
      <language>en-us</language>
      <pubDate>2018-07-05 08:16:39 UTC</pubDate>
      <lastBuildDate>2026-02-04 15:18:26 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-uploads.storage.googleapis.com/228954769/7efd5be77ccf5a4a144b8a3b23d77e28/Dna_icon.png</url>
      </image>
      <item>
         <title>Week 1 Day 1  2/7/2018, Mon</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269452948</link>
         <description><![CDATA[<div>Since molecular biology is not part of my syllabus and I have not yet taken microbial genetics, I have only very fundamental knowledge on molecular biology. My very limited knowledge on molecular biology was acquired from high school biology and some first year courses that have been gone through roughly. I was taking bioinformatics in the semester that has just ended and I think it is necessary for me to know more about it since what we have learned in the class is very basic. This company came by to give us a workshop and tell us on what they are doing. They have certainly got my attention although my initial intention was to work on molecular biology. </div><div><br>I was brief through on the company policy and things that a new 'employee' needs to know. I was thrilled to learn that I get a chance to be involved in a workshop as a facilitator and participate in a conference. Also, a mini project will be assigned to me after I build up some basic. <br><br>Thing that I did not expect was that I need to learn about command line to communicate with computer. This is something that I have never explored before and never thought I would someday. However, I am anticipating on what's coming. <br><br>I like the environment and the ambient here, the office doesn't really look like an office, rather resemble a house, the people here are nice. I especially like how they work together professionally, everyone is so focused at their work (at least they look like they are focusing). Sometimes relax after some intense work or thinking. There's even a big pillow in the office so that we can lie down and play with our phone after some intense brain frying. <br><a href="https://4.bp.blogspot.com/-bBZrlcD1hxA/Wz3YkRuVQaI/AAAAAAAABlo/ObgdRaV55rQzYHmGAyWeTh0j8rHv0beywCEwYBhgL/s1600/IMG_0431.JPG"><figure class="attachment attachment--preview"><img src="https://4.bp.blogspot.com/-bBZrlcD1hxA/Wz3YkRuVQaI/AAAAAAAABlo/ObgdRaV55rQzYHmGAyWeTh0j8rHv0beywCEwYBhgL/s400/IMG_0431.JPG" width="300" height="400"><figcaption class="attachment__caption"></figcaption></figure>This is the office for Genome Science, where I will spend most of my time</a>  <a href="https://4.bp.blogspot.com/--57ul-dVz2A/Wz3YlmVm9JI/AAAAAAAABl0/2dN676auqEAyl5eoPoT9hClT9y9JVi9RgCEwYBhgL/s1600/IMG_0437.JPG"><figure class="attachment attachment--preview"><img src="https://4.bp.blogspot.com/--57ul-dVz2A/Wz3YlmVm9JI/AAAAAAAABl0/2dN676auqEAyl5eoPoT9hClT9y9JVi9RgCEwYBhgL/s320/IMG_0437.JPG" width="320" height="240"><figcaption class="attachment__caption"></figcaption></figure>The living room with this attractive colourful wallpaper and some bead bags</a><a href="https://3.bp.blogspot.com/-lvE4XLIBn18/Wz3YkRMFOZI/AAAAAAAABlk/PjxQDI0drLEwmuw4rqOMwvmMHrvkNoWbQCEwYBhgL/s1600/IMG_0434.JPG"><figure class="attachment attachment--preview"><img src="https://3.bp.blogspot.com/-lvE4XLIBn18/Wz3YkRMFOZI/AAAAAAAABlk/PjxQDI0drLEwmuw4rqOMwvmMHrvkNoWbQCEwYBhgL/s320/IMG_0434.JPG" width="320" height="240"><figcaption class="attachment__caption"></figcaption></figure>I like the transparent glass door that can also be a huge drawing board for project planning</a><br><a href="https://4.bp.blogspot.com/-ifXkqhN2GXo/Wz3YlLOSVdI/AAAAAAAABls/qT70eo1fFV8T20fNMOkRDv1-m4j8doDowCEwYBhgL/s1600/IMG_0435.JPG"><figure class="attachment attachment--preview"><img src="https://4.bp.blogspot.com/-ifXkqhN2GXo/Wz3YlLOSVdI/AAAAAAAABls/qT70eo1fFV8T20fNMOkRDv1-m4j8doDowCEwYBhgL/s320/IMG_0435.JPG" width="320" height="240"><figcaption class="attachment__caption"></figcaption></figure>There are Xbox, Wii and massage chair in the living room for the scientists to relax their mind when work got intense!</a><br><br>Another surprise is that every intern needs to prepare a lunch, start with proposal, budgeting, til cooking. Currently don't have anything in mind on what to cook but anyhow I have another intern to work that out with me. <br><br>I was asked to study on Sanger sequencing and NGS after my interview for this internship position. What I did today was some intense study. Before I could handle data first I need to know how it's generated. I enjoy how I could study without any interruption. Learning new things gives me satisfaction. <br><br>Study on Sanger Sequencing, NGS <br>- Illumina (Solexa) sequencing<br>- 454 sequencing/ Roche (Pyrosequencing)<br>-  SOLiD sequencing<br><br>Study Illumina (Solexa) Sequencing in detail<br>- Sample preparation (Library preparation)<br>   - DNA fragmentization<br>   - Ligation of adapter<br>       -  Component of Adapter<br>           - 3 sections: region<br>             complementary to flow cell oligo <br>             nucleotide, indices, sequencing <br>             primer binding site<br>-  Cluster generation (Clonal amplification)<br>- SBS (massive parallel sequencing)<br>- DATA analysis<br><a href="https://3.bp.blogspot.com/-tmuLosu9hF0/Wz3Yl3yfxzI/AAAAAAAABl4/ThhEM1QO0EEw17_lCOgK9Be0NFqmM_PYACEwYBhgL/s1600/IMG_0442.JPG"><figure class="attachment attachment--preview"><img src="https://3.bp.blogspot.com/-tmuLosu9hF0/Wz3Yl3yfxzI/AAAAAAAABl4/ThhEM1QO0EEw17_lCOgK9Be0NFqmM_PYACEwYBhgL/s640/IMG_0442.JPG" width="360" height="640"><figcaption class="attachment__caption"></figcaption></figure></a><br><a href="https://3.bp.blogspot.com/-tmuLosu9hF0/Wz3Yl3yfxzI/AAAAAAAABl4/ThhEM1QO0EEw17_lCOgK9Be0NFqmM_PYACEwYBhgL/s1600/IMG_0442.JPG">Spent entire day studying Illumina (Solexa) sequencing in detail, a messy sketch to work out the flow </a></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:22:36 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269452948</guid>
      </item>
      <item>
         <title>Week 1 Day 2  3/7/2018, Tue</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269453056</link>
         <description><![CDATA[<div>Today I continue study on NGS. I spent the entire morning until lunch to summarize what i have studied yesterday by writting them neatly in papers so that I can revise. <br><br>They are a number of variety of NGS. Those that I studied are Illumina (Solexa) sequencing, 454/Roche sequencing, SOLiD sequencing and Ion Torrent sequencing.<br><br>Except for Illumina, the remaining three types of sequencing method is rather similar where they required attachment of DNA fragment to a bead and undergo emulsion PCR. <br><br>454 sequencing is also known as pyrosequence, relies on the release of pyrophosphate when a nucleotide is incorporated. The release of pyrophosphate trigger the ATP sulphurylase to concert APS to ATP that power the catalytic reaction od luciferin and luciferase that results in light emission that allows for detection by the receptor. <br><br>Ion Torrent is very similar to 454 sequencing but rely on the change of pH as a H+ will be release when a nucleotide is incorporated causing a drop in pH. Therefore, unlike other sequencing method, Ion Torrent does not involve light signalling. <br><br>SOLiD stands for Sequencing by Oligonucleotides Ligation and Detection. It relies on ligation instead of  polymerization of DNA. 16 different types of probes is used, each with 2 nucleotide, but a few more bases is needed for proper ligation, 3 degenerated bases is added too. The primer is reset for a few times to cover the region occupied by the degenerated bases. <br><a href="https://2.bp.blogspot.com/-3a3TUo6tOQ0/Wz3YmWYpG6I/AAAAAAAABl8/JxmXGXpfHBUDqQimCo3pGv1LLTNvuTf_wCEwYBhgL/s1600/IMG_0453.JPG"><figure class="attachment attachment--preview"><img src="https://2.bp.blogspot.com/-3a3TUo6tOQ0/Wz3YmWYpG6I/AAAAAAAABl8/JxmXGXpfHBUDqQimCo3pGv1LLTNvuTf_wCEwYBhgL/s640/IMG_0453.JPG" width="360" height="640"><figcaption class="attachment__caption"></figcaption></figure>A lot neater as compared to what I did yesterday! </a><br><a href="https://2.bp.blogspot.com/-3a3TUo6tOQ0/Wz3YmWYpG6I/AAAAAAAABl8/JxmXGXpfHBUDqQimCo3pGv1LLTNvuTf_wCEwYBhgL/s1600/IMG_0453.JPG"> </a></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:23:59 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269453056</guid>
      </item>
      <item>
         <title>Week 1 Day 3  4/7/2018, Wed</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269453074</link>
         <description><![CDATA[<div>Detailed study in Sanger sequencing, and Maxam-Gilbert Sequencing. The developers of these were awarded with The Nobel Prize in Chemistry in 1980 for their contributions concerning the determination of nucleic acid sequence. However, Sanger sequencing remain a popular sequencing method whereas Maxim-Gilbert sequencing method is slowly being forgotten. This is due to technical complexity and extensive use of hazardous chemical such as radioactive substance and hydrazine which is a neurotixin. Anyhow, M-G sequencing served us well as it was the first to allow us to peep through the mystery of the genetic information.<br>With the emergence of NGS and the more recent SMRT, Sanger sequencing is believe to face the same destiny as M-G sequencing. <br><br>Sanger sequencing is not with no problem, it suffers from determination of base in runs of identical nucleotides, unable to read stretches of CG and presence of secondary structure that can interfere with DNA synthesis that causes premature termination. However, it remains the standard protocol for some scientists as it offers long reads and gold-standard accuracy. <br><br>Even though the emergence of NGS has drastically reduce the time taken for sequencing and cost per base sequence, there are condition where Sanger is still preferred.<br><a href="https://1.bp.blogspot.com/-xh7BhOsL9nc/Wz3YNC5wsyI/AAAAAAAABlc/p1QAsEqY-ewck-7ShGBJYfj6sabhGqVVgCEwYBhgL/s1600/IMG_0456%255B1%255D.JPG"><figure class="attachment attachment--preview"><img src="https://1.bp.blogspot.com/-xh7BhOsL9nc/Wz3YNC5wsyI/AAAAAAAABlc/p1QAsEqY-ewck-7ShGBJYfj6sabhGqVVgCEwYBhgL/s640/IMG_0456%255B1%255D.JPG" width="360" height="640"><figcaption class="attachment__caption"></figcaption></figure></a><br> </div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:24:19 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269453074</guid>
      </item>
      <item>
         <title>Week 1 Day 4  5/7/2018, Thu</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269453091</link>
         <description><![CDATA[<div>This company is co-organizing a symposium and is in charge of the workshop which will be held in my university (UPM). Today we need to go over to the computer lab for workshop for installation of software, make sure every computer is able to connect to the cloud server and test run on the computers in the lab.<a href="https://3.bp.blogspot.com/-3UTFlZwqD88/Wz3S3QG5VwI/AAAAAAAABlI/BUWUyb9b_PUW51m8YaV7CnXGfWU2ZRGgwCEwYBhgL/s1600/20180627081009FGSB2018_poster_FINAL_June2018-1.jpg"><figure class="attachment attachment--preview"><img src="https://3.bp.blogspot.com/-3UTFlZwqD88/Wz3S3QG5VwI/AAAAAAAABlI/BUWUyb9b_PUW51m8YaV7CnXGfWU2ZRGgwCEwYBhgL/s640/20180627081009FGSB2018_poster_FINAL_June2018-1.jpg" width="453" height="640"><figcaption class="attachment__caption"></figcaption></figure></a><a href="https://4.bp.blogspot.com/-3UTFlZwqD88/Wz3S3QG5VwI/AAAAAAAABlE/jP9m89lbKW07QT5sS9g7hiN9bHGpZizjACLcBGAs/s1600/20180627081009FGSB2018_poster_FINAL_June2018-1.jpg">The poster for the symposium &amp; workshop co-organised by this company</a><br><br>I was already told the first day of my internship that I'll be one of the facilitator for the workshop and I'll be going through the material before it gets to the participants. However, for the past few days I was only focus on studying the sequencing evolution and have not touched on the command line. So, today is the very first day I'm doing it and I'll have to dealt with 30 computers in the lab alongside with Zhe Kin, another intern in this company, and Melvin, one of the CoGen staff. <br><br>Though what we need to do there is very simple, maybe due to time constrain we don't get to test on more stuff. I'd only have to follow what is demonstrated, which is just some simple commands and to repeat it on 30 computers there.<br><br><br></div><div><a href="https://1.bp.blogspot.com/--M7dTLcsycA/Wz3YBKb4aiI/AAAAAAAABlY/I11m7pH8Zb4iBxZHPecaheAE6JUMDylxgCEwYBhgL/s1600/IMG_0459%255B1%255D.JPG"><figure class="attachment attachment--preview"><img src="https://1.bp.blogspot.com/--M7dTLcsycA/Wz3YBKb4aiI/AAAAAAAABlY/I11m7pH8Zb4iBxZHPecaheAE6JUMDylxgCEwYBhgL/s400/IMG_0459%255B1%255D.JPG" width="400" height="300"><figcaption class="attachment__caption"></figcaption></figure></a></div><div><br><a href="https://1.bp.blogspot.com/--M7dTLcsycA/Wz3YBKb4aiI/AAAAAAAABlY/I11m7pH8Zb4iBxZHPecaheAE6JUMDylxgCEwYBhgL/s1600/IMG_0459%255B1%255D.JPG">For the first time I feel like I’m a hacker!</a><br><br>What we did was to login all computers in PuTTY and WinSCP to the server and download the workshop materials to the desktop. Simplify the steps for the participants, such as create shortcuts at the first level and save the host name so the there's lesser chance that the participant can get the wrong server. <br><br>Other than that, we also test run on depositing genome sequence of a sample onto the online genome database developed by this company, (<a href="https://arkgene.com/">https://arkgene.com/</a>). Only then I realize that depositing a genome is not just about posting the sequences like how I copy and paste the sequence to BLAST. There are more things need to be included such as annotation, gene ontology, karyotype, KEGG and many more. <br><br>After the testing we went back to the office, and my plan was to continue on third generation sequencing.<br><br>The are 3 types of 3rd gen sequencing available in the market, the PacBio SMRT sequencing technique, Oxford Nanopore and Illumina Tru-Seq Synthethic Long Read Technology.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:24:42 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269453091</guid>
      </item>
      <item>
         <title>Week 1 Day 5  6/7/2018, Fri</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269453293</link>
         <description><![CDATA[<div>Today was started with some studies on third generation sequencing, particularly the PacBio SMRT sequencing and Oxford Nanopore Technology. <br><br>The distinguishing difference between these technology with NGS is that it does not require cloning of DNA which reduce the chances of error introduced during the amplification. The data can also be read in real time, by that it means it's like watching a live show of polymerization of DNA whereas the sequence data for NGS cannot be read in real time. NGS is about massive parallel sequencing of DNA fragments that results in short reads of length about hundreds nucleotides that can be a problem in genome assembly. In the third generation, the read length is at average 10-20 Kb which can contribute in high accuracy sequence. <br><br>The SMRT sequencing technology was developed by the company, Pacific Biosciences. SMRT stands for single molecule real time, which mean the sequencing take place at the the sample DNA without clonal amplification and is read on time with the polymerization of DNA. This technology enables, for the first time, the observation of natural DNA synthesis by a DNA polymerase as it occurs. DNA sequencing is performed on SMRT cells, each containing tens of thousands zero-mode waveguides, which illuminated by laser light and identify the signal released by the fluorescently labeled nucleotide when a nucleotide is incorporated.&nbsp; A single DNA polymerase is attached to the bottom of the ZMW. The sequencing mechanism is similar to Illumina sequencing, that is, sequencing by synthesis. <br><br>The Oxford Nanopore sequencing technology is release more recently in the year of 2016. With this technology, DNA can be sequenced by threading through a microscopic pore in a membrane. Bases are identified by the way they affect ions flowing through the pore from one side of the membrane to the other. A flow of ions through the pore creates a current. Each bases block the flow to a different degree, altering the current. <br><br>The weakness of the third generation sequencing is their high error rate (10-15%), however this can be corrected by some assembly program to an accuracy up to 99.99%. <br><br>Also, I have started on the command line. The slides have run me through some basic Linux command. I try these&nbsp; command with a software named PuTTY. Some command I learned include:<br>$ ls - list files and directories<br>$ mkdir - make directory (create folder)<br>$&nbsp; cd &lt;directory&gt; - to change directory (click in/enter)<br>$&nbsp; cd - home<br>$ cd .. - go one level up<br>$ pwd - print working directory (show path)<br>$ cp &lt;file&gt; &lt;destination&gt; - copying file to other destination<br>$ mv &lt;file&gt; &lt;destination&gt; - move a file to a new destination<br>$ rm &lt;file&gt; - remove a file (delete)<br>$ cat/less/head/tail - to display content <br>$ grep "string" &lt;file&gt; - to search something in a file (like ctrl + F)<br>$ top - to view processor activity<br><a href="https://2.bp.blogspot.com/-tIeEzS7jCz4/Wz98etdAOBI/AAAAAAAABnQ/jbVcNJ384ZABtkNX4KoO28w-Cs_8U0mfwCLcBGAs/s1600/NRKC2721.JPG"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:640,&quot;url&quot;:&quot;https://2.bp.blogspot.com/-tIeEzS7jCz4/Wz98etdAOBI/AAAAAAAABnQ/jbVcNJ384ZABtkNX4KoO28w-Cs_8U0mfwCLcBGAs/s640/NRKC2721.JPG&quot;,&quot;width&quot;:360}" data-trix-content-type="image"><img src="https://2.bp.blogspot.com/-tIeEzS7jCz4/Wz98etdAOBI/AAAAAAAABnQ/jbVcNJ384ZABtkNX4KoO28w-Cs_8U0mfwCLcBGAs/s640/NRKC2721.JPG" width="360" height="640"><figcaption class="attachment__caption"></figcaption></figure>Find it kind of fun doing thing that I don't usually do!</a><br>Though it wasn't so hard but it took me some time to learn the technique of using it and learn some shortcut and some useful tricks so I can save some typing.<br><br>Then I started with the second module, the pre-processing, the first step of bioinformatics analysis. The seqencing data (reads) have to be pre-process, this is because bad sequence quality can affect analysis. Bad data have to be removed before the sequence is assembled. <br><br>The very first task in pre-processing is to run FastQC. To run FastQC, the seqence data have to be in Fastq format. I was only exposed to FASTA format in my lecture which is a simpler format that contain only identity of the sequence and the sequence itself. The Fastq format is a 4 lines format where the first line which always start with @ is the tag that indicate the sequence, second line is the bases sequence, third line that starts with + sign is an optional sequence identifier and the last line is is the quality score corresponding the bases in line 2. <br><br>In the FastQC report, there are basic statistics and 9 other parameters. A good quality sequence should have a green tick beside each of the parameters. Parameters with red cross or yellow exclamation mark should be paid with more attention. The 10 parameters are<br>1. Per base sequence quality - has to be high across bases<br>2. Per sequence quality score - to see if there is any bad sequence<br>3. per base sequence content - each line in the graph should be parallel and should be about 25%<br>4. Per base GC content - to see if there is any biased sequence the graph should align with the normal distribution graph (bell shape), if it doesn't overlap nicely the sample might be contaminated. <br>5. per base N content - tell if there is any uncoded base, there shouldn't be any uncoded base at all<br>6. Length distribution - to see if the length is consistent, all sequence should have the same length<br>7. Sequence duplication level - determine how unique the sequence is in the library, most of the sequence in the library should only occur once<br>8. Over represented sequence -&nbsp; to show if there is sequence like adapter in the library<br>9. K-mer content - to show the gene that is over represented<br><a href="https://4.bp.blogspot.com/-aT-wVqXuXIQ/Wz99SEnuudI/AAAAAAAABng/qEV7_4UeRPMwkGoixX8YHGQ8ZuLrzA8-wCLcBGAs/s1600/IMG_0470.JPG"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:640,&quot;url&quot;:&quot;https://4.bp.blogspot.com/-aT-wVqXuXIQ/Wz99SEnuudI/AAAAAAAABng/qEV7_4UeRPMwkGoixX8YHGQ8ZuLrzA8-wCLcBGAs/s640/IMG_0470.JPG&quot;,&quot;width&quot;:480}" data-trix-content-type="image"><img src="https://4.bp.blogspot.com/-aT-wVqXuXIQ/Wz99SEnuudI/AAAAAAAABng/qEV7_4UeRPMwkGoixX8YHGQ8ZuLrzA8-wCLcBGAs/s640/IMG_0470.JPG" width="480" height="640"><figcaption class="attachment__caption"></figcaption></figure>Today's messy sketch!</a><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:27:39 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269453293</guid>
      </item>
      <item>
         <title>Week 2 Day 1  9/7/2018, Mon</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269455053</link>
         <description><![CDATA[<div>The previous working day I was working on FastQC, I was kind of curious in why can I do that in command line? Like do IT people know biology too?! I mean there are people who are good at booth computer science and biology but not everyone of them are bioinformaticians. So, I did a little research.<br><br>First, what is FastQC? FastQC is a quality control tool developed at Brabaham institute that aims to provide a simple way to do some quality checks on raw sequence data coming form high-throughput pipelines. It reads a set of sequence files and produces from each one a quality control report consisting of a number of different modules, each one which will help to identify potential type of problem in your data. According to the official Brabraham website (<a href="https://www.bioinformatics.babraham.ac.uk/projects/fastqc/">https://www.bioinformatics.babraham.ac.uk/projects/fastqc/</a>)<br>the main functions of FastQC are<br>1. Import data from BAM, SAM or FastQ files (any variant)<br>2. Providing a quick overview to tell you in which areas there may be problems<br>3. Summary graphs and tables to quickly assess your data<br>4. Export of results to an HTML based permanent report<br>5. Offline operation to allow automated generation of reports without running the interactive application<br><br>Babraham Institute, the institute that developed FastQC is a world-class institute that is with partnership with the University of Cambridge. Their bioinformatics group provides an interface between the computational infrastructure of the institute and the biology performed within the research group.<br><br>FastQC is a java application. In order to run FastQC, a suitable Java Runtime Environment (JRE) has to be installed in your system. Java version earlier than 1.6 will have problem running fastQC. However, installation of latest java version is easy. <br><br>The pre-processing of the raw sequences data were done with FASTX-Toolkit. FASTX-Tool kit is a collection of command line tools for Short-Reads FASTA/FASTQ files processing. NGS machines usually produces FASTA or FASTQ files, containing multiple short-reads sequences. <br>The available tools offered by this toolkit include:<br>- FASTQ-to-FASTA converter <br>- FASTQ information/Quality filter/Quality trimmer/ Masker<br>- FASTQ/A Collapser/Trimmer/Renamer/Clipper/Reverse-compliment/Barcode splitter/formatter/Nucleotide Changer<br><br>These tools can be used in two forms:<br>1.  Web-based (with Galaxy) (<a href="http://main.g2.bx.psu.edu/">http://main.g2.bx.psu.edu/</a>)<br>2. Command-line<br><br>In my case, we are using the command line lsin processing the raw data, <br><br>1. trim off undesired segments with <br><em><mark>$ fastx_trimmer -Q 33 -f # -l # -i (input file) -o (output file)</mark></em><br>where,<br><strong>Q</strong> 33 indicate the encoding of the sequence, <br><strong>f</strong> = first base to keep,<br><strong>l</strong> = last base to keep <br><br>2. trim low-quality bases and filter short reads with <br><em><mark>$ fastq_quality trimmer -Q 33 -t # -l # -i(input file) -o (output file)</mark></em><br>where,<br><strong> t</strong> = quality threshold for trimming (the number assign represent the Phred score ie. Q 20 = 0.01 (99%)),<br><strong> l</strong> = minimum length of the sequence<br><em>* to trim base that has Q &lt; treshold &amp; discard sequence with length shorter than set</em><br><br>3. Remove ambiguous bases (usually adaptor)<br><em><mark>$ fast_clipper -Q 33 - a XXXXXXXXXXXXX -i(input file) -o (output file)</mark></em><br>where, <br><strong>a</strong> = adaptor (default = CCTTAAGG, dummy adaptor) <br><br>4. Remove low quality data<br><em><mark>$ fastq_quality_filter -Q 33 -q # -p # -i(input file) -o (output file)</mark></em><br>where,<br><strong>q</strong> = minimum quality score to keep<br><strong>p </strong>= minimum percentage % of bases in a sequence that must have [-q] quality <br><br>the last step before assembly is to <strong><em>separate unpaired reads</em></strong>. Some researchers find it unnecessary as they will however be discarded when they are not being mapped. Anyhow, to separate it allow us to get better statistic maybe of some meaningful usage.  In the server I'm accessing, it is already pre-installed with the script so I'll only have to key in the command and sometimes including the full path to carry out this task. The command I used is <br>$ /share/apps/scripts/separateunpaired2.bpy &lt;trimmed forward.fastq&gt; &lt;trimmed reverse.fastq&gt; &lt;PE1.fastq&gt; &lt;PE2.fastq&gt; &lt;SE.fastq&gt;<br>where the long string is the full pah to call the command, first two files are the input, the PEs and SE are the output (PE = paired end [PE 1 = read 1; PE 2 = read 2], SE = single end)<br>Some researchers suggested Galaxy Tool for this task. The tool is a short Python script which divides a fastq file into paired reads, and single (orphan) reads. The input file can be two separated files for the forward/reverse reads or have them interleaved in a single file. Fastq variant is unimportant in this sense.  <br>It can be accessed from the following link (<a href="https://toolshed.g2.bx.psu.edu/repository?repository_id=3c4a991608b4c8dd">https://toolshed.g2.bx.psu.edu/repository?repository_id=3c4a991608b4c8dd</a>)</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:51:01 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269455053</guid>
      </item>
      <item>
         <title>Week 2 Day 2  10/7/2018, Tue</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269455561</link>
         <description><![CDATA[<div>Bioinformatics depends heavily on Linux-based computers and software. A lot of good scientific software is written specifically for Linux/Unix. Additionally, Linux has most popular programming languages like Python, Perl, C, already installed and ready to use. Since I am now practicing on this company's server that run on linux, then I came to think about, how can I practice if I'm no longer with this company. Then I found some websites that offer online simulator in Linux. A shell account is a user account on a remote server, traditionally running under the Unix operating system, which gives access to a shell via a command-line interface protocol such as telnet or SSH. Shell providers are often found to offer shell account at low-cost or free. These shell accounts generally provide users with access to various software and services and some may also allow tunneling of traffic to bypass corporate firewalls. <br>Below are several links to online simultor in linux to practice Linux commands<strong><br></strong><a href="http://www.freelinuxconsole.info/"><strong>http://www.freelinuxconsole.info/</strong></a></div><div><a href="http://www.tutorialspoint.com/codingground.htm"><strong>http://www.tutorialspoint.com/codingground.htm</strong></a></div><div><a href="http://bellard.org/jslinux/"><strong>http://bellard.org/jslinux/</strong></a></div><div><a href="http://www.webminal.org"><strong>http://www.webminal.org</strong></a><strong><br></strong><a href="http://linuxzoo.net/"><strong>http://linuxzoo.net/</strong></a><strong><br></strong><a href="http://www.masswerk.at/jsuix/"><strong>http://www.masswerk.at/jsuix/</strong></a><strong><br></strong><a href="https://witsbits.com"><strong>https://witsbits.com</strong></a><strong><br></strong>(suggested by <a href="https://gooroo.io/GoorooThink/Article/16501/Online-simulator-in-Linux--Practice-Linux-Commands-Untitled/20590#.W0QWjNIzZPa">https://gooroo.io/GoorooThink/Article/16501/Online-simulator-in-Linux--Practice-Linux-Commands-Untitled/20590#.W0QWjNIzZPa</a>)<br><br>There are also website that offers courses for Linux novice like me who wants to learn the basic Linux without getting too much technical details. This website (<a href="https://www.bits.vib.be/training-list/112-bits/training/upcoming-trainings/124-linux-for-bioinformatics">https://www.bits.vib.be/training-list/112-bits/training/upcoming-trainings/124-linux-for-bioinformatics</a>) is good to try out. <br><br>Some useful Linux command line exercise or rather a cheat sheet for NGS data processing can be accessed here (<a href="http://userweb.eng.gla.ac.uk/umer.ijaz/bioinformatics/linux.html">http://userweb.eng.gla.ac.uk/umer.ijaz/bioinformatics/linux.html</a>)</div><div><br>After pre-processing, we proceed to the next stage, genome assembly. Genome assembly is started with <em>de novo </em>assembly by using Velvet assembler. Velvet is an algorithm package that has been designed to deal with <em>de novo</em> genome assembly and short read sequencing alignments based on de Bruijn graphs. It is developed by Daniel Zerbina and Ewan Birney at the European Bioinformatics Institute (EBI) in UK.&nbsp; The velvet manual can be accessed here (<a href="https://www.ebi.ac.uk/~zerbino/velvet/Manual.pdf">https://www.ebi.ac.uk/~zerbino/velvet/Manual.pdf</a>)<br><br>Velvet takes the reads as input and turns them into contig. It consists of two steps, the first step, <strong><em>velveth</em></strong>, helps to construct data sets (hashes the read) for velvetg and includes information about the meaning of each sequence file. Afterward, the de Bruijn graph is built from k-mer obtained from velveth by running simplification and error correction over the graph and contigs are created with <strong><em>velvetg</em></strong>. <br><br>First step is to run velveth (chopping reads into short k-mer) in order to construct a hash table for each of the selected k-mer. The number of selected k-mer (the k-mer length a.k.a. has length) must be an odd number to avoid palindromes. The recommended K-mer length is 61-73. The k-mer should be long enough to avoid false positive, but not too long that you miss out reads in assembly. Longer K-mer has higher specificity (less spurious overlap) but lower coverage; however, short k-mer has higher sensitivity. Read this for more information on how k-mer length affect the assembly (<a href="http://ivory.idyll.org/blog/the-k-parameter.html">http://ivory.idyll.org/blog/the-k-parameter.html</a>). The command used in my system for velveth is <br><em><mark>$ velveth hash61 61 -fastq -shortPaired -separate PE1.fasq PE2.fastq &gt; log_velveth</mark></em><br>where, <br><strong>velveth</strong> = command, <br><strong>hash61</strong> = the output directory<br><strong>61</strong> = k-mer length<br><strong>fastq</strong> = input read format type<br><strong>shortPaired</strong> = input read format type. Paired end<br>(short = single end)<br>PE1/PE2.fastq = <strong>input files</strong><br><strong>&gt;</strong> log_velveth = <strong>output file<br><br></strong>After velveth, in the output directory should have <br>1. Log - useful reminder of what commands is typed to fet the assembly result<br>2. Roadmaps - contain the index that has just been created<br>3. Sequences - contain the sequence being put in<br><br>After velveth come out with the k-mers, velvetg build the de Bruijn graph by running simplification and error removal to come come out with contigs. <br><a href="https://en.wikipedia.org/wiki/File:Example_1seq.pdf"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:514,&quot;url&quot;:&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Example_1seq.pdf/page1-660px-Example_1seq.pdf.jpg&quot;,&quot;width&quot;:660}" data-trix-content-type="image"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Example_1seq.pdf/page1-660px-Example_1seq.pdf.jpg" width="660" height="514"><figcaption class="attachment__caption"></figcaption></figure></a><br>Simplification is about merging nodes that do not affect the path generated in the graph. Error in the graph can be caused by sequencing process or error contained by the sample itself. <br>Velvet recognize 3 kinds of error namely <br>1. tips - node that is disconnected on one of its ends<br><a href="https://en.wikipedia.org/wiki/File:Example_3.pdf"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:251,&quot;url&quot;:&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Example_3.pdf/page1-660px-Example_3.pdf.jpg&quot;,&quot;width&quot;:660}" data-trix-content-type="image"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Example_3.pdf/page1-660px-Example_3.pdf.jpg" width="660" height="251"><figcaption class="attachment__caption"></figcaption></figure></a><br>2. bubbles - when two distinct path start and end at the same node, error is removed by Tour Bus algorithm<br><a href="https://en.wikipedia.org/wiki/File:Example_4.pdf"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:75,&quot;url&quot;:&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Example_4.pdf/page1-660px-Example_4.pdf.jpg&quot;,&quot;width&quot;:660}" data-trix-content-type="image"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Example_4.pdf/page1-660px-Example_4.pdf.jpg" width="660" height="75"><figcaption class="attachment__caption"></figcaption></figure></a><br>3. erroneous connections - connections that do not generate paths or do not create any recognizable structure within the graph.<br><br>This website provides a comprehensive breakdown on the velvet algorithm (<a href="http://melbournebioinformatics.github.io/MelBioInf_docs/tutorials/assembly/assembly-background/">http://melbournebioinformatics.github.io/MelBioInf_docs/tutorials/assembly/assembly-background/</a>)<br><br>The command used for velvetg in my case is as following<br><em><mark>$ velvetg hash61 -exp_cov auto -read_trkg yes &gt; log_velvetg</mark></em><br>where<br><strong>velvetg</strong> = command<br><strong>hash61</strong> = velvetg output directory name<br><strong>exp_cov</strong> = expected coverage of unique regions (median coverage depth) <br>(auto = let the system to infer)<br><strong>read_trkg</strong> = tracking of short read position in assembly<br>(add <strong><em>-unused_reads</em></strong> to save unassembled reads into file named UnusedReads.fa)<br><br>The Log file for velvetg (Log_velvetg) provides information such as<br>1. median coverage depth<br>2. number of nodes - number of contigs in the graph<br>3. N50 size&nbsp; <br>4. max contig size<br>5. total contig size<br>6. number of reads utilized to construct the de Bruijn graph<br><br>After velveth, in the output directory should have <br>1. contig.fa - the assembled contigs in .fasta format<br>2. LastGraph - Detailed representation of the de Bruijn graph<br>3. PreGraph<br>4. UnusedReads.fa<br>5. Graph2<br>6. stats.txt - intermediate information about each contig (Average coverage and length in k-mer, how many edges went in/out of this contig node)<br><br>N50 length is the length of the shortest contig such that the sum of contigs of equal or longer is at least 50% of the total length of all contigs. More descriptive explanation can be found in the following links<br>(<a href="https://www.molecularecologist.com/2017/03/whats-n50/"><strong>https://www.molecularecologist.com/2017/03/whats-n50/</strong></a>)<br>(<a href="http://jermdemo.blogspot.com/2008/11/calculating-n50-from-velvet-output.html"><strong>http://jermdemo.blogspot.com/2008/11/calculating-n50-from-velvet-output.html</strong></a>)<br><br>To get the best k-mer, optimization can be done by testing different value (61-93) of hash length. That literally means repeating velveth and velvtg with k-mer of odd numbers from 63-93 (63, 65, 69, 71, 73, 77, 79, 81, 83, 85, 87, 89, 91, 93). A script can be prepared for ease with automation in brute-force way</div><div><br><strong><em>#!/bin/bash</em></strong></div><div><strong><em>#run_velvet.sh</em></strong></div><div><strong><em>for f in 61 63 65 69 71 73 75 77 79 81 83 85 89 91 93</em></strong></div><div><strong><em>do</em></strong></div><div><em>/share/apps/</em><strong><em>velvet_1.2.08</em></strong><em>/velveth h"$f" "$f" -fastq -shortPaired -separate PE1.fastq PE2.fastq &gt;&gt; log.batch.velveth</em></div><div><em>/share/apps/</em><strong><em>velvet_1.2.08</em></strong><em>/velvetg h"$f" -exp_cov auto -read_trkg yes -unused_reads yes -ins_length 153 -ins_length_sd 100 &gt;&gt; log.batch.velvetg</em></div><div><strong><em>done<br></em></strong>&nbsp;<br>This script varies depends on where the script for velvet is located in your server and the velvet version used. Brute force approach is to try with every possible way and decide afterwards which one is the best. In this context, to run velvet in brute-force way is to try every k-mer length and see which gives the highest coverage. <br>&nbsp;<br>Thre script is run with the following command<br><em><mark>$ bash run_velvet.sh &amp;</mark></em><br><strong>bash</strong> = command processor that runs in a text window where the command that cause actions is typed<br><strong>run_velvet.sh</strong> = the script file<br><strong>&amp;</strong> = run in background (can go without '&amp;' if do not prefer command to run in background)<br><br>It takes couple minutes for it to run, by the end of the run an output file can be found ( log.batch.velveth/log.batch.velvetg) <br>To check for reports from every velvet run directories can use this command<br><em><mark>$ tail -n 1 h*/Log</mark></em><br>The report is a compilation of velvetg log files for all k-mer length. <br>Whereas, the number of scaffolds for each assembly can be checked with the following command line<br><em><mark>$ grep -c "&gt;" h*/contigs.fa</mark></em><br><br>A combined graph of K-mer length against N50 (bp) and K-mer length against no. of contigs can be drafted to help finding the best k-mer length easier. A good k-mer length should have low number of contigs and long N50 length. The K-mer number that fulfill these two condition at this stage is selected to proceed for scaffolding.&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 08:56:57 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269455561</guid>
      </item>
      <item>
         <title>Week 2 Day 3  11/7/2018, Wed</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269456215</link>
         <description><![CDATA[<div>Note that velvet leverage de Bruijn graph method for <em>de novo</em> assembly but what is that method about?<br><br>First thing first, genome assembly refers to the process of taking a large number of short DNA sequences and putting them back together to create a representation of the original chromosomes from which the DNA originated. <strong><em>De novo genome assemblies assume no prior knowledge of the source DNA sequence length, layout or composition</em></strong>. In a genome sequencing project with NGS, the DNA of the target organism is broken up into millions of small pieces and read on a sequencing machines. These 'reads' vary from 20 to 20k nucleotide base pairs in length depending on the sequencing method used. The goal of the assembly is to produce long contiguous pieces of sequence (contigs) from these reads. The contigs are then ordered and oriented in relation to one another to form scaffolds. There are two commonly used method for <em>de novo</em> assembly, the Overlap-Layout-Consensus (OLC) assembly and de Bruijn graph (DBG) assembly.<br><br>In OLC assembly, as state in its name, there are three steps, overlap, layout and consensus. The overlap step find potentially overlapping reads. This is done by all against all pair-wise comparison. The graph is built with reads as nodes and overlaps as edges. Layout step merge reads into contigs by analyse, simplify and clean the overlap graph then determine the Hamiltonian path. Whereas, consensus derive the DNA sequence and correct read errors by align reads along assembly path and call bases using weighted voting. This method is more suitable for longer reads (&gt;=1Kb). Some of the <strong>challenges</strong> faced this method include<br>1. building overlap is slow (how to determine all pairwise overlaps of reads)<br>2. Overlap graph is big (how to limit the size of the graph used to represent the data)<br>Seee detailed explaination of OLC assembly can be accessed here (<a href="http://www.cs.jhu.edu/~langmea/resources/lecture_notes/assembly_olc.pdf">http://www.cs.jhu.edu/~langmea/resources/lecture_notes/assembly_olc.pdf</a>)<figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:440,&quot;url&quot;:&quot;https://www.researchgate.net/profile/Christina_Toft/publication/26266221/figure/fig2/AS:216492458156039@1428627232413/Overlap-layout-consensus-genome-assembly-algorithm-Reads-are-provided-to-the-algorithm.png&quot;,&quot;width&quot;:600}" data-trix-content-type="image"><img src="https://www.researchgate.net/profile/Christina_Toft/publication/26266221/figure/fig2/AS:216492458156039@1428627232413/Overlap-layout-consensus-genome-assembly-algorithm-Reads-are-provided-to-the-algorithm.png" width="600" height="440"><figcaption class="attachment__caption"></figcaption></figure>Overlap–layout–consensus genome assembly algorithm: Reads are provided to the algorithm. Overlapping regions are identified. Each read is graphed as a node and the overlaps are represented as edges joining the two nodes involved. The algorithm determines the best path through the graph (Hamiltonian path). Redundant information (i.e., unused nodes and edges) is discarded. This process is carried out multiple times and resulting sequences are combined to give the final consensus sequence that represents the genome.<a href="https://upload.wikimedia.org/wikipedia/commons/6/68/OLC%2COverlap-Layout-consensus.png"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:600,&quot;url&quot;:&quot;https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/OLC%2COverlap-Layout-consensus.png/397px-OLC%2COverlap-Layout-consensus.png&quot;,&quot;width&quot;:397}" data-trix-content-type="image"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/OLC%2COverlap-Layout-consensus.png/397px-OLC%2COverlap-Layout-consensus.png" width="397" height="600"><figcaption class="attachment__caption"></figcaption></figure></a><br>The de Bruijn graph focus not on the reads but on what the reads can tell about the sequence of the original genome. Each reads is broken up into a smaller substring of a length k&nbsp; (k-mer). The K-mer will end up respresenting nodes in the graph. The edges are created when 2 K-mer are immediately adjacent to the read (L-mer overlap by exactly K-1 letter).&nbsp; The graph is constructed by assigning each unique K-mer as a node in a graph and connecting immediately overlapping k-mer by edge.&nbsp; At position where related sequence diverge due to alllelic polymorphism, splicing variation, repeats, sequencing errors, the graph will form bubble. After building the graph from all the reads, the graph is pruned to remove bubbles and structures that is likely to be sequencing error. The graph is compact by collapsing those nodes that from linear unbranched chain and overlapping K-mers. <figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:317,&quot;url&quot;:&quot;https://www.researchgate.net/profile/Yasubumi_Sakakibara/publication/229437536/figure/fig1/AS:300689508061184@1448701373275/Illustration-of-de-Bruijn-graph-based-assembly.png&quot;,&quot;width&quot;:456}" data-trix-content-type="image"><img src="https://www.researchgate.net/profile/Yasubumi_Sakakibara/publication/229437536/figure/fig1/AS:300689508061184@1448701373275/Illustration-of-de-Bruijn-graph-based-assembly.png" width="456" height="317"><figcaption class="attachment__caption"></figcaption></figure>De Bruijn graph method is very sensitive to sequencing error which leads to the creation of false k-mer which complicate the graph structure and reduce its apparent efficiency. A typical graph will have an exponential number of Eulerian path and as finding the one path that represent the genome being assembled leads to intractable computational problem. Eulerian path go through each edge exactly once. It is computationally challenging because it is affected by error which further complicating the choice between competing approach. It is also relatively complex process to construct and reduce its apparent efficient. This paper provides more insight of why de Bruijn graph is useful for genome assembly (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5531759/pdf/nihms329513.pdf">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5531759/pdf/nihms329513.pdf</a>)</div><div><br></div><div>The major <strong>differences between OLC assembly and dBG assembly</strong> are<br><strong><em>OLC</em></strong><br>- nodes = reads; edges = overlaps<br>- Determine Hamiltonian path<br>- less sensitive to repeats and read errors<br>- graph construction is more demanding (computationally)<br>- doesn't scale to voluminous short reads<br><br><strong><em>dBG</em></strong><br>- nodes = one for each unique k-mer; edges = k-1 exact overlap between 2 nodes<br>- determine Eulerian path (linear time algorithm)<br>- more sensitive to repeats and read errors<br>- graph converge at repeats of length k<br>- one read error introduces k false nodes<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 09:03:33 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269456215</guid>
      </item>
      <item>
         <title>Week 2 Day 4  12/7/2018, Thu</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269456219</link>
         <description><![CDATA[<div>Before proceeding to scaffolding, let's first be familiar with the vocabularies. <br><strong>Contig</strong> - a sequence of a maximal path through the graph/ a contiguous length of genomic sequence in which the order of bases is known to a high confidence level<br><strong>Scaffold</strong> - linking and orienting of contigs based on paired-end information, it is composed of contigs and gaps<br><strong>Gap</strong> - occur where reds from the two sequenced end of at least one fragment overlap with other reads in two different contigs <br><br>PacBio has given a comprehensive review on the comparison of contigs and scaffolds. Contigs are continuous stretches containing only A, C, G or T bases without gaps. Scaffolds are created by chaining contigs together using additional information about the relative position and orientation of the contigs in the genome. Contigs in a scaffold are separated by gaps, which are designated by a variable number of 'N' letters. Scaffolding is often used for short-read assemblies to make sense of the fragmented genome assemblies containing short contigs. <figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:196,&quot;url&quot;:&quot;https://genome.jgi.doe.gov/help/screenshots/contigscaff2.gif&quot;,&quot;width&quot;:310}" data-trix-content-type="image"><img src="https://genome.jgi.doe.gov/help/screenshots/contigscaff2.gif" width="310" height="196"><figcaption class="attachment__caption"></figcaption></figure>Using paired-read sequencing data it is possible to assess the order, distance and orientation of contigs and combine them into scaffoldsPaired-read sequencing technology may help to reduce the amount of contigs as the known intermediate distance between read pairs can be used to place contigs in their likely order and orientation. The length of the resulting scaffolds (or supercontigs) also reflects the estimated distance between the initial contigs.&nbsp;<br><br></div><div>There are 3 important principal deficiencies of scaffolds<br><strong>1. Scaffolds miss critical information </strong><br>-&nbsp; gaps represent missing genomic information and these gaps often coincide with important genomic loci. <br><strong>2. The length of a scaffold gap often has no relation to the true gap size</strong><br>-&nbsp; In most cases, the true length of sequence represented by the gap differs from the set gap size. The uncertainties of gap size in scaffolds result in an inability to understand the true spatial relationships of functional elements in genome and is an underestimate of the actual extend of missing information <br><strong>3. Gap-flanking scaffold sequence can be low-quality and is sometimes completely wrong</strong><br>-&nbsp; The sequences surrounding gaps often fall into areas where short-read technologies have deficiencies due to GC-bias or read-length limitations. In some ways, having incorrect flanking sequence in scaffolds is worse than having 'N' gaps, since that erroneous sequence is considered and included for downstream analyses. (<a href="https://www.pacb.com/blog/genomes-vs-gennnnes-difference-contigs-scaffolds-genome-assemblies/">https://www.pacb.com/blog/genomes-vs-gennnnes-difference-contigs-scaffolds-genome-assemblies/</a>)</div><div><a href="https://1.bp.blogspot.com/-qKCpc_ejQts/W0axcBU--uI/AAAAAAAABnw/Xer5ElON_vYW6hz4mynhMtB4Zg7DL9v9QCLcBGAs/s1600/Picture1.png"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:218,&quot;url&quot;:&quot;https://1.bp.blogspot.com/-qKCpc_ejQts/W0axcBU--uI/AAAAAAAABnw/Xer5ElON_vYW6hz4mynhMtB4Zg7DL9v9QCLcBGAs/s400/Picture1.png&quot;,&quot;width&quot;:400}" data-trix-content-type="image"><img src="https://1.bp.blogspot.com/-qKCpc_ejQts/W0axcBU--uI/AAAAAAAABnw/Xer5ElON_vYW6hz4mynhMtB4Zg7DL9v9QCLcBGAs/s400/Picture1.png" width="400" height="218"><figcaption class="attachment__caption"></figcaption></figure></a><br>The <strong>scaffolding</strong> will be done using SSPACE. SSPACE stands for <em>SSAKE*</em>-based Scaffolding of Pre-Assembled Contigs after Extension, is a stand-alone program for scaffolding pre-assembled contigs (in my case, velvet is used) using NGS paired-read data. Scaffolding algorithms are often built-in function in <em>de novo</em> assembly tools and cannot be independently controlled. SSPACE is unique in offering the possibility to manually control the scaffolding process. SSPACE is implemented in Perl, it requires bowtie (<a href="http://bowtie-bio.sourceforge.net/index.shtml">http://bowtie-bio.sourceforge.net/index.shtml</a>).<br><br>Some insight according to the developer of SSPACE, Marten Boetzer, he developed this program since he couldn't find a program which was able to do a stand-alone scaffolding dated back to 2010, except from Bambus. He also found lots of issues on Bambus including errors and complicated input datasets. He also stated the <strong><em>main features of SSPACE</em></strong> including<br>1. Input are simple FASTA contig sequences as well as (multiple) FASTA/FASTQ paired-read data<br>2. High quality scaffolds in a short runtime and limited memory requirements<br>3. High reduction of the amount of contigs stored in scaffolds and high N50 value<br>4. Multiple library input of both paired-end datasets<br>5. Possible contig extension of unmapped sequence reads<br>6. Easy interpretation of the final scaffolds<br>7. Visualization of the final scaffolds using GraphViz<br>(<a href="http://seqanswers.com/forums/showthread.php?t=8350">http://seqanswers.com/forums/showthread.php?t=8350</a>)<br><br>*More information about SSAKE, please read <br>René L. Warren, Granger G. Sutton, Steven J. M. Jones, Robert A. Holt; Assembling millions of short DNA sequences using SSAKE, <em>Bioinformatics</em>, Volume 23, Issue 4, 15 February 2007, Pages 500–501, <a href="https://doi.org/10.1093/bioinformatics/btl629">https://doi.org/10.1093/bioinformatics/btl629</a><br><br><strong>The SSPACE algorithm <br></strong><em>(for lazy readers, read the highlighted part)</em><br>1. <mark>short-paired DNA reads are filtered</mark> by removing sequences containing non-ATCG characters, <mark>the remaining read pairs are mapped</mark> against the pre-assembled contigs <mark>using </mark><em><mark>Bowtie</mark></em>*<br>2. The <mark>position and orientation</mark> of each pair that could be mapped is <mark>stored in a hash</mark>.<br>3. <mark>Remove duplicate read-pairs</mark><br>4. *starting of scaffolding* <mark>putative contig pairs are computed</mark> based on the <mark>position</mark> of the paired reads on different contigs<br>- contigs pairs are only considered if the calculated distance between them satisfy the user-defined distance range<br>5. after pairing of cotigs, <mark>scaffolds are formed by iteratively combining contigs</mark> starting with the largest contigs <br>-&nbsp; only if a minimum number of read pairs (<em>k) </em>support the connection (default <em>k</em>=5) <br>- If there is alternative connections, the algorithm seeks to place all alternatives in the correct order using the estimated insertion. Otherwise a ratio is calculated between the two best alternatives. If the ration is below the threshold (default <em>a</em>=0.7) , a connection with the best scoring alternative is established.<br>6. <mark>Extension</mark> of scaffolds is <mark>aborted</mark> <mark>if</mark> either<br>-a <mark>contigs</mark> has <mark>no links</mark> with other contigs or<br>-&nbsp; the <mark>ratio</mark> for alternatives is <mark>exceeded</mark><br>7. the <mark>scaffolding process is repeated</mark> until <mark>all contigs are incorperated</mark> into linear scaffolds<br><br>This paper provides detailed information on scaffolding with SSPACE<br>(<em>Bioinformatics</em>, Volume 27, Issue 4, 15 February 2011, Pages 578–579, <a href="https://doi.org/10.1093/bioinformatics/btq683">https://doi.org/10.1093/bioinformatics/btq683</a>)<br><br>Bowtie is an ultrafast, memory-efficient alignment program for aligning short DNA sequence reads to large genome. It employs a Burrow-Wheeler index based on the full-text minute space (FM) index, which has a small memory footprint.<br>This paper describes Bowtie in detail. <br>(Langmead, B., Trapnell, C., Pop, M., &amp; Salzberg, S. L. (2009). Ultrafast and memory-efficient alignment of short DNA sequences to the human genome. <em>Genome Biology</em>, <em>10</em>(3), R25. <a href="http://doi.org/10.1186/gb-2009-10-3-r25">http://doi.org/10.1186/gb-2009-10-3-r25</a>)<br><br>Before performing scaffolding with SSPACE, a SSPACE library file is needed. The file basically consists of the PE1 &amp; 2 files name, insert size, allowed error rate and paired end indicator. <br>Following command line is used to call for the scaffolding<br><em><mark>$ SSPACE_Basic_vXXXX -l sspace_library.txt -s contigs.fa -z # -k # -a # -n # -T # &gt; log_sspace</mark></em><br>where<br><strong>#</strong> = number<br><strong>-l </strong>= the library file<br><strong>-s</strong> = the contigs file from the assembly (velvet)<br><strong>-z</strong> = minimum contig length used for scaffolding. Filter out contigs that are below -z (default = 0, optional)<br><strong>-k</strong> = minimum number of links (read pairs) to compute scaffold (default = 5, optional)<br><strong>-n</strong> = minimumoverlap required between contigs to merge adjacent contigs in a scaffold (default = 15, optional)<br><strong>-T</strong> = number of threads used for Bowtie map (default = 1)<br><strong>-b</strong> = base name for your output files<br>more info can be found here (<a href="https://github.com/ablab/external-tools/blob/master/scaffolding/sspace/MANUAL">https://github.com/ablab/external-tools/blob/master/scaffolding/sspace/MANUAL</a>) <br>or the Standard User manual <br>(<a href="http://gyra.ualg.pt/_static/F132-03_SSPACE_Standard_User_manual_v3.0.pdf">http://gyra.ualg.pt/_static/F132-03_SSPACE_Standard_User_manual_v3.0.pdf</a>)<br><br>What I encountered was the command cannot be called, in this case, try to write it out in full path. In my case, I tried<br><em><mark>$ perl /share/apps/SSPACE-BASIC....</mark></em>depending on where it is stored in your server<br>The <strong>output</strong> include<br>1. <strong>log_sspace</strong> - logs execution time / errors<br>2. <strong>standard_output.final.scaffolds.fasta</strong> - final scaffolds produced by SSPACE<br>3. <strong>standard_output.final.evidence</strong> - produced scaffolds including the initial numbered contigs<br>4. <strong>standard_output.summaryfile.txt</strong> - gives a summary after every step. Summary of number of inserted sequences, filtered sequences, contig sequences, mapping stats, pairing stats and contig/scaffold size summaries<br>5. <strong>reads</strong> - FASTA file, converted files of the paired-read data, each two consecutive sequences are pairs. This file is used as input for both the contig extension as the scaffolding step<br>6. <strong>bowtieoutput</strong> - folder, containing 4 output files of bowtie,&nbsp; index files generated by 'bowtie-build'. Produced for each library.<br>7. <strong>intermediate_results</strong> - FASTA files, all contigs sequences.Both extended and non extended contigs<br>8. <strong>pairinfo</strong> - folder, consisting 2 files namely pairing distribution and pairing issues file.<br>more detail can be found here (<a href="https://github.com/nsoranzo/sspace_basic">https://github.com/nsoranzo/sspace_basic</a>)<br><br>View the output assembly file at standard_output_final.scaffolds.fasta<br>the number of scaffolds can be counted with command<br><em><mark>$ grep -c "&gt;" standard_output.final.scaffolds.fasta<br><br></mark></em>Low sequence coverage, repetitive elements and short read length make de novo genome assembly difficult, often resulting in sequence and/or fragment "gap" - unchracterized nucleotide (N) stretches of unknown or estimated lengths. Some of these gaps can be closed by re-processing latent information in the raw reads. <strong>Gap filling</strong> is the last phase in genome assembly. The input will be the scaffolds (linearly ordered contigs) and reads; whereas output will be scaffolds where gaps between contigs have been filled.<em><mark><br><br></mark></em><strong>GapFiller</strong> is chosen for gap closing in my case. GapFiller is a stand-alone program for closing gaps within pre-assembled scaffolds. It is unique in offering the possibility to manually control the gap closure process. By using the distance information of paired-read data, GapFiller seeks to close the gap from each edge in an iterative manner. <br><br>GapFiller was developed by the developer of SSPACE too! The developer claimed that GapFiller is more accurate than IMAGE and SOAP's GapClosure. Although GapFiller yields similar results in terms of the number of gaps/nucleotides closed as SOAP's GapClosure, the smaller error rate indicates the GapFiller is more appropriate for reliable gap filling. <br>The <strong><em>main features of GapFiller</em></strong> mentioned are as following<br>1. Input are simple FASTA scaffold sequences as well as (multiple) FASTA/FASTQ paired-read data<br>2. Multiple library input of both paired-end and/or mate pair datasets<br>3. High quality closing of gaps<br>4. High reduction of the number of gaps, and the number of gapped nucleotides<br>5. Detailed output of gaps (such as no. of reads used, no. of nucleotides, remaining gaped nucleotides<br>6. Detailed output of the gapclosing process<br>(<a href="http://seqanswers.com/forums/showthread.php?t=21493">http://seqanswers.com/forums/showthread.php?t=21493</a>)<br><br>The innovative feature of GapFiller is the possibility to produce a highly reliable output that, having been certified correct and hence needing no further validation, can be used to improve or validate a whole genome assembly. This method is based on a seed-and-extend schema, <strong><em>it select one read and tries to extend it using reads that overlap for a significant region</em></strong>. The main drawback of seed and extend assembler is their inherent incapability to cope with complex (ie. repetitive) genome. The advantage of this method lies in generating correct and certified contigs and, as a by product, in the identification of "difficult" areas such as repeats, low coverage region etc. thus avoiding the production of wrong contigs. The algorithm is based on carefully chosen hash function together with a set of heutistics able to avoid or detect errors, as well as on a test for establishing the correctness of a sequence.&nbsp; <br><br><strong><em>How seed-and-extend fill the gaps?</em></strong><br>Seed-and-extend assemblers repeatedly pick up a seed (either a read or a previously assembled contigs) and extend it using other reads. This procedure is realised by computing and analysing all/almost all the overlaps between seed's tip and the remaining available reads.The reads used for an extension are those with the highest alignment score. Their computation bottleneck is their capability to quickly cope with all the allignment scores to be determined.<br><br><strong><em>How GapFiller fill the gaps?</em></strong><br>1. <mark>Dataset preparation.</mark> Storing all useful reads in memory efficient data structure<br>- allows to readily compute overlaps between the contig under construction and the remaining available reads<br>2. Each seed read (possible belonging to a new set of paired read) is selected one after the other and used to start an extension phase<br>3. <mark>Contig extension</mark>. Halts when a stop condition is reached.<br>- the contig produced is labelled as <em>trusted</em> or <em>not trusted</em> depending on the stop condition<br><br><strong>Steps in contig extension<br></strong><a href="https://www.ncbi.nlm.nih.gov/core/lw/2.0/html/tileshop_pmc/tileshop_pmc_inline.html?title=Click%20on%20image%20to%20zoom&amp;p=PMC3&amp;id=3439727_1471-2105-13-S14-S8-2.jpg"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:1373,&quot;url&quot;:&quot;https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3439727/bin/1471-2105-13-S14-S8-2.jpg&quot;,&quot;width&quot;:600}" data-trix-content-type="image"><img src="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3439727/bin/1471-2105-13-S14-S8-2.jpg" width="600" height="1373"><figcaption class="attachment__caption"></figcaption></figure></a><br>(a) The putative overlapping reads, selected by their fingerprint values, are checked for the presence of mismatches and possibly discarded. <br>(b) The consensus string is computed for every position j such that either j ≤ F(C) or at least m = 2 reads are available. The characters rounded in gray and red refer to low-represented and non-represented positions, respectively. In presence of ambiguities (i.e., positions in which more than one character with the same<br>representation rate occur) GapFiller chooses the character belonging to the first read encountered, from left to right. <br>(c) Reads with mismatches in correspondence of the low-represented positions are discarded , hence they do not contribute to reach the threshold m to<br>compute a new consensus string. In this example read r4’s tail is cut in the non-represented position, regardless on whether it matches the<br>consensus string or not. <br>(d) The reads still alive after Step 3 are used to compute the final consensus string Cnew. Since there are 2 ≥ m available reads exceeding Si’s tail, Cnew is computed, it is attached to Si, and the extended contig Si+1 is obtained.<br><br>For more detailed explanation, please refer to the following paper <br>Nadalin, F., Vezzi, F., &amp; Policriti, A. (2012). GapFiller: a de novo assembly approach to fill the gap within paired reads. <em>BMC Bioinformatics</em>, <em>13</em>(Suppl 14), S8. <a href="https://doi.org/10.1186/1471-2105-13-S14-S8">https://doi.org/10.1186/1471-2105-13-S14-S8</a><br><br>Like SSPACE, GapFiller needs a library file, its almost exactly the same as the thefor SSPACE just that it has include the aligner. An example of the library file would be<br>Lib1 bowtie PE1.fastq PE2.fastq 4000 0.25 FR<br>where <br>Lib 1 - name of the library<br>bowtie - name of the aligner, either bowtie, bwa or bwasw <br>PE1/2.fastq - fasta or fastq files for both ends. For each paired read, one of the reads should be in the first file<br>4000 - expected/ observed inseted size between paired reads<br>0.25 - minimum allowed error<br>* with an expected insert size of 4000 and 0.25 error, the distance can have an error of 4000*0.25 = 1000 in either direction. Thus pairs between 3000 and 5000 distance are valid pairs<br>FR - the orientation of the paired-reads, orientation can be FF, FR, RF, or RR. Where F stands for forward --&gt; and R stands for reverse &lt;--<br><br>The following command is used to call for gapfilling using GapFiller<br>$ GapFiller.pl -l gapfill_library.txt -s standard_output.final.scaffolds.fasta -m 60 -o 15 -r 0.8 -n 30 -t 10 -T 2 &gt; log_gapfill<br>where<br>-l = the library file<br>-s = the final scaffold output file from SSPACE<br>-m = minimum number of overlapping bases with the edge of the gap (default = 29)<br>-o = minimum number of reads needed to call a base during an extension (default = 2)<br>-r = percentage of reads that should have a single nucleotide extension in order to close gap in a scaffold (default = 0.7)<br>-n = minimum overlap required between contigs to merge adjacent sequences in a scaffold (default = 10)<br>-t = number of bases to trim off the start and begin of the sequence (usually missambled/low-coverage reads) (default = 10, optional)<br>-T = number of threads to run (default = 1)<br>-i = number of iterations to fill the gaps (default = 10, optional)<br><br>more detailed explanation on the parameter can be accessed from the manual (<a href="http://stab.st-andrews.ac.uk/wiki/index.php?title=GapFiller&amp;action=pdfbook&amp;format=single">http://stab.st-andrews.ac.uk/wiki/index.php?title=GapFiller&amp;action=pdfbook&amp;format=single</a>)<br><br>After running the program, the output files included in the folder standard_output are<br>1. standard_output.filled.final.txt<br>2. <strong>standard_output.gapfilled.final.fa - the output assembly file</strong><br>3. standard_output.summaryfile.final.txt<br>4. standard_output.closed.evidence.final.txt<br>4. alignoutput (folder)<br>5. intermediate_results (folder)<br>6. reads (folder)<br><br>count the number of scaffolds of the final assembly with<br>$ grep -c "&gt;" standard_output.grapfilled.final.fa<br><br>Compare the number of scaffolds before and after gapfilling. If the number drops, the gapfilling succeed in closing some of the gaps. However, if the number remain, it doesn't mean the gaps are not getting smaller!<br><br>To this step, it's the end of genome assembly.<br><br>Fun fact! There are tool that can scaffold and complete short read assemblies while the long read sequencing run is in progress! The assembly metrics will be reported in real-time so the sequencing run can be terminated once an assembly of sufficient quality is obtained.<br><a href="https://www.nature.com/articles/ncomms14515/figures/1"><figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:502,&quot;url&quot;:&quot;https://media.nature.com/m685/nature-assets/ncomms/2017/170220/ncomms14515/images/ncomms14515-f1.jpg&quot;,&quot;width&quot;:685}" data-trix-content-type="image"><img src="https://media.nature.com/m685/nature-assets/ncomms/2017/170220/ncomms14515/images/ncomms14515-f1.jpg" width="685" height="502"><figcaption class="attachment__caption"></figcaption></figure>Stream of long reads are aligned to the existing contigs to create alignment records. Bridges connecting contigs are formed, and are used for extending scaffolds.These steps are performing in a streaming fashion.</a><br><br>Read this paper for more info<br>Cao, M. D., Nguyen, S. H., Ganesamoorthy, D., Elliott, A. G., Cooper, M. A., &amp; Coin, L. J. (2017). Scaffolding and completing genome assemblies in real-time with nanopore sequencing. <em>Nature Communications</em>, <em>8</em>, 14515. <br><a href="https://doi.org/10.1038/ncomms14515">https://doi.org/10.1038/ncomms14515</a></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-05 09:03:35 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269456219</guid>
      </item>
      <item>
         <title>ASM Genome Announcement</title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/269931089</link>
         <description><![CDATA[<div>For Genome sequences. manuscripts should provide:<br>- A rationale or significance for the sequencing&nbsp;<br>-The provenance for the organism sequenced. <br>-Taxonomic identification down to genus for prokaryotic isolates. <br>- A description of how the organism was isolated and growth conditions for cultivation.&nbsp;<br>&nbsp; &nbsp;For single-cell amplified genomes, authors should instead supply information about how the cell was identified and isolated. <br>- Detailed methods for DNA isolation, library preparation, and sequencing (including the technology and chemistry used). &nbsp;<br>- A description of how the reads were quality controlled.<br>- Details on how the genome was assembled and, if applicable, annotated.&nbsp;<br>- A citation and version number for every piece of software used.&nbsp;<br>- Relevant statistics for the sequencing run (e.g., read length and number of reads in total).&nbsp;<br>- Relevant statistics for the assembly (e.g., number of contigs and N50 values).&nbsp;<br>- Genome GC content and total size.&nbsp;<br>- Accession numbers for both the assembly and raw reads that link to publicly available data.&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-07-11 09:37:15 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/269931089</guid>
      </item>
      <item>
         <title></title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/270000934</link>
         <description><![CDATA[￼]]></description>
         <enclosure url="" />
         <pubDate>2018-07-12 01:41:01 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/270000934</guid>
      </item>
      <item>
         <title></title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/270038788</link>
         <description><![CDATA[￼]]></description>
         <enclosure url="" />
         <pubDate>2018-07-12 09:26:54 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/270038788</guid>
      </item>
      <item>
         <title></title>
         <author>thonzenn</author>
         <link>https://padlet.com/thonzenn/internship_codongenomics/wish/270038826</link>
         <description><![CDATA[
]]></description>
         <enclosure url="" />
         <pubDate>2018-07-12 09:27:10 UTC</pubDate>
         <guid>https://padlet.com/thonzenn/internship_codongenomics/wish/270038826</guid>
      </item>
   </channel>
</rss>
