Error in classify_gene_pairs
1
0
Entering edit mode
hfyuan2016 • 0
@hfyuan2016-23538
Last seen 8 months ago
Australia

Hi, I am using DoubleTrouble to analyze the duplicate genes in my aim genome.

I met error when I used the classify_gene_pairs function:

> YY.class <- classify_gene_pairs(annotation =YY.pdata$annotation,
+                                 blast_list = YY_diamond,
+                                 scheme = "standard",
+                                 evalue = 1e-10,
+                                 anchors = 5,
+                                 max_gaps = 25,
+                                 proximal_max = 10)
Error in classify_gene_pairs(annotation = YY.pdata$annotation, blast_list = YY_diamond,  : 
  unused argument (scheme = "standard")

Many thanks for help.

syntenet doubletrouble • 481 views
ADD COMMENT
0
Entering edit mode

Hi,

It looks like you're using an old version of doubletrouble, from when the argument scheme did not exist. As James rightly pointed out, showing your session info would help identify the problem. Please, update your version of doubletrouble (and maybe Bioconductor, if you're using an old version of Bioconductor) and see if the error disappears.

Best,

Fabricio

ADD REPLY
0
Entering edit mode

Hi Fabricio,

Yes, you are right. I updated my R, BioManager, and doubletrouble. It works now.

Thank you so much.

Have a good day.

Regards, Huifang

ADD REPLY
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

You need to include the output from running sessionInfo() as well. But it appears to be fine to me.

> library(doubletrouble)
Warning message:
package 'doubletrouble' was built under R version 4.3.2 
> example("classify_gene_pairs")

clss__> # Load example data
clss__> data(diamond_intra)

clss__> data(diamond_inter)

clss__> data(yeast_annot)

clss__> data(yeast_seq)

clss__> # Get processed annotation data
clss__> annotation <- syntenet::process_input(yeast_seq, yeast_annot)$annotation

clss__> # Get list of intron counts
clss__> txdb_list <- lapply(yeast_annot, GenomicFeatures::makeTxDbFromGRanges)

clss__> intron_counts <- lapply(txdb_list, get_intron_counts)

clss__> # Classify duplicates - full scheme
clss__> dup_class <- classify_gene_pairs(
clss__+     annotation = annotation, 
clss__+     blast_list = diamond_intra, 
clss__+     scheme = "full",
clss__+     blast_inter = diamond_inter, 
clss__+     intron_counts = intron_counts
clss__+ )

clss__> # Check number of gene pairs per class
clss__> table(dup_class$Scerevisiae$type)

  SD   TD   PD rTRD dTRD   DD 
 342   42   80   52  963 2109 

> dup_class <- classify_gene_pairs(
         annotation = annotation, 
         blast_list = diamond_intra, scheme = "standard",blast_inter = diamond_inter, 
         intron_counts = intron_counts
     )


> head(dup_class[[1]])
           dup1        dup2 type
124 Sce_YGR032W Sce_YLR342W   SD
176 Sce_YOR396W Sce_YPL283C   SD
189 Sce_YJL225C Sce_YIL177C   SD
275 Sce_YNR031C Sce_YCR073C   SD
285 Sce_YOR326W Sce_YAL029C   SD
312 Sce_YJL222W Sce_YIL173W   SD

And

> sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] doubletrouble_1.2.5 BiocManager_1.30.22
0
Entering edit mode

Hi James, Thanks for the reply.

I attach the sessioninfo here

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.1.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Australia/Brisbane
tzcode source: internal

attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] Require_0.3.1        Herper_1.10.1        reticulate_1.35.0    syntenet_1.2.4       doubletrouble_1.0.0  GenomicRanges_1.52.1
 [7] GenomeInfoDb_1.36.4  IRanges_2.34.1       S4Vectors_0.38.2     BiocGenerics_0.46.0 

loaded via a namespace (and not attached):
 [1] ade4_1.7-22                 tidyselect_1.2.0            dplyr_1.1.4                 Biostrings_2.68.1           bitops_1.0-7               
 [6] fastmap_1.1.1               RCurl_1.98-1.14             GenomicAlignments_1.36.0    XML_3.99-0.16.1             digest_0.6.34              
[11] lifecycle_1.0.4             magrittr_2.0.3              compiler_4.3.1              rlang_1.1.3                 tools_4.3.1                
[16] igraph_2.0.2                utf8_1.2.4                  yaml_2.3.8                  data.table_1.15.2           rtracklayer_1.60.1         
[21] S4Arrays_1.0.6              htmlwidgets_1.6.4           mclust_6.1                  DelayedArray_0.26.7         RColorBrewer_1.1-3         
[26] abind_1.4-5                 BiocParallel_1.34.2         withr_3.0.0                 purrr_1.0.2                 grid_4.3.1                 
[31] fansi_1.0.6                 colorspace_2.1-0            ggplot2_3.5.0               scales_1.3.0                iterators_1.0.14           
[36] MASS_7.3-60.0.1             SummarizedExperiment_1.30.2 cli_3.6.2                   crayon_1.5.2                generics_0.1.3             
[41] MSA2dist_1.4.0              rstudioapi_0.15.0           rjson_0.2.21                ape_5.7-1                   stringr_1.5.1              
[46] zlibbioc_1.46.0             network_1.18.2              parallel_4.3.1              XVector_0.40.0              restfulr_0.0.15            
[51] matrixStats_1.2.0           vctrs_0.6.5                 Matrix_1.6-5                jsonlite_1.8.8              seqinr_4.2-36              
[56] foreach_1.5.2               tidyr_1.3.1                 intergraph_2.0-4            glue_1.7.0                  statnet.common_4.9.0       
[61] codetools_0.2-19            stringi_1.8.3               gtable_0.3.4                BiocIO_1.10.0               munsell_0.5.0              
[66] tibble_3.2.1                pillar_1.9.0                ggnetwork_0.5.13            htmltools_0.5.7             GenomeInfoDbData_1.2.10    
[71] R6_2.5.1                    networkD3_0.4               doParallel_1.0.17           Biobase_2.60.0              lattice_0.22-5             
[76] png_0.1-8                   Rsamtools_2.16.0            pheatmap_1.0.12             Rcpp_1.0.12                 coda_0.19-4.1              
[81] nlme_3.1-164                MatrixGenerics_1.12.3       pkgconfig_2.0.3            

It looks my doubletrouble is the old version as Fabricio said. I will update it and try again. Thanks~

Cheers, Huifang

ADD REPLY

Login before adding your answer.

Traffic: 616 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6