public class PathwayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsHn2ParserOutput(Collection<File> files)
Check pipeline input contains Humann2Parser module output.
|
static String |
getHn2ClassifierOutput(String type)
|
static String |
getHn2Type(File file)
|
static File |
getPathwayCountFile(File dir,
File hn2OutputFile,
String prefix)
Return a pathway abundance file path in the given dir with the given prefix (if provided).
|
static boolean |
isPathwayFile(File file)
Check the file name to determine if it is a pathway abundance table file.
|
static boolean |
isPathwayModule(BioModule module)
Check the module to determine if it generated OTU count files.
|
static Boolean |
useHumann2RawCount(BioModule module)
Determine if humann2 provided most recent raw count data, used to determine getPreReq modules.
|
static void |
verifyConfig(BioModule module)
Verify the HumanN2 Config contains at least one of the following reports are enabled:
"humann2.disableGeneFamilies" "humann2.disablePathCoverage" "humann2.disableGeneFamilies" |
public static boolean containsHn2ParserOutput(Collection<File> files)
files - Files to testpublic static String getHn2ClassifierOutput(String type)
type - Humann2 classifier output typepublic static String getHn2Type(File file) throws ConfigViolationException
file - Humann2 classifier output typeConfigViolationException - if unable to match the given file with a valid HN2 file typepublic static File getPathwayCountFile(File dir, File hn2OutputFile, String prefix) throws ConfigViolationException
dir - Directory for pathway filehn2OutputFile - Root file indicates type of coverage, abundance, or geneprefix - Optional prefixConfigViolationException - if invalid file format detectedpublic static boolean isPathwayFile(File file)
file - File to testpublic static boolean isPathwayModule(BioModule module)
module - BioModulepublic static Boolean useHumann2RawCount(BioModule module) throws Exception
module - BioModuleException - if errors occur