MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / main

Method main

src/rnabloom/RNABloom.java:5830–7533  ·  view source on GitHub ↗

@param args the command line arguments

(String[] args)

Source from the content-addressed store, hash-verified

5828 * @param args the command line arguments
5829 */
5830 public static void main(String[] args) throws IOException {
5831 Timer timer = new Timer();
5832
5833 // Based on: http://commons.apache.org/proper/commons-cli/usage.html
5834 CommandLineParser parser = new DefaultParser();
5835
5836 Options options = new Options();
5837
5838
5839 Option optLeftReads = Option.builder("l")
5840 .longOpt("left")
5841 .desc("left reads file(s)")
5842 .hasArgs()
5843 .argName("FILE FILE ...")
5844 .build();
5845 options.addOption(optLeftReads);
5846
5847 Option optRightReads = Option.builder("r")
5848 .longOpt("right")
5849 .desc("right reads file(s)")
5850 .hasArgs()
5851 .argName("FILE FILE ...")
5852 .build();
5853 options.addOption(optRightReads);
5854
5855 Option optPooledAssembly = Option.builder("pool")
5856 .desc("list of read files for pooled assembly")
5857 .hasArg()
5858 .argName("FILE")
5859 .build();
5860 options.addOption(optPooledAssembly);
5861
5862 String defaultMinTranscriptLengthLR = "200";
5863 String defaultMinOverlapLR = "150";
5864 String defaultKmerSizeLR = "25";
5865 String defaultMinCoverageLR = "2";
5866 String defaultMaxIndelSizeLR = "50";
5867 String defaultMaxTipLengthLR = "50";
5868 String defaultMaxErrorCorrItrLR = "2";
5869 String defaultPercentIdentityLR = "0.7";
5870 String defaultMinPolyALengthLR = "12";
5871 String defaultLongReadPreset = "-k " + defaultKmerSizeLR + " -c " + defaultMinCoverageLR +
5872 " -indel " + defaultMaxIndelSizeLR + " -e " + defaultMaxErrorCorrItrLR +
5873 " -p " + defaultPercentIdentityLR + " -length " + defaultMinTranscriptLengthLR +
5874 " -overlap " + defaultMinOverlapLR + " -tip " + defaultMaxTipLengthLR +
5875 " -polya " + defaultMinPolyALengthLR;
5876 Option optLongReads = Option.builder("long")
5877 .desc("long reads file(s)\n(Requires `minimap2` and `racon` in your environment. Presets `" +
5878 defaultLongReadPreset + "` unless each option is defined otherwise.)")
5879 .hasArgs()
5880 .argName("FILE FILE ...")
5881 .build();
5882 options.addOption(optLongReads);
5883
5884 Option optSeForwardReads = Option.builder("sef")
5885 .desc("single-end forward read file(s)")
5886 .hasArgs()
5887 .argName("FILE FILE ...")

Callers

nothing calls this directly

Calls 15

printHelpMethod · 0.95
printVersionInfoMethod · 0.95
isValidStratumNameMethod · 0.95
exitOnErrorMethod · 0.95
getPooledReadPathsMethod · 0.95
checkInputFileFormatMethod · 0.95
isListFileMethod · 0.95
getPathsFromListFileMethod · 0.95
getKmerSizesMethod · 0.95
hasNtcardMethod · 0.95
startMethod · 0.95
getNTCardHistogramMethod · 0.95

Tested by

no test coverage detected