String inputFilePath = inputDirectory + fileName;
/* Making shards */
FastSharder sharder = createSharder(inputFilePath, nShards);
if (inputFilePath.equals("pipein")) { // Allow piping graph in
sharder.shard(System.in, fileType);
} else {
if (!new File(ChiFilenames.getFilenameIntervals(inputFilePath, nShards)).exists()) {
sharder.shard(new FileInputStream(new File(inputFilePath)), fileType);
} else {
logger.info("Found shards -- no need to preprocess");