Skip to content

Commit f8a97fe

Browse files
committed
Allow for blank features wen combining subread data
1 parent b745692 commit f8a97fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/analysis/CombineSubreadGeneCountsHandler.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ protected void processOutputFiles(CountResults results, List<SequenceOutputFile>
4949
String line;
5050
while ((line = reader.readLine()) != null)
5151
{
52-
line = line.trim();
52+
//NOTE: if gene name is null, element 0 can be empty string
53+
//line = line.trim();
5354
if (line.startsWith("#") || line.startsWith("Geneid") || line.isEmpty())
5455
{
5556
continue;
@@ -62,6 +63,12 @@ protected void processOutputFiles(CountResults results, List<SequenceOutputFile>
6263
}
6364

6465
String geneId = cells[0];
66+
if (geneId.isEmpty())
67+
{
68+
job.getLogger().info("Feature lacks gene ID: [" + line + "]");
69+
continue;
70+
}
71+
6572
if (OTHER_IDS.contains(geneId))
6673
{
6774
continue;

0 commit comments

Comments
 (0)