mkatari-bioinformatics-august-2013-deseq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
mkatari-bioinformatics-august-2013-deseq [2013/08/23 15:23] – mkatari | mkatari-bioinformatics-august-2013-deseq [2013/08/23 15:46] – mkatari | ||
---|---|---|---|
Line 24: | Line 24: | ||
</ | </ | ||
- | Now for our script we will use a function (commandArgs) that allows the R to read in arguments from command line automatically. We will use a command Rscript | + | Now in our script we will use a function (commandArgs) that will allow us to read in arguments from command line automatically. We will use the command Rscript |
< | < | ||
Line 33: | Line 33: | ||
</ | </ | ||
- | All the arguments provided in command line will be saved as a character vector in userargs. The value TRUE in the commandArgs argument make sure only the trailing arguments are saved (which is what we will be providing. If the value is FALSE you will see additional R arguments when the command Rscript is executed. | + | This will save all the words as a character vector in userargs. The value TRUE in the commandArgs argument make sure only the trailing arguments are saved. If the value is FALSE you will see additional R arguments when the command Rscript is executed. Notice the order of arguments is important. First we will provide the path to the count data file, then the path to the file containing the experimental design and finally the path to the directory where to save the results. |
- | The input for DESeq is a matrix/ | + | An example |
- | You have to first load the file into your workspace. | + | First we will load the count data file. |
- | + | ||
- | If you are running it locally | + | |
- | < | + | |
- | counts = read.table(" | + | |
- | </ | + | |
- | If you are writing a script | + | |
< | < | ||
counts = read.table(pathToCountsData, | counts = read.table(pathToCountsData, |
mkatari-bioinformatics-august-2013-deseq.txt · Last modified: 2015/08/21 14:13 by mkatari