Description Usage Arguments Value See Also Examples
Output taken from the deltas function and adds it to a new CSV file that is named by the user. The user will can also to add labels for each of the fold changes.
1 | combine_folds(Fold, new_file, gene_names)
|
Fold |
Fold change results from the Deltas function. Users can use a single result or a vector of results in this argument. |
new_file |
Name of the new CSV file. Must be in quotes and have the .csv extension. |
gene_names |
A character string containing descriptive information about the fold changes. |
This function returns a data frame that contains two columns denoted as "Gene_Name" and "Fold_change". The information inputted to the gene_names argument will be in the "Gene_Name" column and the data inputted to the Fold argument will be in the "Fold_change" column.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | mypath1 <- system.file("extdata", "example1.csv", package = "DoubleDelta")
mypath3 <- system.file("extdata", "example3.csv", package = "DoubleDelta")
data1 <- read.csv(mypath1)
data3 <- read.csv(mypath3)
a <- deltas(data1, "Gene1", "6HAT", "UT", "ST", "BTUB", "GTPB", "GAPDH")
b <- deltas(data3, "Gene1", "12HAT", "UT", "ST", "BTUB", "GTPB", "GAPDH")
#Making Temporary File Located in Temp Directory
outfile1 <- tempfile(fileext = "All_Data.csv")
#Run the following code to put "All_Data.csv" file in the Temp Directory.
combine_folds(c(a,b), outfile1, c("Gene1 6HAT", "Gene2 12HAT"))
## Not run:
#Run the following code if you want to view "All_Data.csv" in your designated directory.
combine_folds(c(a,b), "All_Data.csv", c("Gene1 6HAT", "Gene2 12HAT"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.