View source: R/checkMetadata.R
checkMetadata | R Documentation |
Validate and extract non-empty annotation fields from a GTF file.
checkMetadata(gtfPath, typeFilter)
gtfPath |
Character. Path to the directory or file location of the GTF file. |
typeFilter |
Character. The feature type to filter on (e.g., "gene", "exon"). |
This function imports a GTF file, filters entries by a specified feature type, and identifies metadata columns that contain at least one non-missing value.
Imports the GTF into a data frame via "rtracklayer::import()".
Filters rows by "type" == typeFilter.
Tests each column for all-NA or empty-string entries.
Returns names of columns with at least one non-missing, non-empty value.
Character vector of column names in the GTF annotation that are not entirely NA or empty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.