Skip to content

Commit 5762910

Browse files
author
suiyue
committed
remove }
1 parent df6fbba commit 5762910

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

R/readWrite.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ writeToGTF <- function(annotation, file, geneIDs = NULL) {
173173
frame = ".", attributes = paste(GENEID, group_name, exon_rank, NDR, txScore, txScore.noFit, novelGene, novelTranscript, txClassDescription )) %>%
174174
select(seqnames, source, feature, start, end, score,
175175
strand, frame, attributes, group_name)
176-
dfTx <- as.data.frame(range(ranges(annotation)))
176+
dfTx <- as_tibble(as.data.frame(range(ranges(annotation))))
177177
dfTx <-
178178
left_join(dfTx, geneIDs, by = c("group_name" = "TXNAME"))
179179
dfTx$group_name <-
@@ -242,13 +242,8 @@ writeAnnotationsToGTF <- function(annotation, file, geneIDs = NULL, outputExtend
242242
}
243243

244244
if(outputNovelOnly){
245-
if(all(!mcols(annotation)$novelTranscript)){
246-
print("This is no novel transcript and novelTranscripts.gtf will not be outputed!")
247-
}
248-
else{
249245
annotationNovel = annotation[mcols(annotation)$novelTranscript]
250246
writeToGTF(annotationNovel, paste0(file, "novelTranscripts.gtf"), geneIDs)
251-
}
252247
}
253248
}
254249

0 commit comments

Comments
 (0)