Topics: Life science. Biology. Biotechnology and Biomedical research. Bioinformatics and Computational Biology. Programming for Biologists. Lab protocols and methods. Paper reviews. Data science. Programming in R, C, C++, Perl, Python, Excel, basic and advanced Unix, shell scripting, awk scripting, vim editing, regular expressions. Custom script development.
These are the simple instructions for creating a QQ-plot in R.
If you obtained a set of p-values from your experiment and want to check if they are different than the uniform distribution of p-values the QQ-plot is the right way to do this.
Save the file as file.txt with each p-value in a separate line.
Create uniform distribution of p-values using runif, where N is the number of observed p-values you have in file.txt: uni_pvalues=runif(N) log_uni_pvalues= -log10(uni_pvalues) log_uni_pvalues = sort(log_uni_pvalues)
Simply do a scatter-plot of the the two variables:
plot (log_uni_pvalues,log_obs_pvalues, xlab=expression(Theoretical~~-log(italic(p))), ylab= expression(Observed~~-log(italic(p))), main="Title of your QQ-plot")
To draw the 45 degree line: abline(0,1)
The resulting graph:
From the following graph we can conclude that experimental p-values are not enriched with lower values than what would be expected according to the uniform distribution of p-values. For example, for the p-value of 0.05 the value -log10 equals ~1.3, so if the distribution of experimental p-values is enriched in significant values, the dots on the graph should go above the 45 degree line for Observed -log10(p)> 1.3.
In case you have a quite large file that will take ages to load into Gedit or Notepad, and potentially will use all your system resources and block the computer, and you only need only to select one or few lines from this file, do the following:
Install Midnight commander (MC) in Linux,
or Total commander in Windows.
Go to the folder with the file you want to view.
Press F3 to view the file. This step is usually much faster than loading the file in Gedit (Linux) or Notepad (Windows)
Press F7 to search for the text of interest.
Hold SHIFT and select the text with mouse. CTRL + INS to copy the text. Or right click and copy.
Simply select and CTRL + INS or CTRL + C for copying
In order to convert the table to a single column do the following. The data table has been assigned the name DataTable and the column name
is ColumnData. It is sufficient to name only the first cell. Enter the
following formula in the first cell of ColumnData and fill down as many rows as there are
elements in your table:
This will fill in the values from the DataTable in column-by-column order, working down then across.
You can retrieve the values from DataTable in row-by-row order order, working across then down,
with the following formula:
Backing up Thunderbird manually in Windows is very simple, all you have to do is to copy their respective profile folders to a desired location, like USB or external hard drive. Then, you’ll have a backup with all your settings and emails saved.
The difficult part is to find the profile folders. Note that they may be located in different places for different Windows versions.
On Windows XP machines the locations for your Thunderbird profiles are: C:\Documents and Settings\<Windows login/user name>\Application Data\Thunderbird\Profiles\<Profile name>\
Backup the contents of this folder.
To restore your email e.g. on another computer, copy the saved contents to the same folder on the new machine.
Mozilla Thunderbird has all your email and profile settings stored in a directory called: ~/.thunderbird
and the location of the folder is: /home/you/.thunderbird/ or ~/.thunderbird directory.
All you have to do is backup this directory.
Go to Terminal (CTRL + ALT + T)
You should be located in the folder /home/you/ indicated by ~$ sign
Type cd .thunderbird to enter the folder and explore the subfolders. One of them contains the file with your Inbox mail. Make sure it is there.
Go back to with cd ..
Type cp -avr .thunderbird /media/your USB or hard drive name/
And you are done!
To restore Thunderbird mail and profile
Thunderbird should not be running. Simply copy backup files to your /home/you/.thunderbird/ directory.