Hello guys
I have 100-bp PE reads for chip-seq, and the reads were aligned using bwa. The alignment results - the sam file - was further processed with samtools. I used the following commands to filter out properly paired reads with unique mappability, but not sure if I am doing it in a correct way. Could you give me some suggestion for that? Thank you!
The file immediately after bwa alignment is after_align.sam. Then I used:
1.samtools view -bSh after_align.sam >after_align.bam
2.samtools view -q 1 after_align.bam -o uniq.bam
3.samtools rmdup uniq.bam uniq.rmdup.bam
4.samtools view -f 0x0001 -f 0x0002 uniq.rmdup.bam -o paired.bam # this is to get properly paired reads
5.samtools sort -n paired.bam paired_sort_name
6.samtools fixmate paired_sort_name.bam fixmate.bam#fixmate.. do I need to do this?
Did I miss anything ? Is there anything to add?
Thank you!
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
Latest Articles
Collapse
-
by seqadmin
Spatial biology is an exciting field that encompasses a wide range of techniques and technologies aimed at mapping the organization and interactions of various biomolecules in their native environments. As this area of research progresses, new tools and methodologies are being introduced, accompanied by efforts to establish benchmarking standards and drive technological innovation.
3D Genomics
While spatial biology often involves studying proteins and RNAs in their...-
Channel: Articles
Yesterday, 07:30 PM -
-
by seqadmin
Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...-
Channel: Articles
12-16-2024, 07:57 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 12-30-2024, 01:35 PM
|
0 responses
21 views
0 likes
|
Last Post
by seqadmin
12-30-2024, 01:35 PM
|
||
Started by seqadmin, 12-17-2024, 10:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by seqadmin
12-17-2024, 10:28 AM
|
||
Started by seqadmin, 12-13-2024, 08:24 AM
|
0 responses
55 views
0 likes
|
Last Post
by seqadmin
12-13-2024, 08:24 AM
|
||
Started by seqadmin, 12-12-2024, 07:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by seqadmin
12-12-2024, 07:41 AM
|