writeBiokitSampleAnnotation: Write sample annotation into a tab-delimited file to start...

View source: R/writeBiokitSampleAnnotation.R

writeBiokitSampleAnnotationR Documentation

Write sample annotation into a tab-delimited file to start the Biokit pipeline

Description

Write sample annotation into a tab-delimited file to start the Biokit pipeline

Usage

writeBiokitSampleAnnotation(df, con)

Arguments

df

A data.frame or anything that can be converted to a data.frame

con

Connection, can be a character string indicating file name

Value

NULL, side effect is used

Note

Starting from version 1.0-36, the function checks the input data.frame or tbl_df before writing to the file

Examples


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)


bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.