~ubuntu-branches/ubuntu/wily/trimmomatic/wily-proposed

« back to all changes in this revision

Viewing changes to src/org/usadellab/trimmomatic/Trimmomatic.java

  • Committer: Package Import Robot
  • Author(s): Andreas Tille, Olivier Sallou
  • Date: 2013-08-07 12:14:33 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130807121433-qxchmfrrodridtvz
Tags: 0.30+dfsg-1
* New upstream version
* debian/copyright:
   - DEP5
   - Add Files-Excluded to document what was removed from original source
* debian/watch: handle +dfsg suffix
* debian/get-orig-source: use new uscan if available
* debian/control:
   - cme fix dpkg-control
   - debhelper 9
   - use anonscm in Vcs fields
   - Build-Depends: default-jdk | ...
     Closes: #718850
[ Olivier Sallou]
    * Manage java libs with javahelper
    * Provide upstream missing MANIFEST.MF

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.usadellab.trimmomatic;
 
2
 
 
3
import java.io.IOException;
 
4
import java.util.Arrays;
 
5
 
 
6
public class Trimmomatic
 
7
{
 
8
 
 
9
        /**
 
10
         * @param args
 
11
         */
 
12
        public static void main(String[] args) throws IOException
 
13
        {
 
14
                boolean showUsage=true;
 
15
        
 
16
                if(args.length>1)
 
17
                        {
 
18
                        String mode=args[0];
 
19
                        String restOfArgs[]=Arrays.copyOfRange(args, 1, args.length);
 
20
 
 
21
                        if(mode.equals("PE"))
 
22
                                {
 
23
                                if(TrimmomaticPE.run(restOfArgs))
 
24
                                        showUsage=false;
 
25
                                }
 
26
                        else if(mode.equals("SE"))
 
27
                                {
 
28
                                if(TrimmomaticSE.run(restOfArgs))
 
29
                                        showUsage=false;
 
30
                                }
 
31
                        }
 
32
                
 
33
                if(showUsage)
 
34
                        {
 
35
                        System.err.println("Usage: ");
 
36
                        System.err.println("       PE [-threads <threads>] [-phred33|-phred64] [-trimlog <trimLogFile>] <inputFile1> <inputFile2> <outputFile1P> <outputFile1U> <outputFile2P> <outputFile2U> <trimmer1>...");
 
37
                        System.err.println("   or: ");
 
38
                        System.err.println("       SE [-threads <threads>] [-phred33|-phred64] [-trimlog <trimLogFile>] <inputFile> <outputFile> <trimmer1>...");
 
39
                        System.exit(1);
 
40
                        }
 
41
        }
 
42
 
 
43
}