Skip to content

Commit f9d6ead

Browse files
committed
Auto adjust insert size in pindel analysis
1 parent d6fa205 commit f9d6ead

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/PindelAnalysis.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,13 @@ private static String parseInsertMetrics(File inputFile) throws IOException
120120
{
121121
if (m.PAIR_ORIENTATION == SamPairUtil.PairOrientation.FR)
122122
{
123-
return String.valueOf(Math.max(100, Math.ceil(m.MEAN_INSERT_SIZE)));
123+
Double insertSize = Math.ceil(m.MEAN_INSERT_SIZE);
124+
if (insertSize < 75)
125+
{
126+
insertSize = insertSize + 150;
127+
}
128+
129+
return String.valueOf(Math.max(200, insertSize.intValue()));
124130
}
125131
}
126132
}

0 commit comments

Comments
 (0)