write_samplesheet: Function creates samplesheet compatible with SureTypeSCR

Description Usage Arguments Value Examples

View source: R/write_samplesheet.R

Description

Function is used in case data was converted from idat and sample sheet was not available with the data.

Usage

1
2
write_samplesheet(filename,array_positions,gtc_output,manifest,experiment_name='Experiment1',
project_name='Project1',investigator_name='Investigator1')

Arguments

filename

name/path of the newly created sample sheet

array_positions

data frame storing metadata about sample id, array id and position, following columns are required: sampleid,arrayid,position

gtc_output

path where GTC files are stored

manifest

name of the manifest file

experiment_name

experiment name

project_name

project name

investigator_name

investigator name

Value

writes external file to filename

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#library(GEOquery)

#gse <- getGEO("GSE19247",GSEMatrix = TRUE)
#manifest=system.file("files/HumanCytoSNP-12v2_H.bpm",package="SureTypeSCR")

#samplelist_sperm=as.data.frame(gse$`GSE19247-GPL6985_series_matrix.txt.gz`) %>% 
#  filter((str_detect(cell.type.ch1,'sperm')) & str_detect(cell.amplication.ch1,'MDA')) %>%
#  rownames()  

#metadf_sperm=map_if(samplelist_sperm,function(x) !is.null(x),
#                    function(x) getGEO_and_folder_in(x,download=TRUE))
#metadf_sperm_merged = Reduce(function(...) merge(..., all=T), metadf_sperm)

#write_samplesheet('samplesheet.csv',metadf_sperm_merged,'GTC',manifest)

Meiomap/SureTypeSCR documentation built on Dec. 17, 2021, 3:22 a.m.