is there a pythonic way to merge a set of bam files?
Why does it need to be pythonic? There are far more straightforward command line ways to do this.
Thanks Ram. I am aware of the straightforward ways. I am just curious if I can do this with python.
Got it. We've seen a lot of users that pick tech first, task later so this sort of awareness is not always present. Glad you figured out a solution, it always helps understand the underlying challenges.
I figured out the answer to this one. I am writing down it here for future me and all other curious people.
list_of_bamfiles = [f.bam,f2.bam]
# the * before the list unpack the list of arguments
Login before adding your answer.
Use of this site constitutes acceptance of our User Agreement and Privacy