import_geomx_samplesheet | R Documentation |
Import GeoMx SampleSheet.csv data
import_geomx_samplesheet(
x = "SampleSheet.csv",
return_type = c("dflist", "list", "indices", "filenames"),
do_revcomp = TRUE,
demux_sheetnumber = "S1",
demux_prefix = "BK-Gq-1_hdist1_",
...
)
x |
|
return_type |
|
do_revcomp |
|
demux_sheetnumber |
|
demux_prefix |
|
... |
additional arguments are ignored. |
This function can import "SampleSheet.csv"
and "GNP_config.ini"
files, which are characterized as follows:
Each subset of data is preceded by a header line: [header_name]
Data following this line is comma-delimited, or delimited with
" = "
, both of which are treated as equivalent.
There is a blank line between the subset of data and the next header.
Some rules with return_type="dflist"
:
Delimiters are recognized as " = "
or ","
, but because the
import process calls data.table::fread()
it will probably also
accept tab-delimited data.
When the first row following the header appears to have column names, they are used as-is as column names.
The following criteria cause the first row NOT to be used as column header:
The first entry does not contain "Sample_ID"
, and any of:
Any value following a comma begins with a number, or
Any value following a comma is "true"
or "false"
, or
Any value following a comma is purely DNA sequence "[ATGC]+"
, or
There is no ","
delimiter, or
There is only one value in the subset of data.
Therefore, when the first entry begins with "Sample_ID"
the
first entry is used as column header.
When the first entry is not used as column headers, the heading name
itself is used as the first column name, followed by V
concatenated
to the integer column number, for example: "Sequencing", "V2", "V3", "V4"
Add return_type
option to create commands to rename demux output
files to the expected GeoMx Sample_ID format.
list
or character
vector, consistent with return_type
.
Other jam GeoMx functions:
revcomp()
samplefile <- system.file("data", "SampleSheet.csv", package="platjam")
samplelist <- import_geomx_samplesheet(samplefile)
lengths(samplelist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.