read_snp_columns | R Documentation |
Previously, I put all my bcfutils output files into one directory. This function would iterate through every file in that directory and add the contents as columns to this growing data table. Now it works by accepting a list of filenames (presumably kept in the metadata for the experiment) and reading them into the data table. It is worth noting that it can accept either a column name or index – which when you think about it is pretty much always true, but in this context is particularly interesting since I changed the names of all the columns when I rewrote this functionality.
read_snp_columns(
samples,
file_lst,
column = "diff_count",
verbose = FALSE,
reader = "readr"
)
samples |
Sample names to read. |
file_lst |
Set of files to read. |
column |
Column from the bcf file to read. |
verbose |
Print information about the input data. |
A big honking data table.
[readr]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.