File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,21 +167,14 @@ private String validateInput() throws IOException {
167167 else if (readType .read2 ){ p .setRead (1 ); }
168168 else if (readType .allreads ){ p .setRead (2 ); }
169169
170- //check input extensions
171- if (!"bed" .equals (ExtensionFileFilter .getExtension (bedFile ))){
172- r += "(!)Is this a BED file? Check extension: " + bedFile .getName () + "\n " ;
173- }
174- if (!"bam" .equals (ExtensionFileFilter .getExtension (bamFile ))){
175- r += "(!)Is this a BAM file? Check extension: " + bamFile .getName () + "\n " ;
176- }
177- if (!r .equals ("" )){ return (r ); }
178170 //check inputs exist
179171 if (!bedFile .exists ()){
180172 r += "(!)BED file does not exist: " + bedFile .getCanonicalPath () + "\n " ;
181173 }
182174 if (!bamFile .exists ()){
183175 r += "(!)BAM file does not exist: " + bamFile .getCanonicalPath () + "\n " ;
184176 }
177+ if (!r .equals ("" )){ return (r ); }
185178 //check BAI exists
186179 File f = new File (bamFile +".bai" );
187180 if (!f .exists () || f .isDirectory ()){
You can’t perform that action at this time.
0 commit comments