multiple_fasta_files: A function to write multiple fasta files from a dataframe,...

View source: R/multiple_fasta_files.R

multiple_fasta_filesR Documentation

A function to write multiple fasta files from a dataframe, grouping based on different variables.

Description

A function to write multiple fasta files from a dataframe, grouping based on different variables.

Usage

multiple_fasta_files(
  dataframe,
  group_by_cols,
  seq_col = "fasta_seq",
  header_col = "fasta_header",
  toWrite = FALSE,
  path = "."
)

Arguments

dataframe

A DataFrame containing the seq_col, the header_col and group_by_cols.

group_by_cols

A character vector with the names of the columns whose values are used to group by.

seq_col

A string with the name of the column containing the fasta sequence.

header_col

A string with the name of the column containing the fasta header.

toWrite

A boolean, if toWrite is TRUE, fasta files are written.

path

Path where files are written if toWrite is TRUE.

Value

A list of lists containing both the DataFrame grouped based on group_by_cols and the name of the file to write.


currocam/FascinRSCA documentation built on March 21, 2022, 6:29 a.m.