<?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/26424?offset=50</link>
	<atom:link href="https://bioinformaticsonline.com/related/26424?offset=50" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/43943/bioinformatics-tutorial</guid>
	<pubDate>Mon, 22 Aug 2022 23:56:22 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/43943/bioinformatics-tutorial</link>
	<title><![CDATA[Bioinformatics Tutorial !]]></title>
	<description><![CDATA[<p>This site aims to be a useful resource for bioinformatics beginners. Feel free to jump right in with the section most relevant to you, and if you're not sure, then the place to start is definitely Unix <p>Address of the bookmark: <a href="https://astrobiomike.github.io/" rel="nofollow">https://astrobiomike.github.io/</a></p>]]></description>
	<dc:creator>Neel</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/22454/one-page-r-survival-guide</guid>
	<pubDate>Thu, 28 May 2015 21:10:12 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/22454/one-page-r-survival-guide</link>
	<title><![CDATA[One page R survival guide !!]]></title>
	<description><![CDATA[<p><span style="font-style: normal; color: #000000; float: none;">There any many of the documents have been developed and tested by scientist around the world. I found this one really useful. The data used is available for download as<span>&nbsp;</span></span><a href="http://onepager.togaware.com/data.zip">data.zip</a><span style="font-style: normal; color: #000000; float: none;">.</span></p><p><span style="font-style: normal; color: #000000; float: none;">Reference@http://www.datasciencecentral.com/profiles/blogs/one-page-r-a-survival-guide-to-data-science-with-r</span></p><ul>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Templates for the Data Scientist<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">A Template for Preparing Data:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/DataO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/DataO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">A Template for Building Models:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/ModelsO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/ModelsO.R">R</a></li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Getting Started as a Data Scientist<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Getting Started with R and Rattle:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/StartL.pdf">Lecture</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/StartG.pdf">Laboratory</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Introducing and Interacting with R:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/IntroRL.pdf">Lecture</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/IntroRR.pdf">Laboratory</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">BasicR - OnePage(R) - Writing R scripts</li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Dealing With Data<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Read Data into R:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/ReadO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/ReadO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Explore and Summarise Data:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/SummaryO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/SummaryO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Transform Data:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/TransformO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/TransformO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><a href="http://togaware.com/onepager/DateTimeRB"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Dealing with Dates and Time:</span></a><span>&nbsp;</span>(<a href="http://onepager.togaware.com/DateTimeR.pdf">PDF</a>,<span>&nbsp;</span><a href="http://onepager.togaware.com/DateTimeR.R">R</a>) Dates and Time</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Visualising Data with GGPlot2:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/GGPlot2O.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/GGPlot2O.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Visualising Data with Maps</span><span>&nbsp;</span>*<a href="http://togaware.com/onepager/MapsO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/MapsO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Spatial<span>&nbsp;</span>(R) Spatial Analysis</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Handling Big Data</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/BigDataO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/BigData.R">R</a></li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Descriptive Analytics<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Cluster Analysis:</span><span>&nbsp;</span>*<a href="http://togaware.com/onepager/ClustersL.pdf">Lecture</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/ClustersO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/Clusters.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Association Analysis:</span><span>&nbsp;</span>*<a href="http://togaware.com/onepager/ARulesL.pdf">Lecture</a></li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Predictive Analytics<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Decision Trees:</span><span>&nbsp;</span>*<a href="http://togaware.com/onepager/DTreesL.pdf">Lecture</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/DTreesO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/DTreesO.R">R</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/DTreesG.pdf">Rattle</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Ensembles of Decision Trees:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/EnsemblesL.pdf">Lecture</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/EnsemblesO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/EnsemblesO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">SVM (R)</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">KernLab (R)</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">NeuralNetworks (R)</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">NNet (R)</li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Model Delivery<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Evaluating Models:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/EvaluationO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/EvaluationO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Evaluation (R)</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Scoring (R)</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">PMML (R) Exporting Models for Deployment</li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Advanced Topics<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Text Mining:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/TextMiningO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/TextMiningO.R">R</a></li>
</ol></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Advanced R Topics<ol style="margin: 0px; padding: 0px 0px 0px 1.5em; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><a href="http://togaware.com/onepager/PlotsB"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Plots</span></a><span>&nbsp;</span>(<a href="http://onepager.togaware.com/Plots.pdf">PDF</a>,<span>&nbsp;</span><a href="http://onepager.togaware.com/Plots.R">R</a>) Miscellaneous Plots</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><a href="http://togaware.com/onepager/FunctionsB"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Functions</span></a><span>&nbsp;</span>(<a href="http://onepager.togaware.com/Functions.pdf">PDF</a>,<span>&nbsp;</span><a href="http://onepager.togaware.com/Functions.R">R</a>) Writing Functions in R</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><a href="http://togaware.com/onepager/ParallelB"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Parallel</span></a><span>&nbsp;</span>(<a href="http://onepager.togaware.com/Parallel.pdf">PDF</a>,<span>&nbsp;</span><a href="http://onepager.togaware.com/Parallel.R">R</a>) Parallel Execution</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Packaging (R) Pulling it Together into a Package</li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Doing R with Style:</span><span>&nbsp;</span>*<a href="http://onepager.togaware.com/StyleO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/StyleO.R">R</a></li>
<li style="margin: 0px; padding: 0px; border: 0px currentColor; font-style: inherit; font-weight: inherit; vertical-align: baseline;"><span style="margin: 0px; padding: 0px; border: 0px none currentcolor; font-style: inherit; font-weight: inherit; vertical-align: baseline;">Literate Data Mining with KnitR:</span><span>&nbsp;</span>*<a href="http://togaware.com/onepager/KnitRL.pdf">Lecture</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/KnitRO.pdf">OnePageR</a><span>&nbsp;</span>- *<a href="http://onepager.togaware.com/KnitRO.R"></a></li>
</ol></li>
</ul>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/4037/perl-and-bioperl-tutorials</guid>
	<pubDate>Wed, 28 Aug 2013 05:51:38 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/4037/perl-and-bioperl-tutorials</link>
	<title><![CDATA[Perl and BioPerl Tutorials]]></title>
	<description><![CDATA[<p>This bookmark is created to store the useful Perl and BioPerl tutorial links at one place. Feel free to share and add more useful tutorial links here ....&nbsp;</p>
<p>&nbsp;</p><p>Address of the bookmark: <a href="http://cbb.sjtu.edu.cn/course/database/beginning.pdf" rel="nofollow">http://cbb.sjtu.edu.cn/course/database/beginning.pdf</a></p>]]></description>
	<dc:creator>Jitendra Narayan</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/42921/run-bash-script-in-perl-program</guid>
	<pubDate>Sat, 27 Feb 2021 01:42:23 -0600</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/42921/run-bash-script-in-perl-program</link>
	<title><![CDATA[Run bash script in Perl program !]]></title>
	<description><![CDATA[<p>BioPerl is a compilation of Perl modules that can be used to build bioinformatics-related Perl scripts. It is used, for example, in the development of source codes, standalone software/tools, and algorithms in bioinformatics programmes. Different modules are easy to instal and include, making it easier to perform different functions. Despite the fact that Python is commonly favoured over Perl, some bioinformatics software, such as the standalone version of 'alienomics', is written in Perl. Often it's a major problem for beginners to execute certain Unix/shell commands in Perl script, so it's hard to determine which feature is unique to a situation.</p><div style="background-color: white;">Perl provides various features and operators for the execution of external commands (described as follows), which are unique in their own way.</div><div style="background-color: white;">&nbsp;</div><div style="background-color: white;">They vary slightly from one another, making it difficult for Perl beginners to choose between them.</div><div style="background-color: white;">&nbsp;</div><div style="background-color: white;"><strong>1. IPC::Open2</strong></div><p>More at https://bioinformaticsonline.com/snippets/view/42919/perl-ipcopen2-module</p><p><strong>2. exec&rdquo;&rdquo;</strong></p><p><em>&nbsp;syntax:&nbsp;</em><code>exec "command";</code></p><div style="background-color: #edfbff;">It's a Perl function (perlfunc) that executes a command but never returns, similar to a function's return statement.</div><div style="background-color: white;">While running the command, it keeps processing the script and does not wait until it finishes first, returns false when the command is not found, but never returns true.</div><p><strong>3. Backticks &ldquo; or qx//</strong></p><p><em>syntax:&nbsp;</em><code>`command`;</code></p><p><em>syntax:&nbsp;</em><code>qx/command/;</code></p><div style="background-color: white;">It's a Perl operator (perlop) that executes a command and then resumes the Perl script once the command has ended, but the return value is the command's STDOUT.</div><p><strong>4. IPC::Open3</strong></p><p><em>syntax:&nbsp;</em><code>$output =&nbsp;open3(\*CHLD_IN, \*CHLD_OUT, \*CHLD_ERR,&nbsp;'command arg1 arg2', 'optarg',...);</code></p><p style="text-align: justify;"><code></code>It is very similar to <code>IPC::Open2</code> with the capability to capture all three file handles of the process, i.e., STDIN, STDOUT, and STDERR. It can also be used with or without the shell. You can read about it more in the documentation: <a href="https://perldoc.perl.org/IPC/Open3.html" target="_blank">IPC::Open3</a>.</p><p><code>$output = open3(my $o ut,&nbsp;my $in, 'command arg1 arg2');</code></p><p>OR without using the shell</p><p><code>$output = open3(my $out,&nbsp;my $in, 'command', 'arg1', 'arg2');</code></p><p><strong>5.a2p</strong></p><p><em>syntax:&nbsp;</em><code>a2p [options] [awkscript]</code></p><p>There is a Perl utility known as <code>a2p</code> which translates <code>awk</code> command to Perl. It takes awk script as input and generates a comparable Perl script as the output. Suppose, you want to execute the following <code>awk</code> statement</p><p><code>awk '{$1 = ""; $2 = ""; print}' f1.txt</code></p><p>This statement gives error sometimes even after escaping the variables (\$1, \$2) but by using <code>a2p</code> it can be easily converted to Perl script:</p><p>For further information, you can read it&rsquo;s documentation: <code><a href="https://perldoc.perl.org/a2p.html" target="_blank">a2p</a></code></p><p>More help at https://bioinformaticsonline.com/snippets/view/42920/perl-script-to-run-awk-inside-perl</p><p><strong>6. system()</strong></p><p><em>syntax:&nbsp;</em><code>system( "command" );</code></p><p>It is also a Perl function (<a href="https://perldoc.perl.org/functions/system.html" target="_blank">perlfunc</a>) that executes a command and waits for it to get finished first and then resume the Perl script. The return value is the exit status of the command. It can be called in two ways:</p><p><code>system( "command arg1 arg2" );</code></p><p>OR</p><p><code>system( "command", "arg1", "arg2" );</code></p><p>HELP</p><p>Here are some useful Perl cheat sheets that can be used as a quick reference guide.--&nbsp;<a href="https://www.pcwdld.com/perl-cheat-sheet" target="_blank">https://www.pcwdld.com/perl-cheat-sheet</a></p>]]></description>
	<dc:creator>Neel</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/42003/perl-one-liner-for-beginners</guid>
	<pubDate>Fri, 24 Jul 2020 05:58:28 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/42003/perl-one-liner-for-beginners</link>
	<title><![CDATA[Perl one-liner for beginners !]]></title>
	<description><![CDATA[<p>I often use the following arguments to perl:</p><ul>
<li>-e Makes the line of code be executed instead of a script</li>
<li>-n Forces your line to be called in a loop. Allows you to take lines from the diamond operator (or stdin)</li>
<li>-p Forces your line to be called in a loop. Prints $_ at the end</li>
</ul><p>&nbsp;</p><ul>
<li>This counts the number of quotation marks in each line and prints it
<div>
<blockquote>
<div>perl -ne&nbsp;'$cnt = tr/"//;print "$cnt\n"'&nbsp;inputFileName.txt</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>Adds string to each line, followed by tab
<div>
<blockquote>
<div>perl -pe&nbsp;'s/(.*)/string\t$1/'&nbsp;inFile &gt; outFile</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>Append a new line to each line
<div>
<blockquote>
<div>perl -pe&nbsp;'s//\n/'&nbsp;all.sent.classOnly &gt; all.sent.classOnly.sep</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>Replace all occurrences of pattern1 (e.g. [0-9]) with pattern2
<div>
<blockquote>
<div>perl -p -i.bak -w -e&nbsp;'s/pattern1/pattern2/g'&nbsp;inputFile</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>Go through file and only print words that do not have any uppercase letters.
<div>
<blockquote>
<div>perl -ne&nbsp;'print unless m/[A-Z]/'&nbsp;allWords.txt &gt; allWordsOnlyLowercase.txt</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>Go through file, split line at each space and print words one per line.
<div>
<blockquote>
<div>perl -ne&nbsp;'print join("\n", split(/ /,$_));print("\n")'&nbsp;someText.txt &gt; wordsPerLine.txt</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>or in other words, delete every character that is not a letter, white space or line end (replace with nothing)
<div>
<blockquote>
<div>perl -pne&nbsp;'s/[^a-zA-Z\s]*//g'&nbsp;text_withSpecial.txt &gt; text_lettersOnly.txt</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>
<div>
<div>perl -pne&nbsp;'tr/[A-Z]/[a-z]/'&nbsp;textWithUpperCase.txt &gt; textwithoutuppercase.txt;</div>
</div>
</li>
</ul><ul>
<li>Print only the second column of the data when using tabular as a separator
<div>
<blockquote>
<div>perl -ne&nbsp;'@F = split("\t", $_); print "$F[1]";'&nbsp;columnFileWithTabs.txt &gt; justSecondColumn.txt</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>
<div>One-Liner: Sort lines by their length
<blockquote>
<div>perl -e&nbsp;'print sort {length $a &lt;=&gt; length $b} &lt;&gt;'&nbsp;textFile</div>
</blockquote>
</div>
</li>
</ul><ul>
<li>One-Liner: Print second column, unless it contains a number
<blockquote>
<div>perl"&gt;perl -lane&nbsp;'print $F[1] unless $F[1] =~ m/[0-9]/'&nbsp;wordCounts.txt</div>
</blockquote>
</li>
</ul>]]></description>
	<dc:creator>BioStar</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/videolist/watch/14218/pimp-your-brain-bioinformatics</guid>
	<pubDate>Wed, 20 Aug 2014 22:09:21 -0500</pubDate>
	<link>https://bioinformaticsonline.com/videolist/watch/14218/pimp-your-brain-bioinformatics</link>
	<title><![CDATA[Pimp your brain: Bioinformatics]]></title>
	<description><![CDATA[<iframe width="" height="" src="https://www.youtube-nocookie.com/embed/KqelGy6Q8nE" frameborder="0" allowfullscreen></iframe>Jan Lisec from the Max Planck Institute of Molecular Plant Physiology explains, in this "pimp your brain" episode, what bioinformatics is and why bioinformatics is so important and indispensable for biological research.

In the video serial "Pimp your brain" scientists from the Max Planck Institute of Molecular Plant Physiology describe their research. More videos from the 'Pimp your brain' serial are available on www.youtube.com/playlist?list=PL-l9VItC9Gn2Ur2Xj6PTOAkjLUlVPbIOO

More videos are available on www.mpimp-golm.mpg.de]]></description>
	
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/19792/irishgrid-irish-grid-mapping-system</guid>
	<pubDate>Fri, 26 Dec 2014 07:53:24 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/19792/irishgrid-irish-grid-mapping-system</link>
	<title><![CDATA[irishgrid: Irish Grid Mapping System]]></title>
	<description><![CDATA[<p>Perl module for creating geographic 10km-square maps using either SVG or PNG (with GD library) output format.</p>
<p>Originally design to map the location of objects in a 10 km map IrishGrid includes:</p>
<ul>
<li>native support of the Irish Grid System (see <a href="http://www.osi.ie/">http://www.osi.ie/</a>)</li>
<li>optimize for speed (there's as less as possible data to conversion)</li>
<li>customized color functions</li>
</ul>
<p>https://code.google.com/p/irishgrid/downloads/detail?name=irishgrid.pl</p><p>Address of the bookmark: <a href="https://code.google.com/p/irishgrid/" rel="nofollow">https://code.google.com/p/irishgrid/</a></p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/21443/a-guide-for-complete-r-beginners-getting-data-into-r</guid>
	<pubDate>Tue, 24 Feb 2015 20:15:08 -0600</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/21443/a-guide-for-complete-r-beginners-getting-data-into-r</link>
	<title><![CDATA[A guide for complete R beginners :- Getting data into R]]></title>
	<description><![CDATA[<p>For a beginner this can be is the hardest part, it is also the most important to get right.</p><p>It is possible to create a vector by typing data directly into R using the combine function &lsquo;c&rsquo;</p><blockquote><p><strong>x </strong></p></blockquote><p>same as</p><blockquote><p><strong>x </strong></p></blockquote><p>creates the vector x with the numbers between 1 and 5.</p><p>You can see what is in an object at any time by typing its name;</p><blockquote><p><strong>x</strong></p></blockquote><p>will produce the output<strong> &lsquo;[1] 1 2 3 4 5&prime;</strong></p><p>Note that names need to be quoted</p><blockquote><p><strong>daysofweek </strong><strong>&larr; c(&lsquo;Monday&rsquo;, &lsquo;Tuesday&rsquo;, &lsquo;Wednesday&rsquo;, &lsquo;Thursday&rsquo;, &lsquo;Friday&rsquo;);</strong></p></blockquote><p>Usually however you want to input from a file. We have touched on the &lsquo;read.table&rsquo; function already.</p><blockquote><p><strong>mydata </strong></p></blockquote><p>Now <strong>mydata</strong> is a data frame with multiple vectors</p><p>each vector can be identified by the default syntax</p><p>#if any of these are typed it will print to screen</p><blockquote><p><strong>mydata$V1 mydata$V2 mydata$V3 </strong></p></blockquote><p>By default the function assumes certain things from the file</p><ul>
<li>The file is a plain text file (there are function to read excel files: <em>not covered here</em>)</li>
<li>columns are separated by any number of tabs or spaces</li>
<li>there is the same number of data points in each column</li>
<li>there is no header row (labels for the columns)</li>
<li>there is no column with names for the rows** [I&rsquo;ll explain].</li>
</ul><p><span style="text-decoration: underline;">If any of these are false, we need to tell that to the function</span></p><p>If it has a header column</p><blockquote><p><strong>mydata <em>header=T also works</em></strong></p></blockquote><p>Note that there is a comma between different parts of the functions arguments</p><p>If there is one less column in the header row, then R assumes that the 1<sup>st</sup> column of data after the header are the row names</p><p>Now the vectors (columns) are identified by their name</p><p>#if any of these are typed it will print to screen</p><blockquote><p><strong>mydata$A mydata$B mydata$C </strong></p></blockquote><p># Summary about the whole data frame</p><blockquote><p><strong>summary(mydata)</strong></p></blockquote><p># Summary information of column A</p><blockquote><p><strong>summary(mydata$A) </strong></p></blockquote><p>We can shortcut having to type the data frame each time by attaching it</p><blockquote><p><strong>attach(mydata)</strong></p></blockquote><p># summary of column B as &lsquo;mydata&rsquo; is attached</p><blockquote><p><strong>summary(B)</strong></p></blockquote><p><span style="text-decoration: underline;">Two other important options for </span><em><span style="text-decoration: underline;">read.table</span></em></p><p>If is is separated only by tabs and has a header</p><blockquote><p><strong>mydata </strong></p></blockquote><p>Really useful if you have spaces in the contents of some columns, so R does not mess up reading the columns . However if the columns or of an uneven length it will tell you.</p><p>If you know that the file has uneven columns</p><blockquote><p><strong>mydata </strong></p></blockquote><p>This causes R to fill empty spaces in a columns with &lsquo;NA&rsquo; .</p><p>The last two examples will still work with our file and give the same result as with only headers=T</p><p><span style="text-decoration: underline;">Graphs</span></p><p>to get an idea of what R is capable of type</p><blockquote><p><strong>demo(graphics)</strong></p></blockquote><p>steps through the examples, and the code is printed to the screen</p><p>We will work with simpler examples that have immediate use to biologists.</p><p>Remember to get more information about the options to a function type &lsquo;?function&rsquo;</p><p><span style="text-decoration: underline;">Histogram of A</span><span style="text-decoration: underline;"></span></p><blockquote><p><strong>hist(mydata$A)</strong></p></blockquote><p>If there was more data we could increase the number of vertical columns with the option, breaks=50 (or another relevant number).</p><blockquote><p><strong>boxplot(mydata)</strong></p></blockquote><p>We can get rid of the need to type the data frame each time by using the <strong>attach</strong> function</p><p># if not already done so</p><blockquote><p><strong>attach(mydata) </strong></p><p><strong>boxplot(mydata$A, mydata$B, name=c(&ldquo;Value A&rdquo;, &ldquo;Value B&rdquo;) , ylab=&ldquo;Count of Something&rdquo;)</strong></p></blockquote><p>same as</p><blockquote><p><strong>boxplot(A, B, name=c(&ldquo;Value A&rdquo;, &ldquo;Value B&rdquo;) , ylab=&ldquo;Count of Something&rdquo;)</strong></p></blockquote><p><span style="text-decoration: underline;">Scatter plot</span></p><p># if not already done so</p><blockquote><p><strong>attach(mydata) </strong></p><p><strong>plot(A,B) # or plot(mydata$A, mydata$B)</strong></p></blockquote><p><strong><span style="text-decoration: underline;">SAVING an image</span></strong></p><p>Windows users (Rgui) RIGHT click on image and select which you want.</p><p><span style="text-decoration: underline;">These instructions work for everyone.</span></p><p>You need to create a new device of the type of file you need, then send the data to that device</p><p>to save as a png file (easy to load into the likes of powerpoint, also great for web applications.</p><blockquote><p><strong>png(&lsquo;filename&rsquo;) </strong></p><p><strong>boxplot(A, B, name=c(&ldquo;Value A&rdquo;, &ldquo;Value B&rdquo;) , ylab=&ldquo;Count of Something&rdquo;)</strong></p></blockquote><p>or to save as a pdf</p><blockquote><p><strong>pdf(&lsquo;filename&rsquo;) </strong></p><p><strong>boxplot(A, B, name=c(&ldquo;Value A&rdquo;, &ldquo;Value B&rdquo;) , ylab=&ldquo;Count of Something&rdquo;)</strong></p></blockquote><p><span style="text-decoration: underline;">Note</span></p><ul>
<li>Nothing will appear on screen, the output is going to the file</li>
<li>Also it may not be saved immediately but will once the device (or R) is turned quit.</li>
</ul><p>To quit R type</p><p><strong>q() # </strong>If you save your session, next time you start R, you will have your data preloaded.</p><p>Or if you want to remain in R</p><blockquote><pre><strong>dev.off() #</strong>turns of the png (or pdf etc) device, thus forces the data to save</pre></blockquote>]]></description>
	<dc:creator>Archana Malhotra</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/news/view/23160/opencpu</guid>
	<pubDate>Sun, 05 Jul 2015 18:34:46 -0500</pubDate>
	<link>https://bioinformaticsonline.com/news/view/23160/opencpu</link>
	<title><![CDATA[OpenCPU]]></title>
	<description><![CDATA[<p>OpenCPU is a system for embedded scientific computing and reproducible research. The OpenCPU server provides a reliable and interoperable <a href="https://www.opencpu.org/api.html">HTTP API</a> for data analysis based on R.</p><p>The OpenCPU <a href="https://www.opencpu.org/jslib.html">JavaScript client library</a> provides the most seamless integration of R and JavaScript available today.</p><p>OpenCPU uses standard R packaging to develop, ship and deploy web applications. Several open source <a href="https://www.opencpu.org/apps.html">example apps</a> are available from Github.</p><p>Installing your own OpenCPU server is <a href="https://www.opencpu.org/download.html">super easy</a> and only takes a few minutes.</p><p>More at https://www.opencpu.org/</p>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/29479/how-to-install-perl-modules-on-mac-os-x-in-easy-steps</guid>
	<pubDate>Thu, 20 Oct 2016 07:26:29 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/29479/how-to-install-perl-modules-on-mac-os-x-in-easy-steps</link>
	<title><![CDATA[How to install Perl modules on Mac OS X in easy steps !!]]></title>
	<description><![CDATA[<p>Today at work, I learned how to install Perl modules using&nbsp;<a href="http://en.wikipedia.org/wiki/CPAN">CPAN</a>. It&rsquo;s a lot easier than I thought.</p><p>You see, for the past couple of years, I&rsquo;ve been a bit frustrated because OS X does not come with a whole lot of Perl modules pre-installed, and for all I googled, I couldn&rsquo;t find an &ldquo;idiot&rsquo;s&rdquo; guide for moderately-savvy-but-not-expert users like myself to install modules and dependencies on demand.</p><p>The only instructions I could find point to&nbsp;<a href="http://fink.sourceforge.net/">Fink</a>, which basically installs modules in a path that isn&rsquo;t included in the Perl @INC variable, meaning you have to manually specify the full path to the modules in every script &mdash; which is not a lot of fun if you&rsquo;re developing on OS X and deploying on Red Hat, for instance.</p><p>Moreover, Fink doesn&rsquo;t seem to make every module available, and it&rsquo;s not very easy to determine which Fink package you need to install if you need a particular module.</p><p>So, with a script that called on several apparently unavailable modules, and a deadline looming, I finally decided to suck it up and figure out how to use CPAN to install them:</p><h4>1) Make sure you have the Apple Developer Tools (XCode) installed.</h4><p>These are on one of your install discs, or available as a huge but free download from the&nbsp;<a href="https://developer.apple.com/xcode/">Apple Developer Connection</a>&nbsp;[free registration required] or the Mac App Store. I thought I had them, but apparently when we upgraded that computer to Tiger, they went missing.</p><p>If you don&rsquo;t have this stuff installed, your installation will fail with errors about unavailable commands.</p><h4>1.5) Install Command Line Tools (Recent XCode versions only)</h4><p>(Thank you to Tom Marchioro for informing me about this step.)</p><p>Older versions of XCode installed the command line tools (which are required to properly install CPAN modules) by default, but apparently newer ones do not. To check whether you have the command line tools already installed, run the following from the Terminal:</p><p><code>$ which make</code></p><p>This command checks the system for the &ldquo;<code>make</code>&rdquo; tool. If it spits out something like&nbsp;<code>/usr/bin/make</code>&nbsp;you&rsquo;re golden and can skip ahead to Step 2. If you just get a new prompt and no output, you&rsquo;ll need to install the tools:</p><ol>
<li>Launch XCode and bring up the Preferences panel.</li>
<li>Click on the Downloads tab</li>
<li>Click to install the Command Line Tools</li>
</ol><p>If you like, you can run&nbsp;<code>which make</code>&nbsp;again to confirm that everything&rsquo;s installed correctly.</p><h4>2) Configure CPAN.</h4><p><code>$ sudo perl -MCPAN -e shell</code></p><p><code>perl&gt; o conf init</code></p><p>This will prompt you for some settings. You can accept the defaults for almost everything (just hit &ldquo;return&rdquo;). The two things you must fill in are the path to&nbsp;<code>make</code>&nbsp;(which should be&nbsp;<code>/usr/bin/make</code>&nbsp;or the value returned when you run&nbsp;<code>which make</code>&nbsp;from the command line) and your choice of CPAN mirrors (which you actually choose don&rsquo;t really matter, but it won&rsquo;t let you finish until you select at least one). If you use a proxy or a very restrictive firewall, you may have to configure those settings as well.</p><p>If you skip Step 2, you may get errors about&nbsp;<code>make</code>&nbsp;being unavailable.</p><h4>3) Upgrade CPAN</h4><p><code>$ sudo perl -MCPAN -e 'install Bundle::CPAN'</code></p><p>Don&rsquo;t forget the&nbsp;<code>sudo</code>, or it&rsquo;ll fail with permissions errors, probably when doing something relatively unimportant like installing&nbsp;<code>man</code>&nbsp;files.</p><p>This will spend a long time downloading, testing, and compiling various files and dependencies. Bear with it. It will prompt you a few times about dependencies. You probably want to enter &ldquo;yes&rdquo;. I agreed to everything it asked me, and everything turned out fine. YMMV of course. If everything installs properly, it&rsquo;ll give you an &ldquo;OK&rdquo; at the end.</p><h4>4) Install your modules. For each module&hellip;.</h4><p><code>$ sudo perl -MCPAN -e 'install Bundle::Name'</code></p><p>or</p><p><code>$ sudo perl -MCPAN -e 'install Module::Name'</code></p><p>This will install the module&nbsp;<em>and</em>&nbsp;its dependencies. Nice, eh? Again, don&rsquo;t forget the&nbsp;<code>sudo</code>.</p><p>The first time you run this after upgrading CPAN, it may prompt you to configure again (see Step 2). If you accept its offer to try to configure itself automatically, it may just run through everything without a problem.</p><p>There are a couple of potential pitfalls with specific modules (such as the<code>LWP::UserAgent</code>&nbsp;/&nbsp;<code>HEAD</code>&nbsp;issue), but most have workarounds, and I haven&rsquo;t run into anything that wasn&rsquo;t easily recoverable.</p><p>And that&rsquo;s it!</p><p>Did you find this useful? Is there anything I missed?</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>