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

Method assembleTranscriptsNR

src/rnabloom/RNABloom.java:5515–5544  ·  view source on GitHub ↗
(RNABloom assembler, String outdir, String name, boolean forceOverwrite,
            int numThreads, boolean keepArtifact, boolean usePacBioPreset, String minimapOptions)

Source from the content-addressed store, hash-verified

5513 }
5514
5515 private static void assembleTranscriptsNR(RNABloom assembler, String outdir, String name, boolean forceOverwrite,
5516 int numThreads, boolean keepArtifact, boolean usePacBioPreset, String minimapOptions) throws IOException {
5517
5518 final File nrTxptsDoneStamp = new File(outdir + File.separator + STAMP_TRANSCRIPTS_NR_DONE);
5519
5520 if (forceOverwrite || !nrTxptsDoneStamp.exists()) {
5521 String transcriptsFasta = outdir + File.separator + name + ".transcripts" + FASTA_EXT;
5522 String nrTranscriptsFasta = outdir + File.separator + name + ".transcripts.nr" + FASTA_EXT;
5523
5524 deleteIfExists(nrTranscriptsFasta);
5525
5526 System.out.println("Reducing redundancy in assembled transcripts...");
5527 Timer timer = new Timer();
5528 timer.start();
5529
5530 boolean ok = assembler.generateNonRedundantTranscripts(transcriptsFasta,
5531 nrTranscriptsFasta, numThreads, !keepArtifact, usePacBioPreset, minimapOptions);
5532
5533 if (ok) {
5534 System.out.println("Redundancy reduced in " + timer.elapsedDHMS());
5535 touch(nrTxptsDoneStamp);
5536 }
5537 else {
5538 exitOnError("Error during redundancy reduction!");
5539 }
5540 }
5541 else {
5542 System.out.println("WARNING: Redundancy reduction had completed previously for \"" + name + "\"!");
5543 }
5544 }
5545
5546 private static void assembleTranscriptsSE(RNABloom assembler, boolean forceOverwrite,
5547 String outdir, String name, String txptNamePrefix,

Callers 2

assembleTranscriptsSEMethod · 0.95
assembleTranscriptsPEMethod · 0.95

Calls 6

startMethod · 0.95
elapsedDHMSMethod · 0.95
exitOnErrorMethod · 0.95
deleteIfExistsMethod · 0.80
touchMethod · 0.80

Tested by

no test coverage detected