Biostar Beta. Not for public use.
Copy number alteration from .bam files panelcn.mops
0
Entering edit mode
18 months ago
Pin.Bioinf • 240
Malaga

Hello, I want to detect the copy number alterations among my 3 samples: Pre treatment sample, post treatment sample and metastasis sample.

I am using panelcn.mops package from R, which is for targeted sequencing. I have my bam files and the workflow needs a 'control' to be assigned in order to compare.

Is it good practice to do POST treatment vs PRE (using pre as control) and then Mutation vs PRE (using PRE as control, always) in this package? Am I supposed to do it like that?:

Sample code: ( doing a two sample comparison at a time: POST vs PRE or METAST vs PRE)

BAMFiles <- list.files(dir, pattern=".bam$", full.names=TRUE)


test <- countBamListInGRanges(countWindows = countWindows,
                              bam.files = BAMFiles, read.width = 150)


XandCB <- test
elementMetadata(XandCB) <- cbind(elementMetadata(XandCB[,1]), ### POST or METAST. sample
                                 elementMetadata(XandCB[,2])) ## PRE (control ??)

resultlist <- runPanelcnMops(XandCB,
                             testiv = c(1),        ## selecting POST or METAST. as test 
                             countWindows = countWindows)

Thank you

ADD COMMENTlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1