~ubuntu-branches/ubuntu/saucy/trimmomatic/saucy-proposed

« back to all changes in this revision

Viewing changes to src/org/usadellab/trimmomatic/Pairomatic.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:
127
127
                        Character delimiter) throws IOException
128
128
        {
129
129
                Set<String> names1 = getFastqNames(input1, delimiter);
130
 
                System.out.println("First input file contains " + names1.size() + " records");
 
130
                System.err.println("First input file contains " + names1.size() + " records");
131
131
 
132
132
                Set<String> names2 = getFastqNames(input2, delimiter);
133
 
                System.out.println("Second input file contains " + names2.size() + " records");
 
133
                System.err.println("Second input file contains " + names2.size() + " records");
134
134
 
135
135
                names1.retainAll(names2);
136
 
                System.out.println("Files shared " + names1.size() + " records");
 
136
                System.err.println("Files shared " + names1.size() + " records");
137
137
                
138
138
                names2.retainAll(names1);
139
139
                if(!equalOrdering(names1,names2))
140
140
                        {
141
 
                        System.out.println("Error: Common records are not in identical order, cowardly refusing to do anything");
 
141
                        System.err.println("Error: Common records are not in identical order, cowardly refusing to do anything");
142
142
                        return;
143
143
                        }
144
144
                
145
 
                System.out.println("Splitting first file");
 
145
                System.err.println("Splitting first file");
146
146
                splitFastq(input1, output1P, output1U, names1, delimiter);
147
147
                
148
 
                System.out.println("Splitting second file");
 
148
                System.err.println("Splitting second file");
149
149
                splitFastq(input2, output2P, output2U, names1, delimiter);
150
150
                
151
 
                System.out.println("All done");
 
151
                System.err.println("All done");
152
152
        }
153
153
 
154
154
        public static void main(String[] args) throws IOException
166
166
                                String delimStr=args[argIndex++];
167
167
                                
168
168
                                if(delimStr.length()!=1)
169
 
                                        System.out.println("Delimiter must be exactly one character, got '"+delimStr+"'");
 
169
                                        System.err.println("Delimiter must be exactly one character, got '"+delimStr+"'");
170
170
                                else
171
171
                                        delim=delimStr.charAt(0);
172
172
                                }
173
173
                        else
174
174
                                {
175
 
                                System.out.println("Unknown option " + arg);
 
175
                                System.err.println("Unknown option " + arg);
176
176
                                badOption = true;
177
177
                                }
178
178
                        }
179
179
 
180
180
                if (args.length - argIndex < 6 || badOption)
181
181
                        {
182
 
                        System.out
 
182
                        System.err
183
183
                                        .println("Usage: Pairomatic [-delim delimChar] <inputFile1> <inputFile2> <outputFile1P> <outputFile1U> <outputFile2P> <outputFile2U>");
184
184
                        System.exit(1);
185
185
                        }