<p>I have some .bam files and I also got featureCounts by Subread. But after getting the featureCounts I realized that among my bam files 2 of them actually belong to the same sample. So I wonder if I can remove the result of these two and after merging bam files add them again into featureCounts without doing all the featureCounts for other samples again.</p>

CC BY-SA 4.0
2021-07-30T21:35:42.640Z
It sounds like you are supplying multiple BAMs to featureCounts, while this is possible I think it's better to run featureCounts on each BAM separately and then use a Python script or `cbind` function in R as mentioned above to combine the results of multiple samples. This shall give you more flexibility.
Phoenix Mu
CC BY-SA 4.0
2021-07-30T21:43:56.807Z
Yeah thanks for the answers. As ATpoint mentioned I realized that featureCounts doesn't need much computational power and time. And good to know I can merge with Python or R script.
Baran Aldemir
<subread>
Is it possible to add one more sample to the result of featureCounts?
# Is it possible to add one more sample to the result of featureCounts?

(Asked by: username_0 on 2021-07-30)

I have some .bam files and I also got featureCounts by Subread. But after getting the featureCounts I realized that among my bam files 2 of them actually belong to the same sample. So I wonder if I can remove the result of these two and after merging bam files add them again into featureCounts without doing all the featureCounts for other samples again.

**Tags:** subread
> **Comments:**
> **username_1**: It sounds like you are supplying multiple BAMs to featureCounts, while this is possible I think it's better to run featureCounts on each BAM separately and then use a Python script or `cbind` function in R as mentioned above to combine the results of multiple samples. This shall give you more flexibility.  
> **username_0**: Yeah thanks for the answers. As ATpoint mentioned I realized that featureCounts doesn't need much computational power and time. And good to know I can merge with Python or R script.  

---

## 0 answers

