View source: R/writeBiokitSampleAnnotation.R
writeBiokitSampleAnnotation | R Documentation |
Write sample annotation into a tab-delimited file to start the Biokit pipeline
writeBiokitSampleAnnotation(df, con)
df |
A data.frame or anything that can be converted to a data.frame |
con |
Connection, can be a character string indicating file name |
NULL, side effect is used
Starting from version 1.0-36, the function checks the input
data.frame
or tbl_df
before writing to the file
testDf <- data.frame(ID=LETTERS[1:4],
GROUP=gl(2,2),
FASTQ1=sprintf("%s_R1.fastq.gz", LETTERS[1:4]),
FASTQ2=sprintf("%s_R1.fastq.gz", LETTERS[1:4]))
tmp <- tempfile()
writeBiokitSampleAnnotation(testDf, con=tmp)
readLines(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.