<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Related items]]></title>
	<link>https://bioinformaticsonline.com/related/44620?offset=230</link>
	<atom:link href="https://bioinformaticsonline.com/related/44620?offset=230" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/21703/coding-ground</guid>
	<pubDate>Tue, 17 Mar 2015 00:47:20 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/21703/coding-ground</link>
	<title><![CDATA[Coding Ground]]></title>
	<description><![CDATA[<p>Online coding group for most of the programming languages.</p>
<p>Code in almost all popular languages using Coding Ground.&nbsp;Edit, compile, execute and share your projects, 100% cloud.</p>
<p>http://www.tutorialspoint.com/codingground.htm</p><p>Address of the bookmark: <a href="http://www.tutorialspoint.com/codingground.htm" rel="nofollow">http://www.tutorialspoint.com/codingground.htm</a></p>]]></description>
	<dc:creator>Jitendra Narayan</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/34041/r-tuorial</guid>
	<pubDate>Mon, 31 Jul 2017 08:41:40 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/34041/r-tuorial</link>
	<title><![CDATA[R tuorial]]></title>
	<description><![CDATA[<p>R learning resources</p>
<p>https://flowingdata.com/</p><p>Address of the bookmark: <a href="https://flowingdata.com/" rel="nofollow">https://flowingdata.com/</a></p>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/42672/introduction-to-bioinformatics-and-computational-biology</guid>
	<pubDate>Mon, 25 Jan 2021 01:32:30 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/42672/introduction-to-bioinformatics-and-computational-biology</link>
	<title><![CDATA[Introduction to Bioinformatics and Computational Biology]]></title>
	<description><![CDATA[<p><span>This is the course material for STAT115/215 BIO/BST282 at Harvard University.</span></p>
<p>Xiaole Shirley Liu (lead instructor)<br>Joshua Starmer<br>Martin Hemberg<br>Ting Wang<br>Feng Yue</p>
<p>Ming Tang<br>Yang Liu<br>Jack Kang<br>Scarlett Ge<br>Jiazhen Rong<br>Phillip Nicol<br>Maartin De Vries</p>
<p>We thank many colleagues in the community, who helped Dr.&nbsp;Liu in prepare the STAT115/215 BIO/BST282 course over the years.&nbsp;</p><p>Address of the bookmark: <a href="https://liulab-dfci.github.io/bioinfo-combio/" rel="nofollow">https://liulab-dfci.github.io/bioinfo-combio/</a></p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/42814/bioinformatics-in-africa-part6-sudan</guid>
	<pubDate>Sat, 06 Feb 2021 21:20:59 -0600</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/42814/bioinformatics-in-africa-part6-sudan</link>
	<title><![CDATA[Bioinformatics in Africa: Part6 - Sudan]]></title>
	<description><![CDATA[<p>Commission&nbsp;for&nbsp;Biotechnology&nbsp;&amp;&nbsp;Genetic&nbsp;Engineering&nbsp;&shy;&nbsp;Khartoum: The&nbsp;Commission&nbsp;for&nbsp;Biotechnology&nbsp;and&nbsp;Genetic&nbsp;Engineering&nbsp;was&nbsp;established&nbsp;in&nbsp;9/2/1993&nbsp;as&nbsp; research&nbsp;unit.&nbsp;In&nbsp;addition&nbsp;to&nbsp;research&nbsp;activities&nbsp;it&nbsp;acts&nbsp;as&nbsp;focal&nbsp;point&nbsp;for&nbsp;the&nbsp;International&nbsp;Center&nbsp;for&nbsp; Biotechnology&nbsp;and&nbsp;Genetic&nbsp;Engineering. The&nbsp;commission&nbsp;conducts&nbsp;researches&nbsp;in&nbsp;order&nbsp;to&nbsp;play&nbsp;a&nbsp;part&nbsp;in&nbsp;solving&nbsp;economical,&nbsp;environmental,&nbsp; health&nbsp;and&nbsp;nutritional&nbsp;problems&nbsp;using&nbsp;modern&nbsp;research&nbsp;techniques&nbsp;with&nbsp;an&nbsp;emphasis&nbsp;on&nbsp;the&nbsp;applied&nbsp; researches&nbsp;in&nbsp;these&nbsp;areas. The&nbsp;laboratories&nbsp;were&nbsp;well&nbsp;furnished&nbsp;with&nbsp;the&nbsp;essential&nbsp;equipments&nbsp;and&nbsp;the&nbsp;catalyst&nbsp;infrastructure&nbsp;to&nbsp; facilitate&nbsp;emergence&nbsp;of&nbsp;a&nbsp;successful&nbsp;for&nbsp;research.&nbsp;The&nbsp;Commission&nbsp;equipped&nbsp;with&nbsp;a&nbsp;computer&nbsp;center&nbsp; and&nbsp;information&nbsp;to&nbsp;serve&nbsp;as&nbsp;informatics&nbsp;and&nbsp;Digital&nbsp;library.</p><p>Research&nbsp;Interest&nbsp;and&nbsp;Activities: 1. Plant&nbsp;Genetic&nbsp;Transformations<br />2. Molecular&nbsp;Population&nbsp;Genetics 3. Detection&nbsp;of&nbsp;human&nbsp;and&nbsp;Animals&nbsp;diseases 4. Breast&nbsp;Cancer&shy;specific&nbsp;protein&nbsp;marker 5. Phytochemical 6. Genomic&nbsp;map 7. Bioremediation 8. Tissue&nbsp;Culture.</p><p>Web&nbsp;site&nbsp;and&nbsp;links: www.geocity.cbge.com</p>]]></description>
	<dc:creator>BioStar</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/43431/code-golf</guid>
	<pubDate>Wed, 06 Oct 2021 04:17:29 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/43431/code-golf</link>
	<title><![CDATA[Code Golf]]></title>
	<description><![CDATA[<p>Code Golf is a game designed to let you show off your code-fu by solving problems in the least number of characters.</p>
<p>Since this is your first time here, I suggest starting with something simple like&nbsp;<a href="https://code.golf/fizz-buzz">Fizz Buzz</a>.</p><p>Address of the bookmark: <a href="https://code.golf/" rel="nofollow">https://code.golf/</a></p>]]></description>
	<dc:creator>Abhi</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/43681/a-guide-to-machine-learning-for-biologists</guid>
	<pubDate>Tue, 28 Dec 2021 01:43:25 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/43681/a-guide-to-machine-learning-for-biologists</link>
	<title><![CDATA[A guide to machine learning for biologists]]></title>
	<description><![CDATA[<p>Because of the increasing size and inherent complexity of biological data, there has been an increase in the application of machine learning in biology to create useful and predictive models of the underlying biological processes. All machine learning techniques fit models to data; nevertheless, the specific methods are highly variable and can appear baffling at first glance. In this Review, we hope to give readers a moderate introduction to a few fundamental machine learning techniques, including the most recently created and frequently used deep neural network techniques. We illustrate how different algorithms may be adapted to specific types of biological data, as well as some best practises and points to consider when embarking on machine learning studies. There is also discussion of several upcoming directions in machine learning methodology.</p><p>Address of the bookmark: <a href="https://www.nature.com/articles/s41580-021-00407-0" rel="nofollow">https://www.nature.com/articles/s41580-021-00407-0</a></p>]]></description>
	<dc:creator>Abhi</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/44633/learn-python-with-example</guid>
	<pubDate>Tue, 06 Aug 2024 23:51:51 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/44633/learn-python-with-example</link>
	<title><![CDATA[Learn python with example]]></title>
	<description><![CDATA[<div><div><div><p>There are over 21 unique&nbsp;Python project&nbsp;walkthroughs in this content that range from beginner to advanced. See below for the timestamps for these projects:</p><p><span>00:00:00 | How To Navigate These Projects</span><br /><span>---</span><br /><span>00:01:46 | #1 - Quiz Game (Easy)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F5-Python-Projects-For-Beginners%2Fblob%2Fmain%2Fquiz_game.py" target="_blank">https://github.com/techwithtim/5-Python-Projects-For-Beginners/blob/main/quiz_game.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>00:22:00 | #2 - Number Guessing Game (Easy)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F5-Python-Projects-For-Beginners%2Fblob%2Fmain%2Fnumber_guesser.py" target="_blank">https://github.com/techwithtim/5-Python-Projects-For-Beginners/blob/main/number_guesser.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>00:39:49 | #3 - Rock, Paper, Scissors (Easy)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F5-Python-Projects-For-Beginners%2Fblob%2Fmain%2Frock_paper_scissors.py" target="_blank">https://github.com/techwithtim/5-Python-Projects-For-Beginners/blob/main/rock_paper_scissors.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>00:54:40 | #4 - Choose Your Own Adventure Game (Easy)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F5-Python-Projects-For-Beginners%2Fblob%2Fmain%2Fchoose_your_own_adventure.py" target="_blank">https://github.com/techwithtim/5-Python-Projects-For-Beginners/blob/main/choose_your_own_adventure.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>01:06:47 | #5 - Password Manager (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F5-Python-Projects-For-Beginners%2F" target="_blank">https://github.com/techwithtim/5-Python-Projects-For-Beginners/</a><span>&nbsp;</span><br /><span>Fernet Cryptography Documentation:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fcryptography.io%2Fen%2Flatest%2Ffernet%2F" target="_blank">https://cryptography.io/en/latest/fernet/</a><span>&nbsp;</span><br /><span>---</span><br /><span>01:37:37 | #6 - PIG (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F3-Mini-Python-Projects%2Fblob%2Fmain%2Fproject1.py" target="_blank">https://github.com/techwithtim/3-Mini-Python-Projects/blob/main/project1.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>01:59:07 | #7 - Madlibs Generator (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F3-Mini-Python-Projects%2Fblob%2Fmain%2Fproject2.py" target="_blank">https://github.com/techwithtim/3-Mini-Python-Projects/blob/main/project2.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>02:15:04 | #8 - Timed Math Challenge (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F3-Mini-Python-Projects%2Fblob%2Fmain%2Fproject3.py" target="_blank">https://github.com/techwithtim/3-Mini-Python-Projects/blob/main/project3.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>02:28:02 | #9 - Slot Machine (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPython-Slot-Machine" target="_blank">https://github.com/techwithtim/Python-Slot-Machine</a><span>&nbsp;</span><br /><span>---</span><br /><span>03:20:43 | #10 - Turtle Racing (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FTurtle-Racing-V2" target="_blank">https://github.com/techwithtim/Turtle-Racing-V2</a><span>&nbsp;</span><br /><span>Turtle Docs:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fturtle.html" target="_blank">https://docs.python.org/3/library/turtle.html</a><span>&nbsp;</span><br /><span>---</span><br /><span>04:13:09 | #11 - WPM Typing Test (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FWPM_Typing_Test" target="_blank">https://github.com/techwithtim/WPM_Typing_Test</a><span>&nbsp;</span><br /><span>Curses Docs:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fdocs.python.org%2F3%2Fhowto%2Fcurses.html" target="_blank">https://docs.python.org/3/howto/curses.html</a><span>&nbsp;</span><br /><span>05:09:43 | #12 - Alarm Clock (Easy)</span><br /><span>Python Project Idea Blog:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fhackr.io%2Fblog%2Fpython-projects" target="_blank">https://hackr.io/blog/python-projects</a><span>&nbsp;</span><br /><span>Sound Effects:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fwww.fesliyanstudios.com%2Froyalty-free-sound-effects-download%2Falarm-203" target="_blank">https://www.fesliyanstudios.com/royalty-free-sound-effects-download/alarm-203</a><span>&nbsp;</span><br /><span>---</span><br /><span>05:22:07 | #13 - Password Generator (Easy)</span><br /><span>Python Project Idea Blog:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fhackr.io%2Fblog%2Fpython-projects" target="_blank">https://hackr.io/blog/python-projects</a><span>&nbsp;</span><br /><span>---</span><br /><span>05:39:16 | #14 - Shortest Path Finder (Advanced)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F3-Mini-Python-Projects-For-Intermediates%2Fblob%2Fmain%2Fpath-finder.py" target="_blank">https://github.com/techwithtim/3-Mini-Python-Projects-For-Intermediates/blob/main/path-finder.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>06:14:53 | #15 - NBA Stats &amp; Current Scores (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F3-Mini-Python-Projects-For-Intermediates%2Fblob%2Fmain%2Fnba-scores.py" target="_blank">https://github.com/techwithtim/3-Mini-Python-Projects-For-Intermediates/blob/main/nba-scores.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>06:38:22 | #16 - Currency Converter (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2F3-Mini-Python-Projects-For-Intermediates%2Fblob%2Fmain%2Fcurrency-converter.py" target="_blank">https://github.com/techwithtim/3-Mini-Python-Projects-For-Intermediates/blob/main/currency-converter.py</a><span>&nbsp;</span><br /><span>API: https://free.currencyconverterapi.com/</span><br /><span>---</span><br /><span>06:58:51 | #17 - YouTube Video Downloader (Medium)</span><br /><span>Code: &nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPython-Beginner-Automation-Projects%2Fblob%2Fmain%2Fyoutube.py" target="_blank">https://github.com/techwithtim/Python-Beginner-Automation-Projects/blob/main/youtube.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>07:09:50 | #18 - Automated File Backup (Medium)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPython-Beginner-Automation-Projects%2Fblob%2Fmain%2Fbackup.py" target="_blank">https://github.com/techwithtim/Python-Beginner-Automation-Projects/blob/main/backup.py</a><span>&nbsp;</span><br /><span>---</span><br /><span>07:21:18 | #19 - Mastermind/4 Color Match (Advanced)</span><br /><span>---</span><br /><span>07:48:20 | #20 - Aim Trainer (Advanced)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPython-Aim-Trainer" target="_blank">https://github.com/techwithtim/Python-Aim-Trainer</a><span>&nbsp;</span><br /><span>---</span><br /><span>08:39:20 | #21 - Advanced Python Scripting (Advanced)</span><br /><span>Code:&nbsp;</span><a href="https://morioh.com/redirect?id=65b0752318cf2dc4d28010e1&amp;own=5ff684ea1a53c42123416f96&amp;l=https%3A%2F%2Fgithub.com%2Ftechwithtim%2FPython-Scripting-Project" target="_blank">https://github.com/techwithtim/Python-Scripting-Project</a><span>&nbsp;</span></p></div></div></div>]]></description>
	<dc:creator>BioStar</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/35534/awk-for-bioinformatician-and-computational-biologist</guid>
	<pubDate>Tue, 06 Feb 2018 14:54:35 -0600</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/35534/awk-for-bioinformatician-and-computational-biologist</link>
	<title><![CDATA[Awk for Bioinformatician and computational biologist]]></title>
	<description><![CDATA[<p>Awk is a programming language which allows easy manipulation of structured data and is mostly used for pattern scanning and processing. It searches one or more files to see if they contain lines that match with the specified patterns and then perform associated actions. The basic syntax is:</p><blockquote><p><br />awk '/pattern1/ {Actions}<br /> /pattern2/ {Actions}' file</p></blockquote><p><br />The working of Awk is as follows<br />Awk reads the input files one line at a time.<br />For each line, it matches with given pattern in the given order, if matches performs the corresponding action.<br />If no pattern matches, no action will be performed.<br />In the above syntax, either search pattern or action are optional, But not both.<br />If the search pattern is not given, then Awk performs the given actions for each line of the input.<br />If the action is not given, print all that lines that matches with the given patterns which is the default action.<br />Empty braces with out any action does nothing. It wont perform default printing operation.<br />Each statement in Actions should be delimited by semicolon.<br />Say you have data.tsv with the following contents:</p><p><br />$ cat data/test.tsv<br />contig1 ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2 ACTTTATATATT<br />contig3 ACTTATATATATATA<br />contig4 ACTTATATATATATA<br />contig5 ACTTTATATATT <br />By default Awk prints every line from the file.</p><p><br />$ awk '{print;}' data/test.tsv<br />contig1 ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2 ACTTTATATATT<br />contig3 ACTTATATATATATA<br />contig4 ACTTATATATATATA<br />contig5 ACTTTATATATT <br />We print the line which matches the pattern contig3</p><p><br />$ awk '/contig3/' data/test.tsv<br />contig3 ACTTATATATATATA<br />Awk has number of builtin variables. For each record i.e line, it splits the record delimited by whitespace character by default and stores it in the $n variables. If the line has 5 words, it will be stored in $1, $2, $3, $4 and $5. $0 represents the whole line. NF is a builtin variable which represents the total number of fields in a record.</p><p><br />$ awk '{print $1","$2;}' data/test.tsv<br />contig1,ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2,ACTTTATATATT<br />contig3,ACTTATATATATATA<br />contig4,ACTTATATATATATA<br />contig5,ACTTTATATATT</p><p>$ awk '{print $1","$NF;}' data/test.tsv<br />contig1,ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2,ACTTTATATATT<br />contig3,ACTTATATATATATA<br />contig4,ACTTATATATATATA<br />contig5,ACTTTATATATT</p><p><br />Awk has two important patterns which are specified by the keyword called BEGIN and END. The syntax is as follows:</p><blockquote><p>BEGIN { Actions before reading the file}<br />{Actions for everyline in the file} <br />END { Actions after reading the file }</p></blockquote><p><br />For example,<br />$ awk 'BEGIN{print "Header,Sequence"}{print $1","$2;}END{print "-------"}' data/test.tsv<br />Header,Sequence<br />contig1,ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2,ACTTTATATATT<br />contig3,ACTTATATATATATA<br />contig4,ACTTATATATATATA<br />contig5,ACTTTATATATT<br />------- <br />We can also use the concept of a conditional operator in print statement of the form print CONDITION ? PRINT_IF_TRUE_TEXT : PRINT_IF_FALSE_TEXT. For example, in the code below, we identify sequences with lengths &gt; 14:</p><p>$ awk '{print (length($2)&gt;14) ? $0"&gt;14" : $0"&lt;=14";}' data/test.tsv<br />contig1 ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG&gt;14<br />contig2 ACTTTATATATT&lt;=14<br />contig3 ACTTATATATATATA&gt;14<br />contig4 ACTTATATATATATA&gt;14<br />contig5 ACTTTATATATT&lt;=14<br />We can also use 1 after the last block {} to print everything (1 is a shorthand notation for {print $0} which becomes {print} as without any argument print will print $0 by default), and within this block, we can change $0, for example to assign the first field to $0 for third line (NR==3), we can use:</p><p>$ awk 'NR==3{$0=$1}1' data/test.tsv<br />contig1 ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2 ACTTTATATATT<br />contig3<br />contig4 ACTTATATATATATA<br />contig5 ACTTTATATATT<br />You can have as many blocks as you want and they will be executed on each line in the order they appear, for example, if we want to print $1 three times (here we are using printf instead of print as the former doesn't put end-of-line character),</p><p>$ awk '{printf $1"\t"}{printf $1"\t"}{print $1}' data/test.tsv<br />contig1 contig1 contig1<br />contig2 contig2 contig2<br />contig3 contig3 contig3<br />contig4 contig4 contig4<br />contig5 contig5 contig5 <br />Although, we can also skip executing later blocks for a given line by using next keyword:</p><p>$ awk '{printf $1"\t"}NR==3{print "";next}{print $1}' data/test.tsv<br />contig1 contig1<br />contig2 contig2<br />contig3 <br />contig4 contig4<br />contig5 contig5</p><p>$ awk 'NR==3{print "";next}{printf $1"\t"}{print $1}' data/test.tsv<br />contig1 contig1<br />contig2 contig2</p><p>contig4 contig4<br />contig5 contig5<br />You can also use getline to load the contents of another file in addition to the one you are reading, for example, in the statement given below, the while loop will load each line from test.tsv into k until no more lines are to be read:</p><p>$ awk 'BEGIN{while((getline k &lt;"data/test.tsv")&gt;0) print "BEGIN:"k}{print}' data/test.tsv<br />BEGIN:contig1 ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />BEGIN:contig2 ACTTTATATATT<br />BEGIN:contig3 ACTTATATATATATA<br />BEGIN:contig4 ACTTATATATATATA<br />BEGIN:contig5 ACTTTATATATT<br />contig1 ACTGTCTGTCACTGTGTTGTGATGTTGTGTGTG<br />contig2 ACTTTATATATT<br />contig3 ACTTATATATATATA<br />contig4 ACTTATATATATATA<br />contig5 ACTTTATATATT <br />You can also store data in the memory with the syntax VARIABLE_NAME[KEY]=VALUE which you can later use through for (INDEX in VARIABLE_NAME) command:</p><p>$ awk '{i[$1]=1}END{for (j in i) print j"&lt;="i[j]}' data/test.tsv<br />contig1&lt;=1<br />contig2&lt;=1<br />contig3&lt;=1<br />contig4&lt;=1<br />contig5&lt;=1</p>]]></description>
	<dc:creator>Poonam Mahapatra</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/42552/bioinformatics-workbook</guid>
	<pubDate>Tue, 05 Jan 2021 22:42:32 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/42552/bioinformatics-workbook</link>
	<title><![CDATA[bioinformatics workbook]]></title>
	<description><![CDATA[<p><span>This books assumes that the reader has some knowledge of biology and basic understanding of the Unix command line. However, for the beginner, the appendix contains introductory material and tips/tricks for common bioinformatic problems, that is referred to for more information throughout the book.</span></p>
<p>https://bioinformaticsworkbook.org/</p><p>Address of the bookmark: <a href="https://bioinformaticsworkbook.org/" rel="nofollow">https://bioinformaticsworkbook.org/</a></p>]]></description>
	<dc:creator>biogeek</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/43323/biostarhandbook</guid>
	<pubDate>Fri, 27 Aug 2021 01:31:01 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/43323/biostarhandbook</link>
	<title><![CDATA[biostarhandbook]]></title>
	<description><![CDATA[<p>Nice book collection for bioinformatician ... highly recommended.</p><p>Address of the bookmark: <a href="https://www.biostarhandbook.com/" rel="nofollow">https://www.biostarhandbook.com/</a></p>]]></description>
	<dc:creator>Neel</dc:creator>
</item>

</channel>
</rss>