Skip to content

Commit

Permalink
Esvee: cap frag distribution output by max observer read length, load…
Browse files Browse the repository at this point in the history
… disc stats file from prep dir
  • Loading branch information
charlesshale committed Dec 16, 2024
1 parent a5e7e98 commit 79b20be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private boolean loadJunctionFiles()
return true;
}

String discStatsFilename = formDiscordantStatsFilename(mConfig.OutputDir, mConfig.sampleId());
String discStatsFilename = formDiscordantStatsFilename(mConfig.PrepDir, mConfig.sampleId());
DiscordantStats discordantStats = loadDiscordantStats(discStatsFilename);

int minJunctionFrags = MIN_JUNCTION_SUPPORT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ private void writeDistribution()

for(LengthFrequency lengthFrequency : mLengthFrequencies)
{
// cap any fragmemt distribution entry at the observed read length to avoid the use of trimmed fragments impacting it
if(mMaxReadLength > 0 && lengthFrequency.Length < mMaxReadLength)
continue;

writer.write(format("%d\t%d", lengthFrequency.Length, lengthFrequency.Frequency));
writer.newLine();
}
Expand Down

0 comments on commit 79b20be

Please sign in to comment.