![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
counting RNA-seq matches | shuang | Bioinformatics | 13 | 01-31-2012 07:50 AM |
RNA-seq reads counting: sum or max | ozs2006 | Bioinformatics | 0 | 12-25-2011 09:33 AM |
Has anyone tried RUM for aligning/counting Illumina RNA-Seq data? | fabrice | RNA Sequencing | 4 | 12-06-2011 08:50 AM |
RNA-Seq: 1, 2, 3: Counting the fingers on a chicken wing. | Newsbot! | Literature Watch | 0 | 11-01-2011 03:40 AM |
Mapping and counting, small RNA seq. GA IIX | alvin | RNA Sequencing | 0 | 10-08-2010 01:36 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: US Join Date: Feb 2011
Posts: 24
|
![]()
I have a list of reference genome loci coordinates. The short RNA reads were mapped on these loci by bowtie and samtools.
Instead of simply get the counting number of reads, I hope to generate a matrix like this: Code:
read-id Loci1 Loci2 Loci3 ..... 1 2 4 0 2 0 3 4 3 4 2 5 ... I had made loci table in a gff format file and loaded it into R. All reads and alignment information is in bam file. I tried two ways to load bam file into R. One is: Code:
reads<-readBamGappedAlignments("myalign_reads.sorted.bam") I also tried another method: Code:
indexBam("myalign_reads.sorted.bam"0 param<-ScanBamParam() reads<-scanBam("myalign_reads.sorted.bam", index="myalign_reads.sorted.bam", param=param) ![]() Can you give me any suggestion or idea on how to work on it? I tried my best but due to limit knowledge on R and bioconductor, I have suffered from it for several days. I appreciate if anyone can give me some hints or help me work it out. Thanks! Alice |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: Heidelberg Join Date: Aug 2010
Posts: 165
|
![]()
Sorry, I did not watch your matrix correctly!
Last edited by areyes; 04-19-2011 at 05:03 AM. Reason: mistake |
![]() |
![]() |
![]() |
#3 |
Member
Location: US Join Date: Feb 2011
Posts: 24
|
![]()
I got some progress on this according to the manual from http://manuals.bioinformatics.ucr.edu/home/ht-seq
on section "Computing Absolute and Relative Overlaps Among Ranges". Now, I have a list like this: Code:
readid loci-id 1 105 1 108 3 114 3 114 2 120 4 123 3 123 5 124 5 125 5 125 6 128 7 128 6 128 6 128 8 128 ... Code:
readid 105 108 114 120 123 124 125 128 1 1 1 2 1 3 2 1 4 1 5 1 2 6 3 7 1 8 1 To get this matrix also not easy for me. If you know any R function can work on it, please hint. Thank you very much! Alice ========= I got it. Using table() can get that matrix. Last edited by doublealice; 04-19-2011 at 02:04 PM. |
![]() |
![]() |
![]() |
Thread Tools | |
|
|