Hi there, I have a filtering question based on R. I am doing some comparative transcriptomics between 5 different species (with 10 biological replicates per species). All species have been mapped to the same genome, so I have one unique count table in this form:
GeneName, Species1_rep1, Species1_rep2, .... Species1_rep10, Species2_rep1, Species2_rep2, ... Species5_rep10
I need to apply a filter to filter genes. I would like to keep genes that have at least 5 counts in at least 5 (out of 10) biological replicates of the same species. How can I do that?
Thanks in advance for any suggestion, All the best Luca
Thanks @rpolicastro! Your solution works like a charm. The only thing i had to remove the last
drop_na
to keep all the genes and all the samples, otherwise I was losing some of them from the filtered count table!Thanks again!!!!! Luca