This works for a variety of tested filenames including things like: FCWB_..._01_warp...
fcgn_forfile(file, checkExists = FALSE)
file | Path to file(s) to extract gene_name |
---|---|
checkExists | Check that calculated gene_name exists in identifiers table |
Character vector of gene_names (or NA if checkExists fails)
fcgn_forfile('FruMARCM-M002373_seg002_03.nrrd-files/FruMARCM-M002373_seg002_03.nrrd.am')#> [1] "FruMARCM-M002373_seg002"