hw538 / cfDNAPro

cfDNAPro specializes in standardized and robust cfDNA fragmentomic analysis
GNU General Public License v3.0
28 stars 2 forks source link

error multiuplexing plots #3

Closed eibol1 closed 1 year ago

eibol1 commented 1 year ago

Following the explanation in https://bioconductor.org/packages/release/bioc/vignettes/cfDNAPro/inst/doc/cfDNAPro.html I got an error when plotting the multiplex. I have previously organized the .txt files generated with picard CollectInsertSizeMetrics into a folder containing two subfolders: cohort_1 and cohort_2. They both are in: data_path <- '/Users/abelgd/Desktop/training_bioinfo/cfDNAs/bam_metrics_cfDNA'

When running this:

grp_list<-list("cohort_1"="cohort_1",
                 "cohort_2"="cohort_2")

  result<-sapply(grp_list, function(x){
    result <-callSize(path = data_path) %>% 
      dplyr::filter(group==as.character(x)) %>% 
      plotSingleGroup()
  }, simplify = FALSE)  

I got the following error:

Error in plotSingleGroup(.) : could not find function "plotSingleGroup"

Also it gives me the option to Show Traceback or Rerun with Debug.

Does anyone know what happening here?

eibol1 commented 1 year ago

I only have two cohorts, is it mandatory to have 4 subfolders for 4 cohorts, although they are empty folders?

eibol1 commented 1 year ago

Did not loaded the packages required correctly, closing this issue