file_loading_and_checking: Loading and checking DNA barcodes.

Description Usage Arguments Details Value Examples

View source: R/file_loading_and_checking.R

Description

Loads the file containing DNA barcodes and analyze barcode content.

Usage

1

Arguments

file

The input data file that contains 2 columns separated by a space or a tabulation, namely the sequence identifiers and corresponding DNA sequence.

Details

This function loads the DNA barcodes from the input file and checks barcodes for unicity (identifier and sequence), DNA content, and equal size. It also calculates the fraction of G and C relative to A and T, as referred to as "GC content", and it detects the presence of homopolymers of length >= 3.

Value

A dataframe containing sequence identifiers, nucleotide sequence, GC content, presence of homopolymers.

Examples

1
2
3
write.table(DNABarcodeCompatibility::IlluminaIndexesRaw,
txtfile <- tempfile(), row.names = FALSE, col.names = FALSE, quote=FALSE)
file_loading_and_checking(txtfile)

DNABarcodeCompatibility documentation built on Nov. 8, 2020, 5:36 p.m.