Change of heart concerning the names of your fastq files?

Renaming them shouldn't be a complicated and dangerous venture, even for people with no UNIX bash experience.

This function allows you to rename your fastq files without messing things with your new data. Plus, it will fit nicely in your reproducible workflow!

The function is parallelize and can also move the renamed files in a different folder.

rename_fq(
  change.fq,
  parallel.core = parallel::detectCores() - 1,
  verbose = TRUE
)

Arguments

change.fq

(object, path to a file) Data frame in the global environment or a tab separated file. The dataframe as 2 columns: OLD_FQ and NEW_FQ that show the id change you want. If NEW_FQ column contains a different path, this will also move the files. See example below.

parallel.core

Enable parallel execution using multiple core. Default: parallel.core = parallel::detectCores() - 1.

verbose

By function the function chats. Default: verbose = TRUE.

Value

The function returns nothing in the global environment. The function just renames the fq files.

Examples