Merging Bam Files with Rsamtools
0
0
Entering edit mode
3.5 years ago
rbravos87 • 0

Hi,

I am trying to merge two different bam files with Rsamtools in Rstudio. And this is how I am trying to do it:

mergeBam(files = files[c(3,5)], destination = "O:/ChIPseq_results_files/bam_files/merged_bam_files")

where files is the list of bam files I have in a given directory and 3 and 5 the files I am trying to merge (that is why I write files[c(3,5)]).

However, I am getting back this error:

Error in value[[3L]](cond) : 
  'mergeBam' 'destination' exists, 'overwrite' is FALSE
  destination: O:/ChIPseq_results_files/bam_files/merged_bam_files

Thanks for your assistance

mergeBam Rsamtools • 1.1k views
ADD COMMENT
0
Entering edit mode

Please read the error message. It tells you where the error is and what you need to do. And run ?mergeBam to understand the function.

ADD REPLY

Login before adding your answer.

Traffic: 2294 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