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 Exception
file
- Humann2 classifier output typeException
- if unable to determine the typepublic static File getPathwayCountFile(File dir, File hn2OutputFile, String prefix) throws Exception
dir
- Directory for pathway filehn2OutputFile
- Root file indicates type of coverage, abundance, or geneprefix
- Optional prefixException
- if invalid file name formats are foundpublic 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