<?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/37586?offset=0</link>
	<atom:link href="https://bioinformaticsonline.com/related/37586?offset=0" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/40583/trelliscope-flexibly-visualize-large-complex-data-in-great-detail-from-within-the-r-statistical-programming-environment</guid>
	<pubDate>Tue, 21 Jan 2020 04:22:49 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/40583/trelliscope-flexibly-visualize-large-complex-data-in-great-detail-from-within-the-r-statistical-programming-environment</link>
	<title><![CDATA[Trelliscope: flexibly visualize large, complex data in great detail from within the R statistical programming environment.]]></title>
	<description><![CDATA[<p>Trelliscope provides a way to flexibly visualize large, complex data in great detail from within the R statistical programming environment. Trelliscope is a component in the<span>&nbsp;</span><a href="http://deltarho.org/docs-trelliscope/deltarho.org">DeltaRho</a><span>&nbsp;</span>environment.</p>
<p>For those familiar with<span>&nbsp;</span><a href="http://cm.bell-labs.com/cm/ms/departments/sia/project/trellis/">Trellis Display</a>,<span>&nbsp;</span><a href="http://docs.ggplot2.org/0.9.3.1/facet_wrap.html">faceting in ggplot</a>, or the notion of<span>&nbsp;</span><a href="http://en.wikipedia.org/wiki/Small_multiple">small multiples</a>, Trelliscope provides a scalable way to break a set of data into pieces, apply a plot method to each piece, and then arrange those plots in a grid and interactively sort, filter, and query panels of the display based on metrics of interest. With Trelliscope, we are able to create multipanel displays on data with a very large number of subsets and view them in an interactive and meaningful way.</p><p>Address of the bookmark: <a href="http://deltarho.org/docs-trelliscope/#introduction" rel="nofollow">http://deltarho.org/docs-trelliscope/#introduction</a></p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/44541/powerful-books-for-learning-data-analysis-with-r</guid>
	<pubDate>Tue, 28 May 2024 07:42:56 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/44541/powerful-books-for-learning-data-analysis-with-r</link>
	<title><![CDATA[Powerful books for learning data analysis with R]]></title>
	<description><![CDATA[<p><span>R is powerful tool for data analysis, visualization, and machine learning. And it costs $0 to use! Here are six FREE books you can use to learn R today:</span></p>
<p><span>https://csgillespie.github.io/efficientR/</span></p>
<p><span>https://r-graphics.org/</span></p>
<p><span>https://rstudio-education.github.io/hopr/</span></p>
<p><span>https://r-pkgs.org/</span></p>
<p><span>https://r4ds.had.co.nz/</span></p>
<p>&nbsp;</p><p>Address of the bookmark: <a href="https://r-graphics.org/" rel="nofollow">https://r-graphics.org/</a></p>]]></description>
	<dc:creator>LEGE</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/33869/import-r-data</guid>
	<pubDate>Wed, 12 Jul 2017 08:30:46 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/33869/import-r-data</link>
	<title><![CDATA[Import R Data]]></title>
	<description><![CDATA[<p>It is often necessary to import sample textbook data into R before you start working on your homework.</p><div id="node-69"><div><p><strong>Excel File</strong></p><p>Quite frequently, the sample data is in&nbsp;<span>Excel&nbsp;</span>format, and needs to be imported into R prior to use. For this, we can use the function&nbsp;<span>read.xls&nbsp;</span>from the&nbsp;<span>gdata&nbsp;</span>package. It reads from an Excel spreadsheet and returns a&nbsp;<a href="http://www.r-tutor.com/r-introduction/data-frame">data frame</a>. The following shows how to load an Excel spreadsheet named&nbsp;<span>"mydata.xls"</span>. This method requires Perl runtime to be present in the system.</p><blockquote><div id="listing-68"><span><a></a></span>&gt;&nbsp;library(gdata)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;load&nbsp;gdata&nbsp;package&nbsp;<br /><span><a></a></span>&gt;&nbsp;help(read.xls)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;documentation&nbsp;<br /><span><a></a></span>&gt;&nbsp;mydata&nbsp;=&nbsp;read.xls("mydata.xls")&nbsp;&nbsp;#&nbsp;read&nbsp;from&nbsp;first&nbsp;sheet</div></blockquote><p>Alternatively, we can use the function&nbsp;<span>loadWorkbook&nbsp;</span>from the&nbsp;<span>XLConnect&nbsp;</span>package to read the entire workbook, and then load the worksheets with&nbsp;<span>readWorksheet</span>. The&nbsp;<span>XLConnect&nbsp;</span>package requires Java to be pre-installed.</p><blockquote><div id="listing-69"><span><a></a></span>&gt;&nbsp;library(XLConnect)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;load&nbsp;XLConnect&nbsp;package&nbsp;<br /><span><a></a></span>&gt;&nbsp;wk&nbsp;=&nbsp;loadWorkbook("mydata.xls")&nbsp;<br /><span><a></a></span>&gt;&nbsp;df&nbsp;=&nbsp;readWorksheet(wk,&nbsp;sheet="Sheet1")</div></blockquote><p>&nbsp;</p><h4><a></a>Minitab File</h4><p>If the data file is in&nbsp;<span>Minitab Portable Worksheet&nbsp;</span>format, it can be opened with the function&nbsp;<span>read.mtp&nbsp;</span>from the&nbsp;<span>foreign&nbsp;</span>package. It returns a&nbsp;<a href="http://www.r-tutor.com/r-introduction/list">list</a>&nbsp;of components in the Minitab worksheet.</p><blockquote><div id="listing-70"><span><a></a></span>&gt;&nbsp;library(foreign)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;load&nbsp;the&nbsp;foreign&nbsp;package&nbsp;<br /><span><a></a></span>&gt;&nbsp;help(read.mtp)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;documentation&nbsp;<br /><span><a></a></span>&gt;&nbsp;mydata&nbsp;=&nbsp;read.mtp("mydata.mtp")&nbsp;&nbsp;#&nbsp;read&nbsp;from&nbsp;.mtp&nbsp;file</div></blockquote><p>&nbsp;</p><h4><a></a>SPSS File</h4><p>For the data files in&nbsp;<span>SPSS&nbsp;</span>format, it can be opened with the function&nbsp;<span>read.spss&nbsp;</span>also from the&nbsp;<span>foreign&nbsp;</span>package. There is a&nbsp;<span>"to.data.frame"&nbsp;</span>option for choosing whether a data frame is to be returned. By default, it returns a list of components instead.</p><blockquote><div id="listing-71"><span><a></a></span>&gt;&nbsp;library(foreign)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;load&nbsp;the&nbsp;foreign&nbsp;package&nbsp;<br /><span><a></a></span>&gt;&nbsp;help(read.spss)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;documentation&nbsp;<br /><span><a></a></span>&gt;&nbsp;mydata&nbsp;=&nbsp;read.spss("myfile",&nbsp;to.data.frame=TRUE)</div></blockquote><p>&nbsp;</p><h4><a></a>Table File</h4><p>A data table can resides in a text file. The cells inside the table are separated by blank characters. Here is an example of a table with 4 rows and 3 columns.</p><blockquote><div id="listing-72"><span><a></a></span>100&nbsp;&nbsp;&nbsp;a1&nbsp;&nbsp;&nbsp;b1&nbsp;<br /><span><a></a></span>200&nbsp;&nbsp;&nbsp;a2&nbsp;&nbsp;&nbsp;b2&nbsp;<br /><span><a></a></span>300&nbsp;&nbsp;&nbsp;a3&nbsp;&nbsp;&nbsp;b3&nbsp;<br /><span><a></a></span>400&nbsp;&nbsp;&nbsp;a4&nbsp;&nbsp;&nbsp;b4</div></blockquote><p>Now copy and paste the table above in a file named&nbsp;<span>"mydata.txt"&nbsp;</span>with a text editor. Then load the data into the workspace with the function&nbsp;<span>read.table</span>.</p><blockquote><div id="listing-73"><span><a></a></span>&gt;&nbsp;mydata&nbsp;=&nbsp;read.table("mydata.txt")&nbsp;&nbsp;#&nbsp;read&nbsp;text&nbsp;file&nbsp;<br /><span><a></a></span>&gt;&nbsp;mydata&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;print&nbsp;data&nbsp;frame&nbsp;<br /><span><a></a></span>&nbsp;&nbsp;&nbsp;V1&nbsp;V2&nbsp;V3&nbsp;<br /><span><a></a></span>1&nbsp;100&nbsp;a1&nbsp;b1&nbsp;<br /><span><a></a></span>2&nbsp;200&nbsp;a2&nbsp;b2&nbsp;<br /><span><a></a></span>3&nbsp;300&nbsp;a3&nbsp;b3&nbsp;<br /><span><a></a></span>4&nbsp;400&nbsp;a4&nbsp;b4</div></blockquote><p>For further detail of the function&nbsp;<span>read.table</span>, please consult the R documentation.</p><blockquote><div id="listing-74"><span><a></a></span>&gt;&nbsp;help(read.table)</div></blockquote><p>&nbsp;</p><h4><a></a>CSV File</h4><p>The sample data can also be in&nbsp;<span>comma separated values&nbsp;</span>(CSV) format. Each cell inside such data file is separated by a special character, which usually is a comma, although other characters can be used as well.</p><p>The first row of the data file should contain the column names instead of the actual data. Here is a sample of the expected format.</p><blockquote><div id="listing-75"><span><a></a></span>Col1,Col2,Col3&nbsp;<br /><span><a></a></span>100,a1,b1&nbsp;<br /><span><a></a></span>200,a2,b2&nbsp;<br /><span><a></a></span>300,a3,b3</div></blockquote><p>After we copy and paste the data above in a file named&nbsp;<span>"mydata.csv"&nbsp;</span>with a text editor, we can read the data with the function&nbsp;<span>read.csv</span>.</p><blockquote><div id="listing-76"><span><a></a></span>&gt;&nbsp;mydata&nbsp;=&nbsp;read.csv("mydata.csv")&nbsp;&nbsp;#&nbsp;read&nbsp;csv&nbsp;file&nbsp;<br /><span><a></a></span>&gt;&nbsp;mydata&nbsp;<br /><span><a></a></span>&nbsp;&nbsp;Col1&nbsp;Col2&nbsp;Col3&nbsp;<br /><span><a></a></span>1&nbsp;&nbsp;100&nbsp;&nbsp;&nbsp;a1&nbsp;&nbsp;&nbsp;b1&nbsp;<br /><span><a></a></span>2&nbsp;&nbsp;200&nbsp;&nbsp;&nbsp;a2&nbsp;&nbsp;&nbsp;b2&nbsp;<br /><span><a></a></span>3&nbsp;&nbsp;300&nbsp;&nbsp;&nbsp;a3&nbsp;&nbsp;&nbsp;b3</div></blockquote><p>In various European locales, as the comma character serves as the decimal point, the function&nbsp;<span>read.csv2&nbsp;</span>should be used instead. For further detail of the&nbsp;<span>read.csv&nbsp;</span>and&nbsp;<span>read.csv2&nbsp;</span>functions, please consult the R documentation.</p><blockquote><div id="listing-77"><span><a></a></span>&gt;&nbsp;help(read.csv)</div></blockquote><p>&nbsp;</p><h4><a></a>Working Directory</h4><p>Finally, the code samples above assume the data files are located in the R&nbsp;<span>working</span>&nbsp;<span>directory</span>, which can be found with the function&nbsp;<span>getwd</span>.</p><blockquote><div id="listing-78"><span><a></a></span>&gt;&nbsp;getwd()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;get&nbsp;current&nbsp;working&nbsp;directory</div></blockquote><p>You can select a different working directory with the function&nbsp;<span>setwd()</span>, and thus avoid entering the full path of the data files.</p><blockquote><div id="listing-79"><span><a></a></span>&gt;&nbsp;setwd("")&nbsp;&nbsp;&nbsp;#&nbsp;set&nbsp;working&nbsp;directory</div></blockquote><p>Note that the forward slash should be used as the path separator even on Windows platform.</p><blockquote><div id="listing-80"><span><a></a></span>&gt;&nbsp;setwd("C:/MyDoc")</div></blockquote></div></div>]]></description>
	<dc:creator>Abhimanyu Singh</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/poll/view/14927/which-of-the-following-programming-language-is-best-for-a-bioinformatics-beginner</guid>
	<pubDate>Thu, 04 Sep 2014 07:51:16 -0500</pubDate>
	<link>https://bioinformaticsonline.com/poll/view/14927/which-of-the-following-programming-language-is-best-for-a-bioinformatics-beginner</link>
	<title><![CDATA[Which of the following programming language is best for a bioinformatics beginner?]]></title>
	<description><![CDATA[<p>I will be doing NGS in the course of my research work and I will like to learn a programming language which is compatible with most bioinformatics tools or software. I basically want to do de-novo assembly, map reads, align reads, and expression analysis. Recommendations welcomed. Which languages would you recommend to a student wishing to enter the world of bioinformatics?</p>]]></description>
	<dc:creator>Manisha Mishra</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/40724/the-raku-programming-language</guid>
	<pubDate>Tue, 28 Jan 2020 05:37:17 -0600</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/40724/the-raku-programming-language</link>
	<title><![CDATA[The Raku Programming Language]]></title>
	<description><![CDATA[<p><span>Raku is a member of the Perl family of programming languages. Formerly known as Perl 6, it was renamed in October 2019. Raku introduces elements of many modern and historical languages. Compatibility with Perl was not a goal, though a compatibility mode is part of the specification.</span><span>&nbsp;</span></p>
<p><span>More at&nbsp;<a href="https://www.raku.org/">https://www.raku.org/</a></span></p><p>Address of the bookmark: <a href="https://www.raku.org/" rel="nofollow">https://www.raku.org/</a></p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/news/view/20331/type-hinting</guid>
	<pubDate>Fri, 09 Jan 2015 22:26:13 -0600</pubDate>
	<link>https://bioinformaticsonline.com/news/view/20331/type-hinting</link>
	<title><![CDATA[Type Hinting]]></title>
	<description><![CDATA[<p>Python creator Guido van Rossum&rsquo;s proposal for static type-checking annotations is inching closer to reality, and the feature has taken on a new name: type hinting.</p><p><img src="http://sdtimes.com/wp-content/uploads/2015/01/0107.sdt-python-typehinting.png" alt="image" width="619" height="219" style="border: 0px; border: 0px;"></p><p>Back in August, van Rossum published a proposal on the Python mailing list recommending type-checking annotations as a valuable feature for the next version of Python to improve the performance of editors and IDEs, linter capabilities, standard notation, and refactoring. Van Rossum&rsquo;s <a href="http://lwn.net/Articles/627558/">latest proposal</a>, posted late last month, outlined plans to publish a Python Enhancement Proposal (PEP) in early January to put the feature now known as type hinting on track for inclusion in Python 3.5, slated for release this September.</p><p>Reference</p><p>https://quip.com/r69HA9GhGa7J</p>]]></description>
	<dc:creator>Pranjali Yadav</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/36603/learning-python-programming-a-bioinformatician-perspective</guid>
	<pubDate>Mon, 14 May 2018 16:33:03 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/36603/learning-python-programming-a-bioinformatician-perspective</link>
	<title><![CDATA[Learning Python Programming - a bioinformatician perspective !]]></title>
	<description><![CDATA[<p>Python Programming&nbsp;is a general purpose programming language that is open source, flexible, powerful and easy to use. One of the most important features of python is its rich set of utilities and libraries for data processing and analytics tasks. In the current era of big biological data, python and biopython is getting more popularity due to its easy-to-use features which supports big data processing.</p><p>In this tutorial series article, I will explore features and packages of python which are widely used in the big data, NGS, and bioinformatics. I will also walk through a real biological example which shows NGS data processing with the help of python packages and programming.</p><p>Python has a couple of points to recommend it to biologists and scientists specifically:</p><ul>
<li>It's widely used in the scientific community</li>
<li>It has a couple of very well designed libraries for doing complex scientific computing (although we won't encounter them in this book)</li>
<li>It lend itself well to being integrated with other, existing tools</li>
<li>It has features which make it easy to manipulate strings of characters (for example, strings of DNA bases and protein amino acid residues, which we as biologists are particularly fond of)</li>
</ul><p>In general, following are some of the important features of python which makes it a perfect fit for rapid application development.</p><ul>
<li>Python is interpreted language so the program does not need to be compiled. Interpreter parses the program code and generates the output.</li>
<li>Python is dynamically typed, so the variables types are defined automatically.</li>
<li>Python is strongly typed. So the developers need to cast the type manually.</li>
<li>Less code and more use makes it more acceptable.</li>
<li>Python is portable, extendable and scalable.</li>
</ul><p>There are two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This tutorial uses Python 3, because it more semantically correct and supports newer features.</p><p>I will post tutorial on daily basis on this page. Check the sub-pages on right side.</p>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/36605/hello-python-world</guid>
	<pubDate>Mon, 14 May 2018 16:41:01 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/36605/hello-python-world</link>
	<title><![CDATA[Hello Python World !]]></title>
	<description><![CDATA[<p>As I mentioned earlier, I will keep on posting one Python script per day to introduce you to Python programming. Whether you are an experienced programmer or not, this tutorial is intended for everyone who wishes to learn the Python programming language.</p><p>Python is a very simple language, and has a very straightforward syntax. The simplest directive in Python is the "print" directive - it simply prints out a line (and also includes a newline).</p><p>Create a file Hello.py</p><blockquote><p>print("Hello, Python World !.")</p></blockquote><p>Run</p><p>python3 Hello.py</p>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/27070/venn-diagrams-on-r-studio</guid>
	<pubDate>Mon, 25 Apr 2016 16:22:28 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/27070/venn-diagrams-on-r-studio</link>
	<title><![CDATA[Venn Diagrams on R Studio]]></title>
	<description><![CDATA[<h3>First step: Install &amp; load &ldquo;VennDiagram&rdquo; package.</h3>
<pre><code><span># install.packages('VennDiagram')</span>
<span>library</span><span>(</span><span>VennDiagram</span><span>)</span>
</code></pre>
<h3>Second step: Load data</h3>
<p>Add filepath if &ldquo;catdoge.csv&rdquo; is not in working-directory.</p>
<pre><code><span>d</span> <span>&lt;-</span> <span>read.csv</span><span>(</span><span>"catdoge.csv"</span><span>)</span></code><br><br></pre><p>Address of the bookmark: <a href="http://rstudio-pubs-static.s3.amazonaws.com/13301_6641d73cfac741a59c0a851feb99e98b.html" rel="nofollow">http://rstudio-pubs-static.s3.amazonaws.com/13301_6641d73cfac741a59c0a851feb99e98b.html</a></p>]]></description>
	<dc:creator>Jitendra Prajapati</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>

</channel>
</rss>