CaSpER icon indicating copy to clipboard operation
CaSpER copied to clipboard

runCaSpER error

Open SaritaPoonia opened this issue 2 years ago • 1 comments

Getting below error in runCaSpER function: object <- CreateCasperObject(raw.data=data_raw,loh.name.mapping=loh.name.mapping, sequencing.type="single-cell", cnv.scale=3, loh.scale=3, matrix.type="normalized", expr.cutoff=0.1, annotation=rannotation, method="iterative", loh=loh, filter="median",
control.sample.ids=colnames(NKData1), cytoband=cytoband)

final.objects <- runCaSpER(object, removeCentromere=T, cytoband=cytoband, method="iterative") Performing recursive median filtering... Performing HMM segmentation... Error in manualSegment(correctOut$copy, chr, autosomes, param, maxiter, : INTEGER() can only be applied to a 'integer', not a 'NULL' Called from: manualSegment(correctOut$copy, chr, autosomes, param, maxiter, verbose) Error during wrapup: unimplemented type (29) in 'eval'

Error: no more error handlers available (recursive errors?); invoking 'abort' restart Error during wrapup: INTEGER() can only be applied to a 'integer', not a 'unknown type #29' Error: no more error handlers available (recursive errors?); invoking 'abort' `restart```

SaritaPoonia avatar May 23 '22 07:05 SaritaPoonia

For anyone with this error,

Make sure that the loh.name.mapping dataframe has the following properties loh.name is the names of samples as they are from the BAF file—i.e. ie sample.baf, sample.snp —this might be the case if you used a different suffix

sample.name is the names of samples as they are in the count dataframe—the column names.

Otherwise your R will crash.

kenminsoo avatar Apr 30 '23 06:04 kenminsoo