Open CXZheng7 opened 2 years ago
are you resolved it? i got the same error.
Instead of replacing colnames(ExomeCount)[1:length(sample.names)+4]=sample.names for colnames(ExomeCount)[1:length(sample.names)+5]=sample.names
I would put the following:
if(names(ExomeCount)[5]=="GC"){ colnames(ExomeCount)[1:length(sample.names)+5]=sample.names #assigns the sample names to each column }else{ colnames(ExomeCount)[1:length(sample.names)+4]=sample.names }
The thing is that if you leave the --fasta parameter NULL in ReadInBams.R then RData dataframe generated has 1 less column because GC content is not computed, so GC column does not exist.
Rscript IdentifyFailures.R --RData=../../testdedup.RData --mincorr=.98 --mincov=30 --out=../../test82
Attaching package: ‘R.oo’
The following object is masked from ‘package:R.methodsS3’:
The following objects are masked from ‘package:methods’:
The following objects are masked from ‘package:base’:
R.utils v2.11.0 (2021-09-26 08:30:02 UTC) successfully loaded. See ?R.utils for help.
Attaching package: ‘R.utils’
The following object is masked from ‘package:utils’:
The following objects are masked from ‘package:base’:
Error in if (MaxCorr[i] < corr_thresh) { : missing value where TRUE/FALSE needed Execution halted
i dont know why the MaxCorr was filled by all NA!!