Skip to content

Commit 7315f89

Browse files
author
suiyue
committed
fix writeBambuOutpur error when this is no novel transcript in se object
1 parent d3337b1 commit 7315f89

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

R/readWrite.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,13 @@ writeAnnotationsToGTF <- function(annotation, file, geneIDs = NULL, outputExtend
249249
}
250250

251251
if(outputNovelOnly){
252+
if(all(!rowData(se)$novelTranscript)){
253+
print("This is no novel transcript and novelTranscripts.gtf will not be outputed!")
254+
}
255+
else{
252256
annotationNovel = annotation[mcols(annotation)$novelTranscript]
253257
writeToGTF(annotationNovel, paste0(file, "novelTranscripts.gtf"), geneIDs)
258+
}
254259
}
255260
}
256261

0 commit comments

Comments
 (0)