(RNABloom assembler,
String[] inFastxList, String outLongFasta, String outShortFasta, String outRepeatsFasta,
String polyAReadNamesPath, String sampleReadLengthsPath,
int maxErrCorrItr, int minKmerCov, int numThreads, int sampleSize, int minSeqLen,
boolean reverseComplement, boolean trimArtifact, boolean storeReads)
| 5253 | */ |
| 5254 | |
| 5255 | private static ArrayList<BitSequence> correctLongReads(RNABloom assembler, |
| 5256 | String[] inFastxList, String outLongFasta, String outShortFasta, String outRepeatsFasta, |
| 5257 | String polyAReadNamesPath, String sampleReadLengthsPath, |
| 5258 | int maxErrCorrItr, int minKmerCov, int numThreads, int sampleSize, int minSeqLen, |
| 5259 | boolean reverseComplement, boolean trimArtifact, boolean storeReads) throws InterruptedException, IOException, Exception { |
| 5260 | |
| 5261 | FastaWriter longWriter = new FastaWriter(outLongFasta, false); |
| 5262 | FastaWriter shortWriter = new FastaWriter(outShortFasta, false); |
| 5263 | FastaWriter repeatsWriter = new FastaWriter(outRepeatsFasta, false); |
| 5264 | Writer polyAReadNamesWriter = getTextFileWriter(polyAReadNamesPath, false); |
| 5265 | |
| 5266 | ArrayList<BitSequence> longReads = assembler.correctLongReadsMultithreaded(inFastxList, |
| 5267 | longWriter, shortWriter, repeatsWriter, polyAReadNamesWriter, |
| 5268 | sampleReadLengthsPath, |
| 5269 | minKmerCov, |
| 5270 | maxErrCorrItr, |
| 5271 | numThreads, |
| 5272 | sampleSize, |
| 5273 | minSeqLen, |
| 5274 | reverseComplement, |
| 5275 | trimArtifact, |
| 5276 | storeReads); |
| 5277 | |
| 5278 | longWriter.close(); |
| 5279 | shortWriter.close(); |
| 5280 | repeatsWriter.close(); |
| 5281 | polyAReadNamesWriter.close(); |
| 5282 | |
| 5283 | return longReads; |
| 5284 | } |
| 5285 | |
| 5286 | /* |
| 5287 | private static void clusterLongReads(RNABloom assembler, |
no test coverage detected