Skip to content

Commit ba2414a

Browse files
committed
fix error in new relase
1 parent c18f58f commit ba2414a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: uncoverappLib
22
Title: Interactive graphical application for clinical assessment of
33
sequence coverage at the base-pair level
4-
Version: 1.7.3
4+
Version: 1.7.4
55
Authors@R: c(
66
person("Emanuela","Iovino", email = "[email protected]", role= c("cre", "aut")),
77
person("Tommaso", "Pippucci", email = "[email protected]", role = "aut"))
@@ -15,7 +15,7 @@ Description: a Shiny application containing a suite of graphical and statistical
1515
License: MIT + file LICENSE
1616
Encoding: UTF-8
1717
LazyData: true
18-
RoxygenNote: 7.1.2
18+
RoxygenNote: 7.1.3
1919
URL: https://github.com/Manuelaio/uncoverappLib
2020
BugReports: https://github.com/Manuelaio/uncoverappLib/issues
2121
VignetteBuilder: knitr

R/buildInput.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
#' you use a list of gene names use "genes", if you use a target bed use "target".
2929
#' @export
3030
#' @import rlist
31-
#' @import OrganismDbi
3231
#' @import Rsamtools
33-
#' @import org.Hs.eg.db
3432
#' @import TxDb.Hsapiens.UCSC.hg19.knownGene
3533
#' @import TxDb.Hsapiens.UCSC.hg38.knownGene
3634
#' @importFrom utils write.table
3735
#' @import GenomicRanges
36+
#' @import OrganismDbi
37+
#' @import org.Hs.eg.db
3838
#' @importFrom S4Vectors queryHits
3939
#' @importFrom S4Vectors subjectHits
4040
#' @examples
@@ -80,8 +80,9 @@ buildInput<- function(geneList,genome,type_bam,bamList,outDir,type_input,
8080
###check control: stop when gene names in list are incorrect
8181
if (type_input == "target"){
8282
return=NULL}else{
83-
my_gene_name<- OrganismDbi::select(org.Hs.eg.db, key= gene.List, columns="ENTREZID",
83+
my_gene_name_df<- OrganismDbi::select(org.Hs.eg.db, key= gene.List, columns="ENTREZID",
8484
keytype="ALIAS")
85+
my_gene_name<-my_gene_name_df[!duplicated(my_gene_name_df$ALIAS),]
8586
for (i in my_gene_name$ENTREZID){
8687
if (is.na(i)){
8788
s<-print(subset(my_gene_name$ALIAS,is.na(my_gene_name$ENTREZID)))
@@ -246,7 +247,8 @@ buildInput<- function(geneList,genome,type_bam,bamList,outDir,type_input,
246247
start.1, end.1, width.1, strand.1))
247248

248249
colnames(statistiche)[1:3]<- c("chromosome","start","end")
249-
merge_g<- dplyr::full_join(for_bed,statistiche, by="SYMBOL", all=TRUE)
250+
#merge_g<- dplyr::full_join(for_bed,statistiche, by="SYMBOL", all=TRUE)
251+
merge_g<- dplyr::full_join(for_bed,statistiche, by="SYMBOL")
250252
col_name<- colnames(merge_g)
251253

252254
col.sub<- col_name[grepl("sample_", col_name)]

0 commit comments

Comments
 (0)