How many reads by contigs with Ray ?
2
0
Entering edit mode
10.5 years ago
prpadi ▴ 10

Hi all,

I have assembled a transcriptome using Ray. How can I have the numbers of reads by contig ?

I took the reads used to generate the assembly and aligned them to the assembled contigs using BWA to get the unmapped reads, which are the non-assembled reads (singletons). So I have a SAM format output. Maybe can I use samtools to get the reads number by contigs ?

Thank you for your help.

Assembly next-gen rna-seq • 2.1k views
ADD COMMENT
0
Entering edit mode

Ok,

And it's not possible to have the number of reads by contigs directly with Ray ?

ADD REPLY
0
Entering edit mode

No clue, never used it. The grep ... command that I gave will be quick enough.

ADD REPLY
0
Entering edit mode
10.5 years ago

If you sort and index the BAM file, then you can just use samtools idxstats. Alternatively, samtools view foo.bam | cut -f 3 | sort | uniq -c will work on unindexed and unsorted files. For a SAM file, that last command could be simplified to grep -v "^@" foo.sam | cut -f 3 | sort | uniq -c.

ADD COMMENT
0
Entering edit mode
9.5 years ago

How can i get which reads were used in each contig in Ray afg file.

I tried to extract read information from the .afg file but it gives numbers instead of Read Ids, what this numbers represent in ray afg file?

Thank you for your help.

ADD COMMENT
0
Entering edit mode

Please open a new question instead of asking on another question.

ADD REPLY

Login before adding your answer.

Traffic: 2356 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6