Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter 18s sequences using HMMs? lordjonwald Bioinformatics 0 11-17-2014 08:13 AM
How to connect shared sequences in two large fasta files shanshuiii Bioinformatics 0 03-31-2013 05:28 PM
Finding Unique sequences not shared between closely related species duartemolha Bioinformatics 0 03-11-2013 09:54 AM
filter sequences from rRNA, tRNA cascoamarillo Bioinformatics 8 01-29-2013 11:13 AM
DESeq for a small sets of sequences without replicates starlight Bioinformatics 6 09-05-2011 10:39 AM

Thread Tools
Old 03-31-2015, 06:51 PM   #1
Junior Member
Location: Oregon

Join Date: Dec 2013
Posts: 3
Default filter for sequences shared among replicates

Hi all,

I have small RNA sequence data for 5 treatment groups with 4 replicates each. For each replicate, I want to filter the read lists to only include those sequence found at least once in each replicate. In other words, if the sequence has a count of 0 in one replicate, it should be removed from every replicate in that treatment.

Does anyone know how I could do this filter? Maybe there is a way in R using DESeq or genefilter? Or any other way? The lists are too long (1-2 million reads) to perform this in excel.

criggs is offline   Reply With Quote
Old 03-31-2015, 09:46 PM   #2
Brian Bushnell
Super Moderator
Location: Walnut Creek, CA

Join Date: Jan 2014
Posts: 2,707

By duplicate sequence, do you mean a read with another exact duplicate of that read in the same dataset? If so, you can do that with Dedupe in multiple steps using different set operations. Just start with a set of nonduplicate reads from one from replicate, and then for each other set, find the set intersection with the current set. After you do intersection 3 times you will only be left with reads shared by all sets. Finding each intersection takes a 3 steps (union then subtraction then intersection).

To make sets with only one copy per sequence (necessary first step): in=readsA.fq out=a.fq in=readsB.fq out=b.fq
...etc, for each replicate.

Set union (elements in A or B): in=a.fq,b.fq out=a_or_b.fq

Set subtraction (elements in B but not A): in=a.fq,a_or_b.fq uniqueonly out=b_minus_a.fq

Set intersection (shared members of A and B) in=b.fq,b_minus_a.fq uniqueonly out=a_and_b.fq

Dedupe is in BBTools.
Brian Bushnell is offline   Reply With Quote

deseq, filter, r software, replicates, small rna

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 07:57 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO